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 (#3033)
  • Loading branch information
anthonyalayo authored and swengorschewski committed Oct 12, 2017
1 parent 12cb344 commit 030cecf
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 @@ -271,6 +271,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 @@ -350,5 +350,6 @@ module.exports = {
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty',
},
};

0 comments on commit 030cecf

Please sign in to comment.