-
wincent authored
Despite what the docs (https://babeljs.io/docs/en/babel-preset-env) say, it appears that not all the target queries supported by browserslist (https://github.com/browserslist/browserslist) can be used here. "default" is supposedly equivalent to "> 0.5%, last 2 versions, Firefox ESR, not dead", but when I add a `debug: true` flag, I see that it treats `targets` as `{}` and ends up producing a bundle which is a few KB larger (pre-gzip, I don't know about post-gzip). It looks to be the whole kaboodle. Disappointing that the list of included polyfills ends up being so large; a nice chunk gets trimmed off if you use a more aggressive target like "last 2 Chrome versions" (that's obviously not viable though). Over time, the bundle should get smaller though as more browsers drop off the list. Closes: https://github.com/wincent/masochist/issues/127
883dab00