-
-
Notifications
You must be signed in to change notification settings - Fork 60
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 pollutes global scope even if set to "usage-pure" #59
Comments
It's an error on my side, I didn't realize that regenerator always defines the global. However, this is tracked at facebook/regenerator#302. |
Thanks for the fast response - does this mean that we would have to wait until it is resolved in the issue you linked, or are you able to resolve it? |
This needs to be fixed in regenerator itself, since currently it doesn't expose an entry point which exports |
So there is no way to completely polyfill and transpile the code down without requiring the |
I'm not 100% sure I understand what you are asking. If you look at your |
Sorry I should've been more specific. What I'm trying to achieve is to transpile my typescript application with async/await down to IE11 compatible code, without polluting the global scope. That includes polyfilling without scope pollution as well. There doesn't seem to be too much information about that on the web in general |
Thanks for clarifying. Then the answer is "it's not possible until |
A new version v0.13.9 of |
That commit would only impact CSP, not global scope. |
I might be misunderstanding here, but I thought using
polyfill-regenerator
was not supposed to pollute global scope if set tousage-pure
. You can see a repro here.When I build the app and open the
index.html
file, I can still see theregeneratorRuntime
global variable.The text was updated successfully, but these errors were encountered: