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 JohnNilsson committed Sep 9, 2017
1 parent 763c4c2 commit c4651dc
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 @@ -270,6 +270,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 @@ -349,5 +349,6 @@ module.exports = {
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty',
},
};

0 comments on commit c4651dc

Please sign in to comment.