diff --git a/packages/react-error-overlay/webpack.config.iframe.js b/packages/react-error-overlay/webpack.config.iframe.js index 031762e5937e0bb95bcc59c11ad34f63ec9818dd..c80b15afa14392c731e14af22e092569e1c44c48 100644 --- a/packages/react-error-overlay/webpack.config.iframe.js +++ b/packages/react-error-overlay/webpack.config.iframe.js @@ -30,8 +30,7 @@ module.exports = { // in production mode. 'process.env': { NODE_ENV: '"production"' }, // This prevents our bundled React from accidentally hijacking devtools. - __REACT_DEVTOOLS_GLOBAL_HOOK__: - '__REACT_ERROR_OVERLAY_GLOBAL_HOOK_NOOP__', + __REACT_DEVTOOLS_GLOBAL_HOOK__: '({})', }), // This code is embedded as a string, so it would never be optimized // elsewhere.