IjzerenHein / react-native-bundle-visualizer

See what packages are increasing your react-native bundle size 📦
MIT License
1.44k stars 42 forks source link

Feature request: Option to predict Expo binary size #6

Closed MichelDiz closed 4 years ago

MichelDiz commented 6 years ago

I see that the bundle has x KBytes, but would be interesting predict the final result in size. Just for analysis and planning.

IjzerenHein commented 6 years ago

You mean to predict to predict the whole app size, correct?

MichelDiz commented 6 years ago

yeah. Collect assets, code, and merge sizes with the size that the RN is by default.

IjzerenHein commented 6 years ago

But by building the APK you already would know the size wouldn't you? And what do you mean by "prediction in size" ?

MichelDiz commented 6 years ago

Yes, that would be the obvious thing to do. However, when we are producing the app let's say using Expo. The Expo does not generate an APK or IOS file. You will need to build to know.

How does this project serve to visualize the bundle, seeing sizes and etc. It would be useful to understand how the final build size would look like.

And if you do not have a MACOS you would already have at hand how would build (in size) this when renting a computer with MacOS remotely.

IjzerenHein commented 6 years ago

Ok, so I guess what you mean is that you want to see the default Expo binary size + the bundle size, is that right?

MichelDiz commented 6 years ago

Yeah

IjzerenHein commented 6 years ago

Hi, as I don't use Expo, I don't have a need for this feature myself. Pull request are very welcome though ❤️

IjzerenHein commented 4 years ago

A new option --expo managed|bare has been added to bundle using the Expo settings and handle .expo files appropriately. https://github.com/IjzerenHein/react-native-bundle-visualizer/releases/tag/v2.2.1

IjzerenHein commented 4 years ago

Closing this issue as predicting the binary size is out of scope for this package.