-
-
Notifications
You must be signed in to change notification settings - Fork 626
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
Feature: Migrate should move CommonsChunkPlugin to SplitChunksPlugin #393
Comments
I can pick this up. ✋ I think apart from changing name, there are some defaults as well that WDYT? @ematipico @montogeek |
Great! That was quick |
No, just changing the name is not enough. It's a complete different section of the configuration https://webpack.js.org/plugins/split-chunks-plugin/#optimization-splitchunks |
@dhruvdutt First change is its name, second step is play a lot with all its options until it fits CCP behaviour, if you discover something new share it on webpack.js.org docs! |
@ematipico this was already merged #399 , we can close |
Are we sure? I am looking better at the PR, the changes were around different plugins. @dhruvdutt was going to do that. |
Closed this by accident, a migration for commonsChunk would need to be added, as it has changed in newer versions of webpack. Nice catch, thanks! |
Do you want to request a feature or report a bug?
Feature.
What is the current behavior?
At the moment migrate does nothing when it encounters
CommonsChunkPlugin
What is the expected behavior?
It should migrate to
SplitChunksPlugin
If this is a feature request, what is motivation or use case for changing the behavior?
CommonsChunkPlugin
is now deprecated inwebpack
v4 and migrate, as its objective, should opt in in favor ofSplitChunksPlugin
The text was updated successfully, but these errors were encountered: