Skip to content

Commit 2411d84

Browse files
authored
fix: upgrade react devtools (#8684)
* fix: upgrade react devtools * fix: new syntax in build
1 parent 002fbc9 commit 2411d84

File tree

3 files changed

+48
-10
lines changed

3 files changed

+48
-10
lines changed

packages/app/config/webpack.common.js

+7
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ module.exports = {
159159
new RegExp(`${sepRe}node_modules${sepRe}.*babel-plugin-macros`),
160160
new RegExp(`sandbox-hooks`),
161161
new RegExp(`template-icons`),
162+
new RegExp(`${sepRe}node_modules${sepRe}.*react-devtools-inline`),
163+
new RegExp(
164+
`${sepRe}node_modules${sepRe}.*@codesandbox${sepRe}sandpack-react`
165+
),
162166
new RegExp(
163167
`${sepRe}node_modules${sepRe}vue-template-es2015-compiler`
164168
),
@@ -189,6 +193,9 @@ module.exports = {
189193
'@babel/plugin-proposal-object-rest-spread',
190194
'@babel/plugin-proposal-class-properties',
191195
'@babel/plugin-transform-runtime',
196+
'@babel/plugin-proposal-optional-chaining',
197+
'@babel/plugin-proposal-numeric-separator',
198+
'@babel/plugin-proposal-nullish-coalescing-operator',
192199
],
193200
},
194201
},

packages/app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
"react-color": "^2.17.3",
200200
"react-content-loader": "^4.2.2",
201201
"react-day-picker": "^7.2.4",
202-
"react-devtools-inline": "^4.22.0",
202+
"react-devtools-inline": "^6.0.1",
203203
"react-devtools-inline_legacy": "npm:react-devtools-inline@4.4.0",
204204
"react-dnd": "^9.4.0",
205205
"react-dnd-html5-backend": "^9.4.0",

yarn.lock

+40-9
Original file line numberDiff line numberDiff line change
@@ -20790,22 +20790,28 @@ react-dev-utils@^3.1.2:
2079020790
strip-ansi "3.0.1"
2079120791
text-table "0.2.0"
2079220792

20793-
react-devtools-inline@4.4.0, "react-devtools-inline_legacy@npm:react-devtools-inline@4.4.0":
20794-
name react-devtools-inline_legacy
20793+
react-devtools-inline@4.4.0:
2079520794
version "4.4.0"
2079620795
resolved "https://registry.yarnpkg.com/react-devtools-inline/-/react-devtools-inline-4.4.0.tgz#e032a6eb17a9977b682306f84b46e683adf4bf68"
2079720796
integrity sha512-ES0GolSrKO8wsKbsEkVeiR/ZAaHQTY4zDh1UW8DImVmm8oaGLl3ijJDvSGe+qDRKPZdPRnDtWWnSvvrgxXdThQ==
2079820797
dependencies:
2079920798
es6-symbol "^3"
2080020799

20801-
react-devtools-inline@^4.22.0:
20802-
version "4.22.1"
20803-
resolved "https://registry.yarnpkg.com/react-devtools-inline/-/react-devtools-inline-4.22.1.tgz#339ef44279317de10ebafcf12e3e48b9f0c24481"
20804-
integrity sha512-nYLfc5ZwXZN8ooQ2PNxS2LdLjQeRYYhJoDs6dMVQ8vsNx1m3qjaKBp4baLr4Cv+uv7LWSv2on7Rd2QpkYMLOeQ==
20800+
react-devtools-inline@^6.0.1:
20801+
version "6.0.1"
20802+
resolved "https://registry.yarnpkg.com/react-devtools-inline/-/react-devtools-inline-6.0.1.tgz#057467d4a7ee11796ebfa64b3fc11880ae2844f9"
20803+
integrity sha512-AT79dsZmU8YLSb8Bax52KZHzqKIl7eC6jW0x1gO1KUmtzOvwJM1mBDyCame3N6gLsg2ScuTL7DyOG39qTik94g==
2080520804
dependencies:
2080620805
source-map-js "^0.6.2"
2080720806
sourcemap-codec "^1.4.8"
2080820807

20808+
"react-devtools-inline_legacy@npm:react-devtools-inline@4.4.0":
20809+
version "4.4.0"
20810+
resolved "https://registry.yarnpkg.com/react-devtools-inline/-/react-devtools-inline-4.4.0.tgz#e032a6eb17a9977b682306f84b46e683adf4bf68"
20811+
integrity sha512-ES0GolSrKO8wsKbsEkVeiR/ZAaHQTY4zDh1UW8DImVmm8oaGLl3ijJDvSGe+qDRKPZdPRnDtWWnSvvrgxXdThQ==
20812+
dependencies:
20813+
es6-symbol "^3"
20814+
2080920815
react-dnd-html5-backend@^9.4.0:
2081020816
version "9.4.0"
2081120817
resolved "https://registry.yarnpkg.com/react-dnd-html5-backend/-/react-dnd-html5-backend-9.4.0.tgz#5b1d192f57d103298657cde1fe0eabdbf2726311"
@@ -23425,7 +23431,7 @@ string-similarity@^4.0.4:
2342523431
resolved "https://registry.yarnpkg.com/string-similarity/-/string-similarity-4.0.4.tgz#42d01ab0b34660ea8a018da8f56a3309bb8b2a5b"
2342623432
integrity sha512-/q/8Q4Bl4ZKAPjj8WerIBJWALKkaPRfrvhfF8k/B23i4nzrlRj2/go1m90In7nG/3XDSbOo0+pu6RvCTM9RGMQ==
2342723433

23428-
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
23434+
"string-width-cjs@npm:string-width@^4.2.0":
2342923435
version "4.2.3"
2343023436
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
2343123437
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -23443,6 +23449,15 @@ string-width@^1.0.1, string-width@^1.0.2:
2344323449
is-fullwidth-code-point "^1.0.0"
2344423450
strip-ansi "^3.0.0"
2344523451

23452+
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
23453+
version "4.2.3"
23454+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
23455+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
23456+
dependencies:
23457+
emoji-regex "^8.0.0"
23458+
is-fullwidth-code-point "^3.0.0"
23459+
strip-ansi "^6.0.1"
23460+
2344623461
string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1:
2344723462
version "2.1.1"
2344823463
resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e"
@@ -23546,7 +23561,7 @@ stringify-object@^3.2.2, stringify-object@^3.3.0:
2354623561
is-obj "^1.0.1"
2354723562
is-regexp "^1.0.0"
2354823563

23549-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
23564+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
2355023565
version "6.0.1"
2355123566
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
2355223567
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -23574,6 +23589,13 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0:
2357423589
dependencies:
2357523590
ansi-regex "^4.1.0"
2357623591

23592+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
23593+
version "6.0.1"
23594+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
23595+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
23596+
dependencies:
23597+
ansi-regex "^5.0.1"
23598+
2357723599
strip-ansi@^7.0.1:
2357823600
version "7.1.0"
2357923601
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
@@ -26036,7 +26058,7 @@ worker-loader@2.0.0, worker-loader@^2.0.0:
2603626058
loader-utils "^1.0.0"
2603726059
schema-utils "^0.4.0"
2603826060

26039-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
26061+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
2604026062
version "7.0.0"
2604126063
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
2604226064
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -26071,6 +26093,15 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
2607126093
string-width "^4.1.0"
2607226094
strip-ansi "^6.0.0"
2607326095

26096+
wrap-ansi@^7.0.0:
26097+
version "7.0.0"
26098+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
26099+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
26100+
dependencies:
26101+
ansi-styles "^4.0.0"
26102+
string-width "^4.1.0"
26103+
strip-ansi "^6.0.0"
26104+
2607426105
wrap-ansi@^8.1.0:
2607526106
version "8.1.0"
2607626107
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)