Skip to content

Fix for webpack v5: find dynamic chunks in stats.chunks#105

Open
OliverJAsh wants to merge 2 commits into
faceyspacey:masterfrom
OliverJAsh:webpack-v5-chunk-ids-string-named
Open

Fix for webpack v5: find dynamic chunks in stats.chunks#105
OliverJAsh wants to merge 2 commits into
faceyspacey:masterfrom
OliverJAsh:webpack-v5-chunk-ids-string-named

Conversation

@OliverJAsh
Copy link
Copy Markdown

Fixes #104

In webpack v5, assetsByChunkName does not contain dynamic chunks that were generated by splitChunks: webpack/webpack#14433

Therefore we have to find these assets in stats.chunks instead.

@OliverJAsh OliverJAsh force-pushed the webpack-v5-chunk-ids-string-named branch from 4e221af to c54b984 Compare October 8, 2021 17:23
@OliverJAsh OliverJAsh marked this pull request as ready for review October 8, 2021 17:23
@OliverJAsh OliverJAsh closed this Oct 12, 2021
@OliverJAsh OliverJAsh reopened this Oct 14, 2021
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 this pull request may close these issues.

webpack v5: missing dynamic chunks generated by splitChunks when chunk IDs are strings

1 participant