Remove "es6-symbol" package from DevTools (#18397)

This commit is contained in:
Brian Vaughn
2020-03-26 09:31:36 -07:00
committed by GitHub
parent a16b349745
commit d92631eab1
6 changed files with 3 additions and 8 deletions

View File

@@ -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"
},

View File

@@ -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",

View File

@@ -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',

View File

@@ -7,7 +7,6 @@
* @flow
*/
import Symbol from 'es6-symbol';
import {
getDataType,
getDisplayNameForReactElement,

View File

@@ -7,7 +7,6 @@
* @flow
*/
import Symbol from 'es6-symbol';
import LRU from 'lru-cache';
import {
isElement,

View File

@@ -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=