-
-
Notifications
You must be signed in to change notification settings - Fork 504
Closed
Description
Issue description
It would be great to see the treemap grouped not by directory/file but by imported modules. The size of a block would be the sum of all import sizes.
This would mean of course that the entry points will be the top nodes, and the size would be many times more than the total size because shared dependencies would be counted many times. Perhaps the color could be used to indicate the amount of importers of a module.
It would allow determining which modules could be loaded async or should be optimized for size. A single big block with a low-count color would indicate a heavy dependency that could use optimization.
Debug info
How do you use this module? As CLI utility or as plugin?
CLI