Skip to content

Commit

Permalink
docs: fix invalid cacheGroups example (#9129)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Jan 26, 2025
1 parent 5c79dcf commit 12e6012
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions website/docs/en/guide/optimization/code-splitting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ module.exports = {
optimization: {
splitChunks: {
cacheGroups: {
test: /\/some-lib\//,
name: 'lib',
someLib: {
test: /\/some-lib\//,
name: 'lib',
},
},
},
},
Expand Down
6 changes: 4 additions & 2 deletions website/docs/zh/guide/optimization/code-splitting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ module.exports = {
optimization: {
splitChunks: {
cacheGroups: {
test: /\/some-lib\//,
name: 'lib',
someLib: {
test: /\/some-lib\//,
name: 'lib',
},
},
},
},
Expand Down

0 comments on commit 12e6012

Please sign in to comment.