Skip to content

Commit

Permalink
Fix error loading source maps for devtools extension (#20079)
Browse files Browse the repository at this point in the history
  • Loading branch information
sytranvn committed Oct 22, 2020
1 parent 3314115 commit 4e5d7fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 26 deletions.
9 changes: 1 addition & 8 deletions packages/react-devtools-extensions/chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,7 @@
"main.html",
"panel.html",
"build/react_devtools_backend.js",
"build/renderer.js",
"build/background.js.map",
"build/contentScript.js.map",
"build/injectGlobalHook.js.map",
"build/main.js.map",
"build/panel.js.map",
"build/renderer.js.map",
"build/react_devtools_backend.js.map"
"build/renderer.js"
],

"background": {
Expand Down
9 changes: 1 addition & 8 deletions packages/react-devtools-extensions/edge/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,7 @@
"main.html",
"panel.html",
"build/react_devtools_backend.js",
"build/renderer.js",
"build/background.js.map",
"build/contentScript.js.map",
"build/injectGlobalHook.js.map",
"build/main.js.map",
"build/panel.js.map",
"build/renderer.js.map",
"build/react_devtools_backend.js.map"
"build/renderer.js"
],

"background": {
Expand Down
9 changes: 1 addition & 8 deletions packages/react-devtools-extensions/firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,7 @@
"main.html",
"panel.html",
"build/react_devtools_backend.js",
"build/renderer.js",
"build/background.js.map",
"build/contentScript.js.map",
"build/injectGlobalHook.js.map",
"build/main.js.map",
"build/panel.js.map",
"build/renderer.js.map",
"build/react_devtools_backend.js.map"
"build/renderer.js"
],

"background": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-devtools-extensions/webpack.backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DEVTOOLS_VERSION = getVersionString();

module.exports = {
mode: __DEV__ ? 'development' : 'production',
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
devtool: __DEV__ ? 'cheap-module-eval-source-map' : false,
entry: {
backend: './src/backend.js',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-devtools-extensions/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const DEVTOOLS_VERSION = getVersionString();

module.exports = {
mode: __DEV__ ? 'development' : 'production',
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
devtool: __DEV__ ? 'cheap-module-eval-source-map' : false,
entry: {
background: './src/background.js',
contentScript: './src/contentScript.js',
Expand Down

0 comments on commit 4e5d7fa

Please sign in to comment.