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
IE11 Promise polyfill not loaded from @babel/present-env v7.7.0 #10830
Comments
Hey @AlmeroSteyn! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
Could you at least share the path of the source file which contains the promise which isn't being transpiled? |
@nicolo-ribaudo Oh yeah of course! Fails on Both files that I cannot imagine should need transpilation? |
I guess - it is the same as #10678 (comment) |
This should be fixe by facebook/regenerator#383, because now we use the polyfilled promise with regenerator. |
Bug Report
I have an issue with
@babel/preset-env
not injecting the Promise polyfill after upgrading fromv7.6.3
tov7.7.x
.Current Behavior
In a Preact application, when upgrading
@babel/preset-env
fromv7.6.3
tov7.7.x
, IE11 crashes with console error"Promise" is undefined
. In the same repo, by simply reverting back tov7.6.3
, the issue goes away and the code works flawlessly again.I have tried a large number of things, including confirming that the
browserslist
is resolved correctly but am unable to fix this issue.Input Code
I am currently unable to reproduce this in a smaller repo that I can share without breaking non-disclosure of company code as I don't know what has changed and therefore where to even start looking for it yet.
I am hoping that this is a known issue or that my configuration is enough to suggest a fix.
Expected behavior/code
The polyfills should work in IE11.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
Configuration is done in
webpack.config
as rules.Initially the rule was loaded as:
BROWSERS
is defined asconst BROWSERS = 'last 1 version, > 1%, not dead'
After consulting the documentation I change the deprecated
query
touse
:In
package.json
I have the following setting now:Environment
The text was updated successfully, but these errors were encountered: