babel / babel-preset-env

PSA: this repo has been moved into babel/babel -->

Home Page:https://github.com/babel/babel/tree/master/packages/babel-preset-env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useBuiltins usage with experimental / stage-x built-ins

modosc opened this issue · comments

NOTE: This does not currently polyfill experimental/stage-x built-ins like the regular "babel-polyfill"

can you clarify this wording in the docs? i'm unsure if this means:

  • using babel-preset-stage-0 will cause me to needlessly pull in all of babel-polyfill even though babel-preset-env only pulled in a subset

or

  • using babel-preset-stage-0 may break because it could depend on a polyfill that's being removed by babel-preset-env

also, is there a way to determine which polyfills a given babel plugin is using?

I'd also like to know that, I'm not sure babel-preset-env works how I'd imagine it to work. This includes usage of any state-x preset.

This issue has been moved to babel/babel#6612.