Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document webpack change: feat: support passing RegExp to splitChunks.chunks #6882

Closed
webpack-bot opened this issue Jun 7, 2023 · 0 comments · Fixed by #6888
Closed

Document webpack change: feat: support passing RegExp to splitChunks.chunks #6882

webpack-bot opened this issue Jun 7, 2023 · 0 comments · Fixed by #6888

Comments

@webpack-bot
Copy link

A pull request by @hyf0 was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#17332


Closes #17330

Summary

  • 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant