Babel is not able to output the optional chaining operator without transpiling it #12140
Labels
area: upstream
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Current behavior
Babel is not able to output the optional chaining operator without first transpiling it.
With a browserslist of:
last 2 Chrome versions
With a browserslist of:
last 2 Chrome versions, IE 11
, it succeeds. However the output (as expected) has the optional chaining operator transpiled toInput Code
Expected behavior
Babel would succeed even when the browserslist only lists browsers that currently support the optional chaining operator.
Babel Configuration
babel.config.js
.browserslistrc
webpack.config.js
index.js
Environment
loader
Possible Solution
Additional context
Add any other context about the problem here. Or a screenshot if applicable
The text was updated successfully, but these errors were encountered: