Skip to content

Commit 8902e93

Browse files
committed
add optional chaining to fix build
1 parent c93ecdd commit 8902e93

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

.babelrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"presets": [
33
[ "react-app", { "absoluteRuntime": false } ]
4-
]
4+
],
5+
"plugins": ["@babel/plugin-proposal-optional-chaining"]
56
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"devDependencies": {
6868
"@babel/cli": "^7.2.3",
6969
"@babel/core": "^7.2.2",
70-
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
70+
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
7171
"@storybook/addon-actions": "^5.3.14",
7272
"@storybook/addon-links": "^5.3.14",
7373
"@storybook/addons": "^5.3.14",

yarn.lock

+26-1
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,13 @@
594594
"@babel/template" "^7.8.3"
595595
"@babel/types" "^7.8.3"
596596

597+
"@babel/helper-skip-transparent-expression-wrappers@^7.11.0":
598+
version "7.11.0"
599+
resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.11.0.tgz#eec162f112c2f58d3af0af125e3bb57665146729"
600+
integrity sha512-0XIdiQln4Elglgjbwo9wuJpL/K7AGCY26kmEt0+pRP0TAj4jjyNq1MjoRvikrTVqKcx4Gysxt4cXvVFXP/JO2Q==
601+
dependencies:
602+
"@babel/types" "^7.11.0"
603+
597604
"@babel/helper-split-export-declaration@^7.0.0", "@babel/helper-split-export-declaration@^7.4.4":
598605
version "7.4.4"
599606
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.4.tgz#ff94894a340be78f53f06af038b205c49d993677"
@@ -896,7 +903,16 @@
896903
"@babel/helper-plugin-utils" "^7.8.3"
897904
"@babel/plugin-syntax-optional-chaining" "^7.8.0"
898905

899-
"@babel/plugin-proposal-optional-chaining@^7.10.4", "@babel/plugin-proposal-optional-chaining@^7.9.0":
906+
"@babel/plugin-proposal-optional-chaining@^7.11.0":
907+
version "7.11.0"
908+
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.11.0.tgz#de5866d0646f6afdaab8a566382fe3a221755076"
909+
integrity sha512-v9fZIu3Y8562RRwhm1BbMRxtqZNFmFA2EG+pT2diuU8PT3H6T/KXoZ54KgYisfOFZHV6PfvAiBIZ9Rcz+/JCxA==
910+
dependencies:
911+
"@babel/helper-plugin-utils" "^7.10.4"
912+
"@babel/helper-skip-transparent-expression-wrappers" "^7.11.0"
913+
"@babel/plugin-syntax-optional-chaining" "^7.8.0"
914+
915+
"@babel/plugin-proposal-optional-chaining@^7.9.0":
900916
version "7.10.4"
901917
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.10.4.tgz#750f1255e930a1f82d8cdde45031f81a0d0adff7"
902918
integrity sha512-ZIhQIEeavTgouyMSdZRap4VPPHqJJ3NEs2cuHs5p0erH+iz6khB0qfgU8g7UuJkG88+fBMy23ZiU+nuHvekJeQ==
@@ -2160,6 +2176,15 @@
21602176
lodash "^4.17.19"
21612177
to-fast-properties "^2.0.0"
21622178

2179+
"@babel/types@^7.11.0":
2180+
version "7.11.0"
2181+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.0.tgz#2ae6bf1ba9ae8c3c43824e5861269871b206e90d"
2182+
integrity sha512-O53yME4ZZI0jO1EVGtF1ePGl0LHirG4P1ibcD80XyzZcKhcMFeCXmh4Xb1ifGBIV233Qg12x4rBfQgA+tmOukA==
2183+
dependencies:
2184+
"@babel/helper-validator-identifier" "^7.10.4"
2185+
lodash "^4.17.19"
2186+
to-fast-properties "^2.0.0"
2187+
21632188
"@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.0", "@babel/types@^7.9.5":
21642189
version "7.9.5"
21652190
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.5.tgz#89231f82915a8a566a703b3b20133f73da6b9444"

0 commit comments

Comments
 (0)