Use `supports X` Browserslist query instead of exact versions list
See original GitHub issueIn browserslistTargetHandler.js
we have a few objects with browsers support data.
Instead of hardcoding this versions, we can use Can I Use data:
let dynamicImport = browserslist('supports es6-module-dynamic-import')
Reasons:
- One source of truth
- Less code in webpack
- Future-proof for new browsers
Issue Analytics
- State:
- Created 2 years ago
- Comments:21 (12 by maintainers)
Top Results From Across the Web
Update browserslist browsers [#3084843] | Drupal.org
Update browserslist with the browsers listed in the new browser support policy. Remaining tasks. User interface changes. API changes. Data model ...
Read more >node_modules/browserslist - GitLab
Developers set their version lists using queries like last 2 versions to be free from updating versions manually. Browserslist will use ...
Read more >browserslist - npm
Developers set their version lists using queries like last 2 versions to be free from updating versions manually. Browserslist will use caniuse ...
Read more >Options - Babel.js
A query to select browsers (ex: last 2 versions, > 5%, safari tp) using browserslist. Note, browsers' results are overridden by explicit items...
Read more >Browserslist
Shared browser compatibility config for popular JavaScript tools like Autoprefixer, Babel, ESLint, PostCSS, and Webpack. Supported by Evil Martians and Cube ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let’s replace to Browserslist 🥳
Yeap, we can use it everywhere since you already have Browserslist in dependencies.
@alexander-akait should we re-open it?