simonihmig / ember-cli-bundle-analyzer

Analyze the size and contents of your Ember app's bundles
MIT License
99 stars 2 forks source link

Compressed file sizes seem to be missing on v1.0 #297

Open lbebber opened 1 year ago

lbebber commented 1 year ago

The compressed file sizes seem to be missing on the new version. Is this intentional? Is this an issue on my side? At any rate, there are no clear instructions for enabling it on the main readme.md file.

simonihmig commented 1 year ago

Right. It is now using https://github.com/danvk/source-map-explorer, and while that has some support for showing gzipped sizes, that is not very good. gzip sizes are not really easy to do, as there is no definite compressed size for a single module, because only the whole bundle gets compressed, and you would need to somehow map that back to individual modules, which there is no "right" way to do. The way source-map-explorer was doing that was confusing me too much to include that.

We should at least document that for sure, and maybe provide an opt-in config?

NullVoxPopuli commented 1 year ago

how do you pass options directly to source-map-explorer?