-
Notifications
You must be signed in to change notification settings - Fork 79
regeneratorRuntime required with @fluent/bundle even when not using the compat build #497
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
Comments
Thank you for a comprehensive issue report! In #472 I removed the The main motivation for removing the In your example, I assume that |
I'm indeed using browserify, but as far as I'm aware, the transforms ( |
About that piece of doc, IIRC that was supposed to mean: If you're not using the compat builds, you need a fancy new browser, and anything just slightly old will break in all kinds of ways. So you need generators either way, but the non-compat builds break on a lot more than just that. |
@Pike Thanks, that makes sense! |
Could it be that In fact, |
@stasm Indeed, thanks, that looks like it's the crux of it! To test, when I replace
I'll close this issue now, thanks all for helping me investigate. |
Hello!
I'm not sure if this is me merely misunderstanding the docs, but I thought I'd raise anyway.
The README for
@fluent/bundle
mentions that if using thecompat
build, regenerator runtime must also be provided.I'm seeing
regeneratorRuntime
required even though I'm not using thecompat
build.Minimal working example:
package.json
dependenciesindex.js
index.html
Transpilation step
Browser runtime error
I can see
regeneratorRuntime
in the transpiled output:This is easily fixed by me adding
import regeneratorRuntime from "regenerator-runtime";
to the top of my file. But I suspect this isn't what I should be doing. Is it a case of out of date documentation?The text was updated successfully, but these errors were encountered: