You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile some code and automatically add polyfills for IE11. To do this, I'd like to use @babel/preset-env with the useBuiltIns option set to usage, so I don't have to manually specify which polyfills to load. However, this option (and others) are never passed to Babel when I run Parcel.
🐛 bug report
I'm trying to compile some code and automatically add polyfills for IE11. To do this, I'd like to use
@babel/preset-env
with theuseBuiltIns
option set tousage
, so I don't have to manually specify which polyfills to load. However, this option (and others) are never passed to Babel when I run Parcel.🎛 Configuration (.babelrc, package.json, cli command)
src/test-endswith.js:
.babelrc:
package.json:
🤔 Expected Behavior
I expect to see debug output from
@babel/preset-env
, and I expect a polyfill forString.endsWith
.😯 Current Behavior
The debug output is not displayed, and the polyfill is not included.
💁 Possible Solution
It looks like env presets are removed completely from the loaded config, maybe the options could be merged instead?
🔦 Context
💻 Code Sample
https://gist.github.com/hackedd/c4aa9368d542e75ea9186a59b2d2a1d9
🌍 Your Environment
The text was updated successfully, but these errors were encountered: