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

Assets? #16

Open henrymoulton opened 3 years ago

henrymoulton commented 3 years ago

I'm using CodePush with iOS (which I believe doesn't yet create a Hermes bundle). I'm monitoring our size of CodePush and it consistently is larger than the npx visualize-bundle command by about 1-2 megabytes. I believe this is because CodePush will includes "assets" such as images and fonts, which the visualize-bundle will not include.

image

Have I got this right, and is there a potential enhancement for this library that let's users visualize the "bundle" that includes assets, useful for codepush/expo-updates users.

Would be useful for me, wondering if it would be useful for others.

JonnyBurger commented 3 years ago

Thanks for the report! I acknowledge it's a problem. Since the library is just a pass-through to source map explorer, I don't have an immediate idea how this could be solved on our abstraction level though.