mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-29 08:58:15 +08:00
Use a simpler string replacement for the overlay
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user