Skip to content

Commit 4d4cbf0

Browse files
committed
Use a simpler string replacement for the overlay
1 parent aa322d0 commit 4d4cbf0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ module.exports = {
3030
// in production mode.
3131
'process.env': { NODE_ENV: '"production"' },
3232
// This prevents our bundled React from accidentally hijacking devtools.
33-
__REACT_DEVTOOLS_GLOBAL_HOOK__:
34-
'__REACT_ERROR_OVERLAY_GLOBAL_HOOK_NOOP__',
33+
__REACT_DEVTOOLS_GLOBAL_HOOK__: '({})',
3534
}),
3635
// This code is embedded as a string, so it would never be optimized
3736
// elsewhere.

0 commit comments

Comments
 (0)