-
-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: split chunks that exceed maxSize based on path similarities
- Loading branch information
1 parent
8a4e1e7
commit 61f2f4f
Showing
17 changed files
with
8,847 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/rspack-test-tools/tests/configCases/split-chunks/max-size-split/rspack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** @type {import("@rspack/core").Configuration} */ | ||
module.exports = { | ||
target: 'node', | ||
entry: "./src/index.js", | ||
output: { | ||
filename: '[name].js' | ||
}, | ||
optimization: { | ||
chunkIds: 'named', | ||
moduleIds: 'named', | ||
splitChunks: { | ||
chunks: "all", | ||
cacheGroups: { | ||
fragment: { | ||
minChunks: 1, | ||
maxSize: 200 * 1024, | ||
priority: 10, | ||
} | ||
} | ||
} | ||
} | ||
}; |
Oops, something went wrong.