From dd1598d66d00a9d7e0f00e0b4dfe12ab79ab1b99 Mon Sep 17 00:00:00 2001 From: Sy Tran Dung <13009812+sytranvn@users.noreply.github.com> Date: Thu, 22 Oct 2020 22:26:24 +0700 Subject: [PATCH] Fix error loading source maps for devtools extension (#20079) --- packages/react-devtools-extensions/chrome/manifest.json | 9 +-------- packages/react-devtools-extensions/edge/manifest.json | 9 +-------- packages/react-devtools-extensions/firefox/manifest.json | 9 +-------- packages/react-devtools-extensions/webpack.backend.js | 2 +- packages/react-devtools-extensions/webpack.config.js | 2 +- 5 files changed, 5 insertions(+), 26 deletions(-) diff --git a/packages/react-devtools-extensions/chrome/manifest.json b/packages/react-devtools-extensions/chrome/manifest.json index c1e7cf3c0c120..8924a9d95cb6d 100644 --- a/packages/react-devtools-extensions/chrome/manifest.json +++ b/packages/react-devtools-extensions/chrome/manifest.json @@ -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": { diff --git a/packages/react-devtools-extensions/edge/manifest.json b/packages/react-devtools-extensions/edge/manifest.json index 9c168a430e5bc..bdd387ff7aabb 100644 --- a/packages/react-devtools-extensions/edge/manifest.json +++ b/packages/react-devtools-extensions/edge/manifest.json @@ -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": { diff --git a/packages/react-devtools-extensions/firefox/manifest.json b/packages/react-devtools-extensions/firefox/manifest.json index d8c79b1aa6470..6a46cd88fb84f 100644 --- a/packages/react-devtools-extensions/firefox/manifest.json +++ b/packages/react-devtools-extensions/firefox/manifest.json @@ -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": { diff --git a/packages/react-devtools-extensions/webpack.backend.js b/packages/react-devtools-extensions/webpack.backend.js index c9f1c336b0268..2399c10892e35 100644 --- a/packages/react-devtools-extensions/webpack.backend.js +++ b/packages/react-devtools-extensions/webpack.backend.js @@ -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', }, diff --git a/packages/react-devtools-extensions/webpack.config.js b/packages/react-devtools-extensions/webpack.config.js index 1a406ccdaf907..4d6d00c52ac11 100644 --- a/packages/react-devtools-extensions/webpack.config.js +++ b/packages/react-devtools-extensions/webpack.config.js @@ -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',