Skip to content

Commit d81ce3f

Browse files
jleclancheVasilyShelkov
authored andcommitted
Disable babel-loader's cacheCompression (facebook#7633)
1 parent 8e85ee6 commit d81ce3f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ module.exports = function(webpackEnv) {
404404
// It enables caching results in ./node_modules/.cache/babel-loader/
405405
// directory for faster rebuilds.
406406
cacheDirectory: true,
407-
cacheCompression: isEnvProduction,
407+
// See #6846 for context on why cacheCompression is disabled
408+
cacheCompression: false,
408409
compact: isEnvProduction,
409410
},
410411
},
@@ -425,7 +426,8 @@ module.exports = function(webpackEnv) {
425426
],
426427
],
427428
cacheDirectory: true,
428-
cacheCompression: isEnvProduction,
429+
// See #6846 for context on why cacheCompression is disabled
430+
cacheCompression: false,
429431
// @remove-on-eject-begin
430432
cacheIdentifier: getCacheIdentifier(
431433
isEnvProduction

0 commit comments

Comments
 (0)