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
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
A bunch of async child chunks in my application require a common dependency (which lives within my repo). The common dependency also has its own 3rd party dependencies (in node_modules). Webpack creates two output chunks which both include the 3rd party dependencies:
childA~childB~childC
vendors~childA~childB~childC
If the current behavior is a bug, please provide the steps to reproduce.
Use default chunk-splitting behavior
Have several async child chunks
Have a large common 1st party (non-node_modules) dependency between those chunks
1st party common dependency has large 3rd party dependencies
What is the expected behavior?
The 3rd party code should only be present in one chunk, not both.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Webpack: v4.0.0-beta.0
Node: 8.x
Thanks for your report. It would be great if you reduce your issue to a small reproducible example. Best put this example into a github repository together with instructions how to get to the problem.
Activity
sokra commentedon Jan 30, 2018
Thanks for your report. It would be great if you reduce your issue to a small reproducible example. Best put this example into a github repository together with instructions how to get to the problem.
fixes #6413
TheLarkInn commentedon Feb 4, 2018
@joshjg can you confirm that #6432 fixes your issue? (If you are willing to pull down PR and test locally).
Just want to confirm and track.
joshjg commentedon Feb 4, 2018
@TheLarkInn @sokra Confirmed the fix, thanks!
TheLarkInn commentedon Feb 5, 2018
Appreciate you taking the time to test this.
fixes #6413
Merge pull request #6432 from webpack/bugfix/split-chunks-duplicate
billyvg commentedon Feb 11, 2018
Is it possible this is also present in 3.x?
sokra commentedon Feb 12, 2018
@billyvg no, splitChunks was added in v4