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

Specify that optimization.splitChunks.chunks: "all" only extracts common dependencies when they are big enough #6418

Open
adriancuadrado opened this issue Sep 24, 2022 · 0 comments
Assignees

Comments

@adriancuadrado
Copy link

https://webpack.js.org/guides/code-splitting/#splitchunksplugin

The SplitChunksPlugin allows us to extract common dependencies into an existing entry chunk or an entirely new chunk.
...
With the optimization.splitChunks configuration option in place, we should now see the duplicate dependency removed from our index.bundle.js and another.bundle.js.

The documentation is misleading because it doesn't mention that the common dependencies are extracted to another chunk only if it is big enough.

@snitin315 snitin315 self-assigned this Mar 24, 2024
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

No branches or pull requests

2 participants