danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.82k stars 100 forks source link

Collapse non-contributing directories #137

Closed daveisfera closed 4 years ago

daveisfera commented 4 years ago

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.

daveisfera commented 4 years ago

Thanks!

daveisfera commented 4 years ago

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

daveisfera commented 4 years ago

Looks great! Thanks again