diff --git a/CHANGELOG.md b/CHANGELOG.md index d9fc451fe5..5ef4932f00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ _Note: Gaps between patch versions are faulty, broken or test releases._ * Fixed the memoization of `getParent`: it was saved in the context of the main component, as a result of which the components in the slots had an incorrect `$parent` `build/snakeskin` * Fixed loss of refs in slots inside async render `core/component/render` +* Fixed unexpected async chunk generation during build ## v4.0.0-beta.51 (2024-01-19) diff --git a/build/webpack/optimization.js b/build/webpack/optimization.js index 544f93661f..d8b928311d 100644 --- a/build/webpack/optimization.js +++ b/build/webpack/optimization.js @@ -17,6 +17,7 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const { + isLayerDep, isExternalDep, RUNTIME @@ -56,7 +57,9 @@ module.exports = function optimization({buildId, plugins}) { cacheGroups: { async: { chunks: 'async', - reuseExistingChunk: true + minChunks: 1, + reuseExistingChunk: true, + test: isLayerDep }, defaultVendors: {