Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
4d4cbf05
Commit
4d4cbf05
authored
7 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Use a simpler string replacement for the overlay
parent
aa322d08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-error-overlay/webpack.config.iframe.js
+1
-2
packages/react-error-overlay/webpack.config.iframe.js
with
1 addition
and
2 deletions
+1
-2
packages/react-error-overlay/webpack.config.iframe.js
+
1
-
2
View file @
4d4cbf05
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment