Skip to content

Feature request: calculate size by closure size #296

@wmertens

Description

@wmertens

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions