question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use `supports X` Browserslist query instead of exact versions list

See original GitHub issue

In 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:

  1. One source of truth
  2. Less code in webpack
  3. Future-proof for new browsers

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Aug 18, 2022

Looks like fixed

Let’s replace to Browserslist 🥳

do we have supports x for each item from

Yeap, we can use it everywhere since you already have Browserslist in dependencies.

0reactions
aicommented, Dec 2, 2022

@alexander-akait should we re-open it?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found