From dcbf62f4927ed337f40b76aa47db217d973cbaf9 Mon Sep 17 00:00:00 2001 From: Lalit Singh Date: Wed, 2 Aug 2023 23:19:35 +0530 Subject: [PATCH] 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. --- web/babel.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/babel.config.js b/web/babel.config.js index 9342f137b9..9079dcabe8 100644 --- a/web/babel.config.js +++ b/web/babel.config.js @@ -15,6 +15,7 @@ module.exports = { "@babel/preset-env", { corejs: "3.31", + include: ["transform-optional-chaining"], shippedProposals: true, useBuiltIns: "usage", },