Skip to content

Commit 4d8e1e3

Browse files
authored
docs(configuration): update splitChunks.cacheGroups.{cacheGroup}.name note (#7375)
1 parent 38e186f commit 4d8e1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/plugins/split-chunks-plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Providing a string or a function allows you to use a custom name. Specifying eit
262262

263263
If you choose to specify a function, you may find the `chunk.name` property (where `chunk` is an element of the `chunks` array) particularly useful in choosing a name for your chunk.
264264

265-
If the `splitChunks.name` matches an [entry point](/configuration/entry-context/#entry) name, the entry point will be removed.
265+
If the `splitChunks.name` matches an [entry point](/configuration/entry-context/#entry) name, the entry-point chunk & the cache group will be combined into a single chunk.
266266

267267
T> `splitChunks.cacheGroups.{cacheGroup}.name` can be used to move modules into a chunk that is a parent of the source chunk. For example, use `name: "entry-name"` to move modules into the `entry-name` chunk. You can also use on demand named chunks, but you must be careful that the selected modules are only used under this chunk.
268268

0 commit comments

Comments
 (0)