mirror of https://github.com/zulip/zulip.git
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:
parent
980c74e8da
commit
dcbf62f492
|
@ -15,6 +15,7 @@ module.exports = {
|
|||
"@babel/preset-env",
|
||||
{
|
||||
corejs: "3.31",
|
||||
include: ["transform-optional-chaining"],
|
||||
shippedProposals: true,
|
||||
useBuiltIns: "usage",
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue