Skip to content
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

Babel polyfills #231

Open
tessalt opened this issue Nov 15, 2016 · 3 comments
Open

Babel polyfills #231

tessalt opened this issue Nov 15, 2016 · 3 comments

Comments

@tessalt
Copy link

tessalt commented Nov 15, 2016

We should have more than a note about polyfilling features like Object.assign.

Are we recommending the default babel-polyfill, or should we prefer babel transforms?

@hzoo
Copy link

hzoo commented Dec 6, 2016

I'm working on babel/babel-preset-env#56 right now so I would ask that you try that out when it lands! (and preset-env) in general vs

[require('babel-preset-es2015').buildPreset, options],
require('babel-preset-es2016'),
require('babel-preset-es2017'),
(or use https://babeljs.io/docs/plugins/preset-latest/)

@tessalt
Copy link
Author

tessalt commented Dec 7, 2016

@hzoo that is very exciting, can't wait to try it out when it lands!

@hzoo
Copy link

hzoo commented Apr 7, 2017

babel/babel-preset-env#56 was landed as part of 1.0 and removes polyfills already supported natively.

babel/babel-preset-env#241 will only add polyfills used in your compiled code and will land in 2.x-alpha with Babel 7 (releasing soon)

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

No branches or pull requests

2 participants