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 thongdong7 committed Sep 24, 2017
1 parent 5278ecd commit 66b1a6f
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 66b1a6f

Please sign in to comment.