Skip to content

Commit 54fd5b3

Browse files
jpribylBrian Vaughn
authored andcommitted
Enable source maps for DevTools production builds (facebook#19773)
Co-authored-by: Brian Vaughn <[email protected]>
1 parent 29daa4b commit 54fd5b3

File tree

10 files changed

+31
-10
lines changed

10 files changed

+31
-10
lines changed

packages/react-devtools-core/webpack.backend.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' : false,
22+
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
2323
entry: {
2424
backend: './src/backend.js',
2525
},

packages/react-devtools-core/webpack.standalone.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' : false,
22+
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
2323
target: 'electron-main',
2424
entry: {
2525
standalone: './src/standalone.js',

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@
3232
"main.html",
3333
"panel.html",
3434
"build/react_devtools_backend.js",
35-
"build/renderer.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"
3643
],
3744

3845
"background": {

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@
3232
"main.html",
3333
"panel.html",
3434
"build/react_devtools_backend.js",
35-
"build/renderer.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"
3643
],
3744

3845
"background": {

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@
3737
"main.html",
3838
"panel.html",
3939
"build/react_devtools_backend.js",
40-
"build/renderer.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"
4148
],
4249

4350
"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' : false,
21+
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
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
@@ -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' : false,
21+
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
2222
entry: {
2323
background: './src/background.js',
2424
contentScript: './src/contentScript.js',

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

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

1818
module.exports = {
1919
mode: __DEV__ ? 'development' : 'production',
20-
devtool: false,
20+
devtool: __DEV__ ? 'eval-cheap-source-map' : 'source-map',
2121
entry: {
2222
backend: './src/backend.js',
2323
frontend: './src/frontend.js',

packages/react-devtools-scheduling-profiler/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const babelOptions = {
4040

4141
const config = {
4242
mode: __DEV__ ? 'development' : 'production',
43-
devtool: __DEV__ ? 'cheap-module-eval-source-map' : false,
43+
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
4444
entry: {
4545
app: './src/index.js',
4646
},

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

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

2626
const config = {
2727
mode: __DEV__ ? 'development' : 'production',
28-
devtool: false,
28+
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
2929
entry: {
3030
app: './src/app/index.js',
3131
devtools: './src/devtools.js',

0 commit comments

Comments
 (0)