-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
polyfill and runtime transformer documentation is lacking #491
Comments
I'm also interested in knowing how someone can know when the polyfill needs to be used. I was surprised, for example, to find that the
I had originally assumed that the |
I've prosed babel/babel#2784 to make it so |
I agree this is an issue, I'm no longer sure when I need to use the polyfill and so I'm wary of upgrading to 6 - can't we just make a 'es2015-nopolyfill' or similar preset to make it 100% clear? |
Actually, will propose that on main repo, but still agree that this needs to be documented |
Based on https://github.com/babel/babel.github.io/blob/862b43db93e48762671267034a50c30c00e433e2/docs/usage/runtime.md Not sure if the documentation from Babel 5 is still 100% accurate, but from what I could understand it seems to be. Related to babel#674 and babel#491 Also added this to the main repo at babel/babel#3258
this is done |
The old page about the runtime transformer seems to have disappeared. There's a new page about the runtime transformer, but it's less than useful. The setup page doesn't seem to mention the polyfill-or-runtime-transformer requirement at all. Nothing I found seems to link to the polyfill page, and that page doesn't do much to explain its necessity. The sentence "This will emulate a full ES6 environment" almost makes it sound like one could use babel or the polyfill to get ES6, instead of explaining that babel often must be used with the polyfill (or runtime transform). Issues like babel/babel#2654 seem inevitable for new users currently.
The polyfill page ought to explain its relationship to the runtime transformer and the necessity of one or the other being used for most es2015 transforms, and other pages (mainly the setup page and/or the transformers page) should link to it.
The text was updated successfully, but these errors were encountered: