Skip to content

Commit d92631e

Browse files
author
Brian Vaughn
authored
Remove "es6-symbol" package from DevTools (facebook#18397)
1 parent a16b349 commit d92631e

File tree

6 files changed

+3
-8
lines changed

6 files changed

+3
-8
lines changed

packages/react-devtools-core/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"start:standalone": "cross-env NODE_ENV=development webpack --config webpack.standalone.js --watch"
2525
},
2626
"dependencies": {
27-
"es6-symbol": "^3",
2827
"shell-quote": "^1.6.1",
2928
"ws": "^7"
3029
},

packages/react-devtools-inline/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"prepublish": "yarn run build",
2121
"start": "cross-env NODE_ENV=development webpack --config webpack.config.js --watch"
2222
},
23-
"dependencies": {
24-
"es6-symbol": "^3"
25-
},
23+
"dependencies": {},
2624
"devDependencies": {
2725
"@babel/core": "^7.1.6",
2826
"@babel/plugin-proposal-class-properties": "^7.1.0",

packages/react-devtools-shared/src/devtools/views/Components/HooksTree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function HookView({canEditHooks, hook, id, inspectPath, path}: HookViewProps) {
124124
hook !== null &&
125125
typeof hook === 'object' &&
126126
hook.hasOwnProperty(meta.type)
127-
? hook[meta.type]
127+
? hook[(meta.type: any)]
128128
: typeof value,
129129
},
130130
id: 'SelectedElement',

packages/react-devtools-shared/src/hydration.js

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* @flow
88
*/
99

10-
import Symbol from 'es6-symbol';
1110
import {
1211
getDataType,
1312
getDisplayNameForReactElement,

packages/react-devtools-shared/src/utils.js

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* @flow
88
*/
99

10-
import Symbol from 'es6-symbol';
1110
import LRU from 'lru-cache';
1211
import {
1312
isElement,

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -4969,7 +4969,7 @@ es6-set@~0.1.5:
49694969
es6-symbol "3.1.1"
49704970
event-emitter "~0.3.5"
49714971

4972-
[email protected], es6-symbol@^3, es6-symbol@^3.1.1, es6-symbol@~3.1.1:
4972+
[email protected], es6-symbol@^3.1.1, es6-symbol@~3.1.1:
49734973
version "3.1.1"
49744974
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77"
49754975
integrity sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=

0 commit comments

Comments
 (0)