browserslist icon indicating copy to clipboard operation
browserslist copied to clipboard

Can we include mobileToDesktop in the browserslist config?

Open robcaldecottvelo opened this issue 6 years ago • 1 comments

We are facing the issue where and_chr only handles the latest version (currently Chrome for Android 78) but we need to support versions older than this when using the obsolete-webpack-plugin. Is there any way we can include mobileToDesktop in our package.json browserslists config? E.g.:

"browserslist": {
  ">0.2%",
  "not dead",
  "not op_mini all",
  "and_chr > 75 mobile_to_desktop"
}

robcaldecottvelo avatar Feb 10 '20 12:02 robcaldecottvelo

Right now, we are trying to put all our effort into finding funds for security refactoring. I think we will not be able to think about adding new syntax sugar.

However, you do not need mobile_to_desktop for the simple case like and_chr > 75. mobileToDesktop will just replace and_chr with chrome, you can do it manually.

ai avatar Feb 10 '20 23:02 ai