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

Include babel-polyfill or use transform-runtime #3

Open
AndersDJohnson opened this issue Jul 31, 2017 · 0 comments
Open

Include babel-polyfill or use transform-runtime #3

AndersDJohnson opened this issue Jul 31, 2017 · 0 comments

Comments

@AndersDJohnson
Copy link

Should include babel-polyfill as a runtime dependency, since it's imported by the es6 source, and the transpiled code ends up with require statements for core-js and regenerator-runtime. See http://babeljs.io/docs/usage/polyfill/#installation.

Though generally it's preferred to use the transform runtime plugin for libraries, since that won't pollute the global scope.

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

1 participant