JonnyBurger / npx-visualize-bundle

Analyse your React Native bundle in 1 command
https://npmjs.com/package/visualize-bundle
MIT License
162 stars 8 forks source link

Add option to analyze minified bundle #7

Closed levibuzolic closed 5 years ago

levibuzolic commented 5 years ago

Measuring minified bundle size can be a more realistic way of keeping track of app bundle size and boot performance, especially given minification may be removing dead code paths.

JonnyBurger commented 5 years ago

This is amazing! Thank you. Makes much more sense to have it minified. I thought this was already the case as I thought dev=false would also minify it. Apparently not if you fetch the bundle directly!

I'm actually gonna make this the default, as it reflects the bundle delivered to the user. With --dev it will fetch unminified development bundle, this is analogue to React Native CLI behavior and saves us one flag.