webpack-contrib / webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
MIT License
12.57k stars 484 forks source link

Support for vite? #629

Closed windmillcode0 closed 5 months ago

windmillcode0 commented 5 months ago

Feature request

any support for vite?

th0r commented 5 months ago

Vite uses webpack?

windmillcode0 commented 5 months ago

however when we run analyze on our angular vite application we get errors TypeError: Cannot read properties of undefined (reading 'filter') Here was the full issue we raised with the angular team https://github.com/angular/angular-cli/issues/27190

evenstensberg commented 5 months ago

Vite runs on Rollup, not webpack

windmillcode0 commented 5 months ago

So I suppose no support? then

alexander-akait commented 5 months ago

@windmillcode0 The original issue https://github.com/angular/angular-cli/issues/27190 is not about vite, it is about stats.json without the assets field, but without this fields we can't undestand generated files

windmillcode0 commented 5 months ago

theres vite-bundle-visualizer but their UI is not sophiscated as your mabye you can take a look

th0r commented 5 months ago

I think it's better to open issue in their repo to improve UI then.

windmillcode0 commented 5 months ago

Very well I was wondering if this tool can do both, and become the go to tool, we might make a PR. You can close if you are not thinking about integrating vite but the major js frameworks are going that direction