website icon indicating copy to clipboard operation
website copied to clipboard

Add note about the conflict with useBuiltins

Open tarjei opened this issue 6 years ago • 2 comments

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.

tarjei avatar Dec 11 '19 08:12 tarjei

Deploy preview for babel ready!

Built with commit fb72449fe20b34da6df7d97c7fec8b7f575ab454

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

netlify[bot] avatar Dec 11 '19 09:12 netlify[bot]

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.

nicolo-ribaudo avatar Dec 11 '19 11:12 nicolo-ribaudo