provide empty mock for child_process so importing libraries with it works (#3033)

This commit is contained in:
Anthony
2017-09-02 13:41:40 -07:00
committed by Dan Abramov
parent 51d0df4902
commit 6644054fc3
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -358,5 +358,6 @@ module.exports = {
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty',
},
};