Request to increase the 5MB restriction for Meta framework apps

Here’s the size of my app zip after packing my meta app.

Now let us look at the contents of the zip.

If have manually zipped the app, config, server and src folder to show the space that they occupy.

Using the meta framework opens up the possibility of using React’s powerful ecosystem and as a result, the app and config sizes are larger than usual at 2.1 and 1.1 MB respectively.

The server files are small enough.

But, the src.zip at 698 KB is the 3rd largest contrubutor to the 5MB.

Request to increase the allowed zip file size to around 10MB so that we can fully make use of the Meta framework’s features.

@Parth_Kanungo @Santhosh @Keerthiga_Ramasamy

@arunrajkumar235 Thanks for sharing this, will look into this and keep you posted on the same.

Thanks

1 Like

Just adding that I’ve not yet written the frontend test cases. To comprehensively cover all the functions, my estimate is that test cases itself would account for another 1-2 MB.

Maybe you could track the size of deployable files separate from src and test files.

I’ve identified the main issue with the bloat. It is because fdk pack is including the source map files while generating the zip. This can be avoided while generating a production build. The source maps are only needed for debugging during fdk run.

This screenshot shows the map for the config.

Here’s the source map file include in the app

My guess is the vite config needs to be configured to exclude the source maps while generating a building using fdk pack.

@Santhosh @Keerthiga_Ramasamy

@arunrajkumar235 we released the FDK 10.1.1 with the above bug fixes, please validate and let us know if the above mentioned issues are fixed

Thanks