Babel: `babel-register` screws up `babel-polyfill`

Created on 13 May 2017  路  3Comments  路  Source: babel/babel

If require('babel-register') is called first and then require('babel-polyfill') then the regeneratorRuntime is not set in the global scope.

question outdated register

All 3 comments

Hey @halt-hammerzeit! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.

Thanks fro the report!

Not sure we can anything here, maybe we just need some better language in the docs http://babeljs.io/docs/usage/polyfill/#usage-in-node-browserify-webpack - the polyfill should always come before everything?

Was this page helpful?
0 / 5 - 0 ratings