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

regeneratorRuntime is not defined (with Babel-transpiled code that uses generators) #84

Open
pygy opened this issue May 1, 2020 · 2 comments

Comments

@pygy
Copy link
Contributor

pygy commented May 1, 2020

linky

I don't know if Flems is supposed to work with IE11, but if it isn't you could just target ES6 with Babel...

@porsager
Copy link
Owner

porsager commented May 2, 2020

I use Flems for IE11 tests sometimes, but not with Babel transpile enabled.

Would setting ES6 work for Babel fix this?

In that case It's probably a better tradeoff than not having generators work in modern browsers when Babel is active.

@pygy
Copy link
Contributor Author

pygy commented May 29, 2020

A third possibility would be to load said runtime, but I don't know how heavy it is, or if it can be done lazily.

I suppose that targeting ES6 would solve it, since it supports generators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants