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 gaearon committed Sep 2, 2017
1 parent 51d0df4 commit 6644054
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 @@ -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
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 @@ -358,5 +358,6 @@ module.exports = {
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty',
},
};

0 comments on commit 6644054

Please sign in to comment.