-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper usage with selective polyfilling? #9
Comments
We will move this preset into |
Right - I believe even with all transforms enabled right now preset-env would produce polyfill imports since it isn't aware preset-modules is transforming things. I believe the |
At the moment i've got them working together but have had to manually |
@jquense I couldn't agree more! :) FWIW I've found myself using polyfill.io's configurator tool and then grabbing the resulting polyfills (with the BTW if you have a working |
its luckily as easy as using a regex since the babel plugins are consistently named https://github.com/4Catalyzer/javascript/blob/esm/packages/babel-preset/esm.js#L25 |
oh, brilliant haha. One thing potentially worth trying would be to exclude known false positive inclusions of corejs: exclude: [
/transform/,
'es.map',
'es.set',
'es.object.assign'
] |
Babel 8 is planned to be released in March. Any chance it will be included then? :) |
It will! And in case we release 7.9.0 before 8.0.0, it will be already included in 7.9.0. You can turn on notifications for babel/babel#11083 😉 |
I don't know where to post this, but the Safari 10 polyfill for supporting "nomodule", is this part of this plugin, or do we still need to include that ourselves? |
Is there a good, or preferable setup using preset-modules, along with `preset-env' auto polyfilling? Perhaps all the transforms disabled so the polyfills are also included?
The text was updated successfully, but these errors were encountered: