DanielSchaffer / webpack-babel-multi-target-plugin

A Webpack plugin that works with Babel to allow differential loading - production deployment of ES2015 builds targeted to modern browsers, with an ES5 fallback for legacy browsers.
153 stars 14 forks source link

Improve Browserslist queries #87

Open ai opened 3 years ago

ai commented 3 years ago
  1. Browserslist has a supports query to filter browsers by feature support.
  2. With and queries combination you can avoid keeping a local list of browsers and rely on Can I Use. It is also better for browser diversity.
  3. I think Browserslist defaults is a better legacy default. Especially, because of the not dead query.
ai commented 3 years ago

I added browserslist config query to Browserslist 4.16 and updated this PR to use it

ai commented 3 years ago

Done. Sorry for delay.