From 66b1a6f3bb556d294bab0c3bb4ce5a197b89eef6 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 2 Sep 2017 13:41:40 -0700 Subject: [PATCH] provide empty mock for child_process so importing libraries with it works (#3033) --- packages/react-scripts/config/webpack.config.dev.js | 1 + packages/react-scripts/config/webpack.config.prod.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/react-scripts/config/webpack.config.dev.js b/packages/react-scripts/config/webpack.config.dev.js index 90d6a641322..3ac7395e63a 100644 --- a/packages/react-scripts/config/webpack.config.dev.js +++ b/packages/react-scripts/config/webpack.config.dev.js @@ -280,6 +280,7 @@ module.exports = { fs: 'empty', net: 'empty', tls: 'empty', + child_process: 'empty', }, // Turn off performance hints during development because we don't do any // splitting or minification in interest of speed. These warnings become diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 44964346107..d80351ec63f 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -358,5 +358,6 @@ module.exports = { fs: 'empty', net: 'empty', tls: 'empty', + child_process: 'empty', }, };