Skip to content

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