Skip to content

Commit

Permalink
Merge branch 'master' into update-babel-loader-cache-config
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis authored Oct 3, 2024
2 parents 0eb63cb + 03f316f commit 0a6967f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/cuddly-cooks-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'sku': patch
---

Disable `babel-loader` cache compression

`sku` applications tend to transpile many modules and upload all cache files as a single compressed file. This makes compressing each individual cache file superfluous, so this feature has been disabled.
1 change: 1 addition & 0 deletions packages/sku/config/babel/babelConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ module.exports = ({
...(!isJest
? {
cacheDirectory: true,
cacheCompression: false,
}
: {}),
presets,
Expand Down
1 change: 1 addition & 0 deletions packages/sku/config/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ const makeWebpackConfig = ({
options: {
babelrc: false,
cacheDirectory: true,
cacheCompression: false,
presets: [
[
require.resolve('@babel/preset-env'),
Expand Down
1 change: 1 addition & 0 deletions packages/sku/config/webpack/webpack.config.ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ const makeWebpackConfig = ({
options: {
babelrc: false,
cacheDirectory: true,
cacheCompression: false,
presets: [
[
require.resolve('@babel/preset-env'),
Expand Down

0 comments on commit 0a6967f

Please sign in to comment.