flems icon indicating copy to clipboard operation
flems copied to clipboard

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

Open pygy opened this issue 4 years ago • 2 comments

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...

pygy avatar May 01 '20 22:05 pygy

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.

porsager avatar May 02 '20 09:05 porsager

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.

pygy avatar May 29 '20 11:05 pygy