Skip to content

Commit 6d6fc92

Browse files
anthonyalayomorgs32
authored andcommitted
provide empty mock for child_process so importing libraries with it works (facebook#3033)
1 parent 7bdc7fe commit 6d6fc92

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/react-scripts/config/webpack.config.dev.js

+1
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ module.exports = {
345345
fs: 'empty',
346346
net: 'empty',
347347
tls: 'empty',
348+
child_process: 'empty',
348349
},
349350
// Turn off performance hints during development because we don't do any
350351
// splitting or minification in interest of speed. These warnings become

packages/react-scripts/config/webpack.config.prod.js

+1
Original file line numberDiff line numberDiff line change
@@ -454,5 +454,6 @@ module.exports = {
454454
fs: 'empty',
455455
net: 'empty',
456456
tls: 'empty',
457+
child_process: 'empty',
457458
},
458459
};

0 commit comments

Comments
 (0)