From bb3171012398e8d8b36a7d6211fd69b800c60e36 Mon Sep 17 00:00:00 2001 From: Jerome Leclanche Date: Mon, 9 Sep 2019 03:48:30 +0200 Subject: [PATCH] Disable babel-loader's cacheCompression (#7633) --- packages/react-scripts/config/webpack.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 12157a390b8..41a9f5e5438 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -429,7 +429,8 @@ module.exports = function(webpackEnv) { // It enables caching results in ./node_modules/.cache/babel-loader/ // directory for faster rebuilds. cacheDirectory: true, - cacheCompression: isEnvProduction, + // See #6846 for context on why cacheCompression is disabled + cacheCompression: false, compact: isEnvProduction, }, }, @@ -450,7 +451,8 @@ module.exports = function(webpackEnv) { ], ], cacheDirectory: true, - cacheCompression: isEnvProduction, + // See #6846 for context on why cacheCompression is disabled + cacheCompression: false, // @remove-on-eject-begin cacheIdentifier: getCacheIdentifier( isEnvProduction