babel: Include "transform-optional-chaining" in presets.

We need to include this "transform-optional-chaining" for babel presets
to prevent an error related to optional chaining syntax when we convert
this module to typescript. This error is a bug which is present in the
unmaintained `babel-plugin-rewire-ts` plugin.
This commit is contained in:
Lalit Singh 2023-08-02 23:19:35 +05:30 committed by Tim Abbott
parent 980c74e8da
commit dcbf62f492
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ module.exports = {
"@babel/preset-env",
{
corejs: "3.31",
include: ["transform-optional-chaining"],
shippedProposals: true,
useBuiltIns: "usage",
},