Skip to content

Commit 66b1a6f

Browse files
anthonyalayothongdong7
authored andcommitted
provide empty mock for child_process so importing libraries with it works (facebook#3033)
1 parent 5278ecd commit 66b1a6f

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
@@ -280,6 +280,7 @@ module.exports = {
280280
fs: 'empty',
281281
net: 'empty',
282282
tls: 'empty',
283+
child_process: 'empty',
283284
},
284285
// Turn off performance hints during development because we don't do any
285286
// 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
@@ -358,5 +358,6 @@ module.exports = {
358358
fs: 'empty',
359359
net: 'empty',
360360
tls: 'empty',
361+
child_process: 'empty',
361362
},
362363
};

0 commit comments

Comments
 (0)