ssrServer index.js has 40k lines of code
simpros opened this issue · comments
Hello everybody,
first of all THANK YOU ❤️ for creating this amazing piece of software! Its a pleasure to use it 🚀
I have one question and I am not even sure if it is a good one: My ssrServer/indes.js file has 40k loc. I tried to understand what it does and in my case it seems to only put in the functions of node modules that I use (e.g. rxFire/auth => authState function). But still it is a huge file. Do I have to set something up differently? And could this file size become a problem in the future? Because currently I only have login functionality in my app...
Looking forward for your answers 😃
We use esbuild
to compile the server code appropriately for the Cloud Function environment, in some cases, it can inline a lot of code from external libraries. A suggestion is to change the target Cloud Function Node.js environment to Node.js 18 as esbuild
will need to compile less code.