Skip to content

Commit 16d6397

Browse files
anthonyalayothongdong7
authored andcommitted
provide empty mock for child_process so importing libraries with it works (facebook#3033)
1 parent d5153e3 commit 16d6397

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy