From 5bb33d2e8c659f417515301d6d453615a8f0a442 Mon Sep 17 00:00:00 2001 From: Aumin Patel Date: Mon, 1 Feb 2021 23:26:20 +0530 Subject: [PATCH] =?UTF-8?q?PREAPPS-5789=20:=20adding=20@babel/plugin-propo?= =?UTF-8?q?sal-optional-chaining=20=C2=B7=20Babel=20to=20the=20plugins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 6 +++--- package.json | 7 ++++--- src/index.js | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index d690c14..e77fbee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1382,9 +1382,9 @@ } }, "@babel/plugin-proposal-optional-chaining": { - "version": "7.12.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.1.tgz", - "integrity": "sha512-c2uRpY6WzaVDzynVY9liyykS+kVU+WRZPMPYpkelXH8KBt1oXoI89kPbZKKG/jDT5UK92FTW2fZkZaJhdiBabw==", + "version": "7.12.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.7.tgz", + "integrity": "sha512-4ovylXZ0PWmwoOvhU2vhnzVNnm88/Sm9nx7V8BPgMvAzn5zDou3/Awy0EjglyubVHasJj+XCEkr/r1X3P5elCA==", "requires": { "@babel/helper-plugin-utils": "^7.10.4", "@babel/helper-skip-transparent-expression-wrappers": "^7.12.1", diff --git a/package.json b/package.json index 1d00e74..6b76783 100644 --- a/package.json +++ b/package.json @@ -45,13 +45,15 @@ "devDependencies": { "@apollo/client": "^3.2.5", "@babel/cli": "^7.12.1", + "@babel/plugin-proposal-optional-chaining": "^7.12.7", "audit-ci": "^3.1.1", "babel-eslint": "^10.1.0", "eslint": "^7.12.1", "eslint-config-synacor": "^3.0.5", - "mkdirp": "^1.0.4", "graphql": "^15.4.0", + "mkdirp": "^1.0.4", "mockery": "^2.1.0", + "moment": "^2.29.1", "preact": "^10.5.5", "preact-context-provider": "^2.0.0-preactx.2", "preact-i18n": "^2.3.0-preactx", @@ -59,8 +61,7 @@ "preact-router": "github:zimbra/preact-router#3.1.0_base_path_support", "react-redux": "^7.2.2", "recompose": "^0.30.0", - "rimraf": "^3.0.2", - "moment": "^2.29.1" + "rimraf": "^3.0.2" }, "license": "GPL-3.0", "dependencies": { diff --git a/src/index.js b/src/index.js index 9a4e5ac..c3a64c1 100644 --- a/src/index.js +++ b/src/index.js @@ -214,6 +214,7 @@ export function configure(env) { require.resolve('@babel/plugin-proposal-export-namespace-from'), require.resolve('@babel/plugin-proposal-export-default-from'), require.resolve('@babel/plugin-transform-object-assign'), + require.resolve('@babel/plugin-proposal-optional-chaining'), [require.resolve('@babel/plugin-transform-react-jsx'), { pragma: 'createElement' }] ] }