Skip to content

Commit

Permalink
provide empty mock for child_process so importing libraries with it w…
Browse files Browse the repository at this point in the history
…orks (facebook#3033)
  • Loading branch information
anthonyalayo authored and morgs32 committed Sep 5, 2017
1 parent 7bdc7fe commit 6d6fc92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,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
Expand Down
1 change: 1 addition & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,5 +454,6 @@ module.exports = {
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty',
},
};

0 comments on commit 6d6fc92

Please sign in to comment.