-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
polyfill-regenerator doesn't support targets #36
Comments
I didn't implement
This means that, even if you always enable the polyfill plugin, it only does something when you transpile generators. I think that allowing However, maybe we could throw a better error message 🤔 |
Ohhhh gotcha, so it'll only run if That's great, then I don't need to duplicate Yea I think a warning logged out or error thrown if I can add a PR for both of those and get your feedback |
Sounds good to me, feel free to open a PR for both! |
Issue
Hey there, so I've been trying to add this to TSDX in jaredpalmer/tsdx#795 but ran into an issue: jaredpalmer/tsdx#795 (comment). Long story short,
polyfill-regenerator
doesn't seem to supporttargets
.If I'm understanding correctly, this line needs to specify
targets
per thepolyfill-provider
docs.Would be happy to write a PR for this and will look into it more tomorrow. I'm not sure if I should just manually input the data from MDN or if I should use
babel-compat-data
fortransform-regenerator
? Any guidance would be appreciatedContext
Per above, was looking to get this to work with TSDX, which would add quite a lot of indirect library users of this.
Concretely, I was adding this to replace the now defunct/unmaintained
babel-plugin-async-to-promises
(that has some correctness bugs) without the downsides of an impurepreset-env
useBuiltIns
or all-or-nothingtransform-runtime
.P.S.
Also just wanted to say really happy to see this set of libraries existing to provide a solution for gaps between
preset-env
useBuiltIns
andtransform-runtime
, solves a long existing problem!The text was updated successfully, but these errors were encountered: