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
Bumping @babel/preset-env from 7.12.1 to 7.12.7 breaks tests (jest) #12393
Comments
Hey @wachunei! 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." |
This should be fixed by #12391! |
Hello @nicolo-ribaudo, sounds good, can we leave this open until release, bump and test pass? I can take care of closing it once that happens (hopefully 🤞) |
Sure! |
I don't think it is related to #12391. The test in wachunei/directUC#162 fails because Babel does not transpile have native You can either specify a different preset-env targets for Jest tests, or run tests on Node.js 14 which has native support. |
That totally makes sense, but how is it explained that it worked before then? Edit: How can I add |
Because what
You can create a
|
I did not use environment keys in my |
Bug Report
Current behavior
Bumping @babel/preset-env from 7.12.1 to 7.12.7 breaks tests
Nullish coalescing and optional chaining operator are not parsed anymore.
Input Code
Example:
Expected behavior
To transform correctly
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
package.json#babel
Environment
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: