-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Document or build with babel-polyfill #125
Comments
It's interesting because while I agree that generators should be supported, not many people will use them and the polyfill is quite a bit of code. I think documenting it might be the way to go here? |
Is there a way to add regeneratorRuntime only if you use generators? |
I thought this is how it worked but I'm probably wrong. Also worth looking at |
Discussion about this in #51 Ad-hoc reckons on the subject of auto-polyfilling, but based on having user config: https://gist.github.com/insin/711862bb578735c54c294d24bfb024ef |
Generators should work out of the box with 0.2.0 alpha. #190 |
Add instructions to add to existing projects
This doesn't seem to include babel-polyfill. This would be fine for modern browsers except that Babel's generators depend on regeneratorRuntime, which is included in the polyfill. This needs to either be documented (i.e. "use babel-polyfill if you're supporting old browsers or using ES6 generators") or automatically included in the webpack build.
The text was updated successfully, but these errors were encountered: