danvk / source-map-explorer

Analyze and debug space usage through source maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collapse non-contributing directories

daveisfera opened this issue · comments

Thanks for the work on this awesome tool!

Is your feature request related to a problem? Please describe.
Directories that don't contribute to the size are still shown as a layer in the treemap and this ends up hiding contributing layers when looking at multiple bundles in a single HTML file

Describe the solution you'd like
Directories that aren't contributing are combined or there's an option to enable this behavior

Describe alternatives you've considered
A way to hide/combine these non-contributing layers in the HTML file

Additional context
Screen Shot 2019-10-30 at 12 50 25 AM
I've attached a screenshot that shows the HTML of one of our bundles and you can see that webpack, ., ., src, and apps take up 5 layers in the treemap of the HTML before any meaningful content is reached and when looking at an HTML file that is analyzing multiple bundles, this makes several more meaningful layers end up being hidden and they have to be clicked on to see the useful info.

Thanks!

This is still happening for me (i.e. the entries under webpack are still showing up and not being collapsed)

Looks great! Thanks again