Skip to content

Commit 7693702

Browse files
anthonyalayokasperpeulen
authored andcommitted
provide empty mock for child_process so importing libraries with it works (facebook#3033)
1 parent 0b27dc2 commit 7693702

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
@@ -287,6 +287,7 @@ module.exports = {
287287
fs: 'empty',
288288
net: 'empty',
289289
tls: 'empty',
290+
child_process: 'empty',
290291
},
291292
// Turn off performance hints during development because we don't do any
292293
// 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
@@ -365,5 +365,6 @@ module.exports = {
365365
fs: 'empty',
366366
net: 'empty',
367367
tls: 'empty',
368+
child_process: 'empty',
368369
},
369370
};

0 commit comments

Comments
 (0)