Closed
Description
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.
Activity
mxstbr commentedon Jul 23, 2016
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?
vjeux commentedon Jul 23, 2016
Is there a way to add regeneratorRuntime only if you use generators?
gaearon commentedon Jul 23, 2016
I thought this is how it worked but I'm probably wrong. Also worth looking at
transform-runtime
.insin commentedon Jul 23, 2016
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
gaearon commentedon Jul 27, 2016
Generators should work out of the box with 0.2.0 alpha. #190
Merge pull request facebook#125 from pedsmoreira/patch-1