evanw / esbuild

An extremely fast bundler for the web
https://esbuild.github.io/
MIT License
37.94k stars 1.13k forks source link

Include/exclude support in the bundle analyzer #2849

Open fabiospampinato opened 1 year ago

fabiospampinato commented 1 year ago

It'd be useful to be able to include and exclude modules in the bundle analyzer.

evanw commented 1 year ago

Sorry I don't know what this means or why this would be useful. Can you say more? Are you asking for the ability to hide certain sections of the graph? Why do you need this? If you are having trouble seeing something that's small, you can already use zooming in to see it.

fabiospampinato commented 1 year ago

Sorry, that wasn't very descriptive 😅

Are you asking for the ability to hide certain sections of the graph?

Yes, basically, and the portions of the graph that get hidden depend on a couple of strings written in "include" and "exclude" fields somewhere, rollup-plugin-visualizer has this feature.

It sounds kind of useless, but it is useful in some scenarios, for example:

I think it would be useful if something like that was implemented. Potentially the input field could just show up on cmd+f and not waste any pixels until needed, in that could be a concern.