diff --git a/packages/build/package.json b/packages/build/package.json index b397e93..a299395 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -24,6 +24,7 @@ "dependencies": { "@babel/eslint-parser": "^7.13.10", "@babel/plugin-proposal-class-properties": "^7.12.13", + "@babel/plugin-proposal-optional-chaining": "^7.12.16", "@babel/plugin-proposal-private-methods": "^7.12.13", "@babel/plugin-syntax-jsx": "^7.12.13", "@neutrinojs/airbnb": "^9.4.0", diff --git a/packages/build/src/build/.babelrc.js b/packages/build/src/build/.babelrc.js index eb854b9..fa8339a 100644 --- a/packages/build/src/build/.babelrc.js +++ b/packages/build/src/build/.babelrc.js @@ -6,6 +6,7 @@ module.exports = (api) => { api.cache(true); const plugins = [ '@babel/plugin-proposal-class-properties', + '@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-private-methods', '@babel/plugin-syntax-jsx', [ diff --git a/packages/build/yarn.lock b/packages/build/yarn.lock index 56ec62d..046c7d8 100644 --- a/packages/build/yarn.lock +++ b/packages/build/yarn.lock @@ -111,7 +111,7 @@ dependencies: "@babel/types" "^7.12.13" -"@babel/helper-plugin-utils@^7.12.13": +"@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.8.0": version "7.12.13" resolved "http://npm.cha0sdev/@babel%2fhelper-plugin-utils/-/helper-plugin-utils-7.12.13.tgz#174254d0f2424d8aefb4dd48057511247b0a9eeb" integrity sha512-C+10MXCXJLiR6IeG9+Wiejt9jmtFpxUc3MQqCmPY8hfCjyUGl9kT+B2okzEZrtykiwrc4dbCPdDoz0A/HQbDaA== @@ -133,6 +133,13 @@ dependencies: "@babel/types" "^7.12.13" +"@babel/helper-skip-transparent-expression-wrappers@^7.12.1": + version "7.12.1" + resolved "http://npm.cha0sdev/@babel%2fhelper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.12.1.tgz#462dc63a7e435ade8468385c63d2b84cce4b3cbf" + integrity sha512-Mf5AUuhG1/OCChOJ/HcADmvcHM42WJockombn8ATJG3OnyiSxBK/Mm5x78BQWvmtXZKHgbjdGL2kin/HOLlZGA== + dependencies: + "@babel/types" "^7.12.1" + "@babel/helper-split-export-declaration@^7.12.13": version "7.12.13" resolved "http://npm.cha0sdev/@babel%2fhelper-split-export-declaration/-/helper-split-export-declaration-7.12.13.tgz#e9430be00baf3e88b0e13e6f9d4eaf2136372b05" @@ -176,6 +183,15 @@ "@babel/helper-create-class-features-plugin" "^7.12.13" "@babel/helper-plugin-utils" "^7.12.13" +"@babel/plugin-proposal-optional-chaining@^7.12.16": + version "7.12.16" + resolved "http://npm.cha0sdev/@babel%2fplugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.16.tgz#600c7531f754186b0f2096e495a92da7d88aa139" + integrity sha512-O3ohPwOhkwji5Mckb7F/PJpJVJY3DpPsrt/F0Bk40+QMk9QpAIqeGusHWqu/mYqsM8oBa6TziL/2mbERWsUZjg== + dependencies: + "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-skip-transparent-expression-wrappers" "^7.12.1" + "@babel/plugin-syntax-optional-chaining" "^7.8.0" + "@babel/plugin-proposal-private-methods@^7.12.13": version "7.12.13" resolved "http://npm.cha0sdev/@babel%2fplugin-proposal-private-methods/-/plugin-proposal-private-methods-7.12.13.tgz#ea78a12554d784ecf7fc55950b752d469d9c4a71" @@ -191,6 +207,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.12.13" +"@babel/plugin-syntax-optional-chaining@^7.8.0": + version "7.8.3" + resolved "http://npm.cha0sdev/@babel%2fplugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" + integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + "@babel/plugin-transform-modules-commonjs@^7.12.1": version "7.12.13" resolved "http://npm.cha0sdev/@babel%2fplugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.13.tgz#5043b870a784a8421fa1fd9136a24f294da13e50" @@ -251,7 +274,7 @@ globals "^11.1.0" lodash "^4.17.19" -"@babel/types@^7.12.13", "@babel/types@^7.7.0": +"@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.7.0": version "7.12.13" resolved "http://npm.cha0sdev/@babel%2ftypes/-/types-7.12.13.tgz#8be1aa8f2c876da11a9cf650c0ecf656913ad611" integrity sha512-oKrdZTld2im1z8bDwTOQvUbxKwE+854zc16qWZQlcTqMN00pWxHQ4ZeOq0yDMnisOpRykH2/5Qqcrk/OlbAjiQ==