Commit 4d4cbf05 authored by Dan Abramov's avatar Dan Abramov
Browse files

Use a simpler string replacement for the overlay

parent aa322d08
Showing with 1 addition and 2 deletions
+1 -2
...@@ -30,8 +30,7 @@ module.exports = { ...@@ -30,8 +30,7 @@ module.exports = {
// in production mode. // in production mode.
'process.env': { NODE_ENV: '"production"' }, 'process.env': { NODE_ENV: '"production"' },
// This prevents our bundled React from accidentally hijacking devtools. // This prevents our bundled React from accidentally hijacking devtools.
__REACT_DEVTOOLS_GLOBAL_HOOK__: __REACT_DEVTOOLS_GLOBAL_HOOK__: '({})',
'__REACT_ERROR_OVERLAY_GLOBAL_HOOK_NOOP__',
}), }),
// This code is embedded as a string, so it would never be optimized // This code is embedded as a string, so it would never be optimized
// elsewhere. // elsewhere.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment