Skip to content

Commit 4e5d7fa

Browse files
authored
Fix error loading source maps for devtools extension (#20079)
1 parent 3314115 commit 4e5d7fa

File tree

5 files changed

+5
-26
lines changed

5 files changed

+5
-26
lines changed

packages/react-devtools-extensions/chrome/manifest.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,7 @@
3232
"main.html",
3333
"panel.html",
3434
"build/react_devtools_backend.js",
35-
"build/renderer.js",
36-
"build/background.js.map",
37-
"build/contentScript.js.map",
38-
"build/injectGlobalHook.js.map",
39-
"build/main.js.map",
40-
"build/panel.js.map",
41-
"build/renderer.js.map",
42-
"build/react_devtools_backend.js.map"
35+
"build/renderer.js"
4336
],
4437

4538
"background": {

packages/react-devtools-extensions/edge/manifest.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,7 @@
3232
"main.html",
3333
"panel.html",
3434
"build/react_devtools_backend.js",
35-
"build/renderer.js",
36-
"build/background.js.map",
37-
"build/contentScript.js.map",
38-
"build/injectGlobalHook.js.map",
39-
"build/main.js.map",
40-
"build/panel.js.map",
41-
"build/renderer.js.map",
42-
"build/react_devtools_backend.js.map"
35+
"build/renderer.js"
4336
],
4437

4538
"background": {

packages/react-devtools-extensions/firefox/manifest.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,7 @@
3737
"main.html",
3838
"panel.html",
3939
"build/react_devtools_backend.js",
40-
"build/renderer.js",
41-
"build/background.js.map",
42-
"build/contentScript.js.map",
43-
"build/injectGlobalHook.js.map",
44-
"build/main.js.map",
45-
"build/panel.js.map",
46-
"build/renderer.js.map",
47-
"build/react_devtools_backend.js.map"
40+
"build/renderer.js"
4841
],
4942

5043
"background": {

packages/react-devtools-extensions/webpack.backend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const DEVTOOLS_VERSION = getVersionString();
1818

1919
module.exports = {
2020
mode: __DEV__ ? 'development' : 'production',
21-
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
21+
devtool: __DEV__ ? 'cheap-module-eval-source-map' : false,
2222
entry: {
2323
backend: './src/backend.js',
2424
},

packages/react-devtools-extensions/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const DEVTOOLS_VERSION = getVersionString();
1919

2020
module.exports = {
2121
mode: __DEV__ ? 'development' : 'production',
22-
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
22+
devtool: __DEV__ ? 'cheap-module-eval-source-map' : false,
2323
entry: {
2424
background: './src/background.js',
2525
contentScript: './src/contentScript.js',

0 commit comments

Comments
 (0)