Skip to content

Add note about the conflict with useBuiltins#2144

Open
tarjei wants to merge 1 commit into
babel:mainfrom
tarjei:patch-1
Open

Add note about the conflict with useBuiltins#2144
tarjei wants to merge 1 commit into
babel:mainfrom
tarjei:patch-1

Conversation

@tarjei

@tarjei tarjei commented Dec 11, 2019

Copy link
Copy Markdown

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

netlify Bot commented Dec 11, 2019

Copy link
Copy Markdown

Deploy preview for babel ready!

Built with commit fb72449

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

@nicolo-ribaudo

Copy link
Copy Markdown
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