Skip to content

Commit 030cecf

Browse files
anthonyalayoswengorschewski
authored andcommitted
provide empty mock for child_process so importing libraries with it works (#3033)
1 parent 12cb344 commit 030cecf

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
@@ -271,6 +271,7 @@ module.exports = {
271271
fs: 'empty',
272272
net: 'empty',
273273
tls: 'empty',
274+
child_process: 'empty',
274275
},
275276
// Turn off performance hints during development because we don't do any
276277
// 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
@@ -350,5 +350,6 @@ module.exports = {
350350
fs: 'empty',
351351
net: 'empty',
352352
tls: 'empty',
353+
child_process: 'empty',
353354
},
354355
};

0 commit comments

Comments
 (0)