Skip to content

Commit be01ad0

Browse files
authored
Normalize babel caching across the board (facebook#5053)
1 parent f694309 commit be01ad0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Diff for: config/webpack.config.dev.js

+4
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ module.exports = {
249249
// It enables caching results in ./node_modules/.cache/babel-loader/
250250
// directory for faster rebuilds.
251251
cacheDirectory: true,
252+
// Don't waste time on Gzipping the cache
253+
cacheCompression: false,
252254
highlightCode: true,
253255
},
254256
},
@@ -276,6 +278,8 @@ module.exports = {
276278
require.resolve('babel-preset-react-app/dependencies'),
277279
],
278280
cacheDirectory: true,
281+
// Don't waste time on Gzipping the cache
282+
cacheCompression: false,
279283
highlightCode: true,
280284
},
281285
},

Diff for: config/webpack.config.prod.js

+5
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ module.exports = {
282282
},
283283
],
284284
],
285+
cacheDirectory: true,
286+
// Save disk space when time isn't as important
287+
cacheCompression: true,
285288
compact: true,
286289
highlightCode: true,
287290
},
@@ -305,6 +308,8 @@ module.exports = {
305308
require.resolve('babel-preset-react-app/dependencies'),
306309
],
307310
cacheDirectory: true,
311+
// Save disk space when time isn't as important
312+
cacheCompression: true,
308313
highlightCode: true,
309314
},
310315
},

0 commit comments

Comments
 (0)