diff --git a/babel.config.js b/babel.config.js index 8429c2d1e..d12d254e7 100644 --- a/babel.config.js +++ b/babel.config.js @@ -10,6 +10,7 @@ module.exports = { ], '@babel/plugin-proposal-dynamic-import', '@babel/plugin-proposal-nullish-coalescing-operator', + '@babel/plugin-proposal-optional-chaining', '@babel/plugin-transform-modules-commonjs', ], } diff --git a/package-lock.json b/package-lock.json index ce312c673..6aac35ed8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -358,6 +358,16 @@ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0" } }, + "@babel/plugin-proposal-optional-chaining": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.8.0.tgz", + "integrity": "sha512-PNBHxPHE91m+LLOdGwlvyGicWfrMgiVwng5WdB3CMjd61+vn3vPw0GbgECIAUCZnyi7Jqs5htUIZRztGuV8/5g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.0" + } + }, "@babel/plugin-syntax-dynamic-import": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.0.tgz", @@ -385,6 +395,15 @@ "@babel/helper-plugin-utils": "^7.8.0" } }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.0.tgz", + "integrity": "sha512-LV1c+TTAO8Vawe3t+WXBHYWbS7endP8MSlqKPKEZOyWPEJX2akl3jfvFG828/OE7RpyoC3JXfLJDFj/jN7A8hg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, "@babel/plugin-transform-modules-commonjs": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.8.0.tgz", diff --git a/package.json b/package.json index f57452f4d..31fea9e58 100644 --- a/package.json +++ b/package.json @@ -174,6 +174,7 @@ "@babel/plugin-proposal-class-properties": "^7.8.0", "@babel/plugin-proposal-dynamic-import": "^7.8.0", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.0", + "@babel/plugin-proposal-optional-chaining": "^7.8.0", "@babel/plugin-transform-modules-commonjs": "^7.8.0", "@babel/register": "^7.8.0", "aws-sdk": "^2.601.0",