Implement @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining #13009
This PR transpiles the following optional chaining usage when targeted to latest V8 derived browsers
fn ?. (x, ...y, z) a?.b (...y, z)
see also code examples in the upstream V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=11558.
The other unmentioned optional chaining usage will not be transpiled if your targets already have optional chaining support.
In this PR we export the optional chaining transform from
Note that this may be sub-optimal for nested optional chains, i.e. in
For reviewers: This PR depends on #13008, please review that one first.
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 687ddb5: