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
6644054f
Commit
6644054f
authored
7 years ago
by
Anthony
Committed by
Dan Abramov
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
provide empty mock for child_process so importing libraries with it works (#3033)
parent
51d0df49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/config/webpack.config.dev.js
+1
-0
packages/react-scripts/config/webpack.config.dev.js
packages/react-scripts/config/webpack.config.prod.js
+1
-0
packages/react-scripts/config/webpack.config.prod.js
with
2 additions
and
0 deletions
+2
-0
packages/react-scripts/config/webpack.config.dev.js
+
1
-
0
View file @
6644054f
...
...
@@ -280,6 +280,7 @@ module.exports = {
fs
:
'
empty
'
,
net
:
'
empty
'
,
tls
:
'
empty
'
,
child_process
:
'
empty
'
,
},
// Turn off performance hints during development because we don't do any
// splitting or minification in interest of speed. These warnings become
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/config/webpack.config.prod.js
+
1
-
0
View file @
6644054f
...
...
@@ -358,5 +358,6 @@ module.exports = {
fs
:
'
empty
'
,
net
:
'
empty
'
,
tls
:
'
empty
'
,
child_process
:
'
empty
'
,
},
};
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