-
Notifications
You must be signed in to change notification settings - Fork 5
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
ReferenceError: regeneratorRuntime is not defined #2
Comments
you should polyfill babel-polyfill to make this work |
Yes, but I'd like to add this to the library and not force the user to install it. What do you think about it? |
bad idea, let user polyfill in some environment polyfill is not needed, so it should not be included |
Good point, and good idea so we can close it :) Thanks for your input 👍 |
Shouldn't transform-runtime be used instead? regenerator-runtime is no longer a viable option since it does not create a global variable anymore. The suggested method seems to be for third party packages to use transform-runtime. Citation: facebook/regenerator#363 (comment) babel-polyfill does work, but now that regenerator-runtime is no longer an option, the only option for people who do not want to use babel-polyfill is to use transform-runtime, but transform-runtime must be included in the third party package. |
No description provided.
The text was updated successfully, but these errors were encountered: