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

Treemap support for the bundle analyzer #2848

Closed
fabiospampinato opened this issue Jan 19, 2023 · 5 comments
Closed

Treemap support for the bundle analyzer #2848

fabiospampinato opened this issue Jan 19, 2023 · 5 comments

Comments

@fabiospampinato
Copy link

I think a treemap is often the most natural way to browse a bundle size analysis, because it makes better use of available screen real-estate, so it'd be really nice to see one implemented for esbuild.

Example treemap from webpack-bundle-analyzer:

Example treemap from rollup-plugin-visualizer:

@fabiospampinato
Copy link
Author

@evanw I might be interested in submitting a PR for this eventually. If I make something with the same styling as the current sunburst and flame charts, same interactions, canvas based, and no dependencies, would you consider including that in esbuild's bundle analyzer?

@evanw
Copy link
Owner

evanw commented Nov 26, 2023

I'm closing this as this has now been implemented: https://esbuild.github.io/analyze/

@evanw evanw closed this as completed Nov 26, 2023
@fabiospampinato
Copy link
Author

I love you!

@sandrooco
Copy link

@evanw Great stuff, thanks! Is there any way to contribute to the analyzer? CMD + F doesn't work because it's a canvas element. I'd like to look into this.

@vmasek
Copy link

vmasek commented Mar 27, 2024

I'd also like to contribute if possible, having a checkbox to filter only initially loaded bundles would be great (now we have to filter the stats.json by script). Additionally regex search for bundle names or even contents would be amazing because (as mentioned above) we cannot search in canvas by browser native prompt.

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

No branches or pull requests

4 participants