Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix unexpected async chunk #1105

Merged
merged 2 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 4 additions & 1 deletion build/webpack/optimization.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const
CssMinimizerPlugin = require('css-minimizer-webpack-plugin');

const {
isLayerDep,
isExternalDep,

RUNTIME
Expand Down Expand Up @@ -56,7 +57,9 @@ module.exports = function optimization({buildId, plugins}) {
cacheGroups: {
async: {
chunks: 'async',
reuseExistingChunk: true
minChunks: 1,
reuseExistingChunk: true,
test: isLayerDep
},

defaultVendors: {
Expand Down
Loading