Skip to content

Commit 39f2182

Browse files
committed
Add some comments
1 parent 4e7d6cd commit 39f2182

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: packages/react-error-overlay/webpack.config.iframe.js

+5
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ module.exports = {
2626
},
2727
plugins: [
2828
new webpack.DefinePlugin({
29+
// We set process.env.NODE_ENV to 'production' so that React is build
30+
// in production mode.
2931
'process.env': { NODE_ENV: '"production"' },
32+
// This prevents our bundled React from accidentally hijacking devtools.
3033
__REACT_DEVTOOLS_GLOBAL_HOOK__:
3134
'__REACT_ERROR_OVERLAY_GLOBAL_HOOK_NOOP__',
3235
}),
36+
// This code is embedded as a string, so it would never be optimized
37+
// elsewhere.
3338
new webpack.optimize.UglifyJsPlugin({
3439
compress: {
3540
warnings: false,

0 commit comments

Comments
 (0)