You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support passing RegExp on splitChunks.chunks, splitChunks.{cacheGroup}.chunks and splitChunks.fallbackCacheGroup.chunks
🤖 Generated by Copilot at 03fd7dc
Add support for regular expressions in the chunks option of the SplitChunksPlugin. This lets users filter chunks by patterns instead of exact names in lib/optimize/SplitChunksPlugin.js.
Details
🤖 Generated by Copilot at 03fd7dc
Add support for regular expressions in the chunks option of the SplitChunksPlugin (link)
Modify the normalizeChunksFilter function to check if the chunks option is a regular expression and return a matching function (link)
Update the lib/optimize/SplitChunksPlugin.js file to use the normalizeChunksFilter function (link)
Add tests for the regular expression feature in the test/configCases/split-chunks/chunks-regex folder (link)
The text was updated successfully, but these errors were encountered:
A pull request by @hyf0 was merged and maintainers requested a documentation change.
See pull request: webpack/webpack#17332
Closes #17330
Summary
RegExp
onsplitChunks.chunks
,splitChunks.{cacheGroup}.chunks
andsplitChunks.fallbackCacheGroup.chunks
🤖 Generated by Copilot at 03fd7dc
Add support for regular expressions in the
chunks
option of theSplitChunksPlugin
. This lets users filter chunks by patterns instead of exact names inlib/optimize/SplitChunksPlugin.js
.Details
🤖 Generated by Copilot at 03fd7dc
chunks
option of theSplitChunksPlugin
(link)normalizeChunksFilter
function to check if thechunks
option is a regular expression and return a matching function (link)lib/optimize/SplitChunksPlugin.js
file to use thenormalizeChunksFilter
function (link)test/configCases/split-chunks/chunks-regex
folder (link)The text was updated successfully, but these errors were encountered: