Skip to content
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

Add note about the conflict with useBuiltins #2144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tarjei
Copy link

@tarjei tarjei commented Dec 11, 2019

Hi, this is a stab at babel/babel#10121.

As I understand it, preset-env with useBuiltins set to usage conflicts with using the runtime helper, though it is not totally clear to me how.

Hi, this is a stab at #10121. 

As I understand it, preset-env with useBuiltins set to `usage` conflicts with using the runtime helper, though it is not totally clear to me how.
@netlify
Copy link

netlify bot commented Dec 11, 2019

Deploy preview for babel ready!

Built with commit fb72449

https://deploy-preview-2144--babel.netlify.com

@nicolo-ribaudo
Copy link
Member

The problem is only when using useBuiltIns and @babel/plugin-transform-runtime's corejs option, because it's not predictable which of the two polyfills would be applied to the different JavaScript features.

Using @babel/plugin-transform-runtime only for the helpers is safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants