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

fix(webpack-model): remove modules size duplication in foam-tree #226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SkReD
Copy link

@SkReD SkReD commented Nov 29, 2023

All modules already presented in root modules field of stats.json. Further more no module.modules field found in webpack documentation

Webpack bundle analyzer handle duplication issue with module.id check for already handled but i think we can safely drop inner modules traversing at all

@SkReD
Copy link
Author

SkReD commented Mar 5, 2024

@smelukov please take a look. Should not take much time

@@ -145,12 +145,6 @@ export default function modulesToFoamTree(

for (const module of modules) {
handleModule(root, module, getModuleSize);

if (module.modules) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will hide all inner modules of concat modules
The better solution is to ignore root concat module size for calculation

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.

None yet

2 participants