Skip to content

Commit

Permalink
Remove "es6-symbol" package from DevTools (#18397)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Mar 26, 2020
1 parent a16b349 commit d92631e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/react-devtools-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"start:standalone": "cross-env NODE_ENV=development webpack --config webpack.standalone.js --watch"
},
"dependencies": {
"es6-symbol": "^3",
"shell-quote": "^1.6.1",
"ws": "^7"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/react-devtools-inline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"prepublish": "yarn run build",
"start": "cross-env NODE_ENV=development webpack --config webpack.config.js --watch"
},
"dependencies": {
"es6-symbol": "^3"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.1.6",
"@babel/plugin-proposal-class-properties": "^7.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function HookView({canEditHooks, hook, id, inspectPath, path}: HookViewProps) {
hook !== null &&
typeof hook === 'object' &&
hook.hasOwnProperty(meta.type)
? hook[meta.type]
? hook[(meta.type: any)]
: typeof value,
},
id: 'SelectedElement',
Expand Down
1 change: 0 additions & 1 deletion packages/react-devtools-shared/src/hydration.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* @flow
*/

import Symbol from 'es6-symbol';
import {
getDataType,
getDisplayNameForReactElement,
Expand Down
1 change: 0 additions & 1 deletion packages/react-devtools-shared/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* @flow
*/

import Symbol from 'es6-symbol';
import LRU from 'lru-cache';
import {
isElement,
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4969,7 +4969,7 @@ es6-set@~0.1.5:
es6-symbol "3.1.1"
event-emitter "~0.3.5"

es6-symbol@3.1.1, es6-symbol@^3, es6-symbol@^3.1.1, es6-symbol@~3.1.1:
es6-symbol@3.1.1, es6-symbol@^3.1.1, es6-symbol@~3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77"
integrity sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=
Expand Down

0 comments on commit d92631e

Please sign in to comment.