Hi, i am testing the new integration with vite, everything works fine, but when i run npm run build vite generates one javascirpt file per component, what i need to change to make vite generate a vendor file and another file for all the other components?
@Damage Inc Not sure why you want to disable code splitting :) If its just because you want to compile all vendor files into one file, you can use manualChunks`: let me know if you want help implementing that instead.
Anyways. I just tested it, and my IDE complains that globEager() is deprecated.
@Sinnbeck is just because i don't want like 10-15 requests to the server (even if they are small files) every time the user changes from one part of the system to another
@Damage Inc Anytime. Remember to mark a best answer to close the thread.
And can I suggest you read this? https://blog.jakoblind.no/how-code-splitting-increases-performance/
Often code splitting is faster, as clients does not need to download the full js file if you make a new release. They only need to download the tiny split out file that contains the changes. :)