Is there a reason why "split-by-experience" uses splitChunks.name as the default? #5820
rikisamurai
started this conversation in
General
Replies: 1 comment 2 replies
-
Sorry for the late reply. Rsbuild uses fixed chunk names like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I recently started a new project based on the React 19 template and noticed that rsbuild sets chunkSplit.strategy to "split-by-experience" by default. This strategy seems to assign a name to each cacheGroup.
However, according to the Webpack v4 to v5 migration guide To v5 from v4 | webpack, it's no longer recommended to use the name option.
From the SplitChunksPlugin documentation SplitChunksPlugin | webpack, I understand that specifying name can cause all modules matching the test condition to be bundled into a single chunk. This might lead to larger bundle sizes and even force some async resources into the initial chunk.
Could I ask the rationale behind using this configuration as the default?
Beta Was this translation helpful? Give feedback.
All reactions