Skip to content

Commit 4e7d6cd

Browse files
committed
Prevent devtools pollution
1 parent 0e71c08 commit 4e7d6cd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/react-error-overlay/webpack.config.iframe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const path = require('path');
1010
const webpack = require('webpack');
1111

1212
module.exports = {
13-
devtool: 'cheap-module-source-map',
1413
entry: './src/iframeScript.js',
1514
output: {
1615
path: path.join(__dirname, './lib'),
@@ -28,6 +27,8 @@ module.exports = {
2827
plugins: [
2928
new webpack.DefinePlugin({
3029
'process.env': { NODE_ENV: '"production"' },
30+
__REACT_DEVTOOLS_GLOBAL_HOOK__:
31+
'__REACT_ERROR_OVERLAY_GLOBAL_HOOK_NOOP__',
3132
}),
3233
new webpack.optimize.UglifyJsPlugin({
3334
compress: {
@@ -38,7 +39,6 @@ module.exports = {
3839
comments: false,
3940
ascii_only: false,
4041
},
41-
sourceMap: true,
4242
}),
4343
],
4444
};

packages/react-error-overlay/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
const path = require('path');
1010

1111
module.exports = {
12-
devtool: 'cheap-module-source-map',
1312
entry: './src/index.js',
1413
output: {
1514
path: path.join(__dirname, './lib'),

0 commit comments

Comments
 (0)