@babel/plugin-proposal-optional-chaining@7.0.0 compilation fails on expression that chains a function call with a chained argument #9012
Labels
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Current Behavior
Compilation fails on a legal optional chaining expression
const transpileBug = (a, b) => a?.bar(b?.foo)
withInput Code
Expected behavior/code
The given expression should not cause compiler to fail.
Babel Configuration (.babelrc, package.json, cli command)
Environment
cli
by runningnpm run transpile
Possible Solution
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: