3 ms·
It'd be nice to see support similar to Autoprefixer[1]'s use of Browserlist queries[2]. Those let the developer to specify the desired target platforms by brows
by saidajigumi 10y ago
It'd be nice to see support similar to Autoprefixer[1]'s use of Browserlist queries[2]. Those let the developer to specify the desired target platforms by browser versions, by global usage stats (e.g. '> 5%'), or by custom usage stats ('> 5% in my stats') etc., and derive the correct prefixes needed to deploy to those targets.
EDIT (for clarity): It'd be great to see similar query support to derive a "lowest common denominator" Babel preset for an intended ES generation vs. browser profile set.
[1] https://github.com/postcss/autoprefixer https://github.com/postcss/autoprefixer
[2] https://github.com/ai/browserslist#queries https://github.com/ai/browserslist#queries
- hzoo 10y agoYep, it's our plan to do something like that with community help - have a PR open for discussion at https://github.com/babel/babel/pull/3476 https://github.com/babel/babel/pull/3476. Also https://twitter.com/samccone/status/722826060161617923 https://twitter.com/samccone/status/722826060161617923.