[@babel/preset-env] Optional chaining operator not working in Chrome #13145
Labels
i: bug
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Repo with reproduction: https://github.com/scinos/test-babel-not-optional-chaining
Input Code
Filename
.babelrc.js
Filename
.browserslistrc
Filename
src/index.js
Current behavior
When running
babel src -d dist
it generates a file with?.
transpiled down:Expected behavior
It should generate a file with the optional chaining operator:
Environment
Possible Solution
Looks like the error is related to Chrome (using
Firefox 88
as the target works), and introduced since@babel/preset-env@7.13.10
and/or@babel/compat-data@7.13.11
.Potentially related to #13009 ?
The text was updated successfully, but these errors were encountered: