-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Descriptive naming convention for chunks #6700
Copy link
Copy link
Closed
Labels
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulImpacts a large percentage of users; if a workaround exists it is partial or overly painfulfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issueshelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fixseverity2: inconvenient
Metadata
Metadata
Assignees
Labels
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulImpacts a large percentage of users; if a workaround exists it is partial or overly painfulfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issueshelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fixseverity2: inconvenient
Bug Report or Feature Request (mark with an
x)Desired functionality.
Currently, when I build out my project with
ng buildorng build --prod, I see something like this:It tells me how large my chunks and bundles are which is helpful. I can then turn this information into a useful visual to get a better understanding of what exactly is in each bundle or chunk using the source-map-explorer or the webpack-bundle-analyzer. However, it's kind of difficult to tell which chunk is coming from which lazy-loaded module.
I think it would be wise to include the name of the module in the file name somehow.
for example: instead of
0.9c59d5dde120b62746c2.chunk.jsit would beAdminModule.0.9c59d5dde120b62746c2.chunk.jsThis feature would be helpful when trying to understand the module architecture of your application.