Closed marcushellberg closed 2 years ago
The current version of start.vaadin.com shows a similar graph.
This was fixed by taking splitVendorChunkPlugin()
from Vite into use. Without it there is no chunking strategy so everything is put in individual files. splitVendorChunkPlugin
uses the strategy that was in Vite 2.8 and earlier which is to create one chunk consisting of the entry point(s) and their imports.
I did a production build with
mvn package -Pproduction
and it led to the following network graph with this project: hilla-react-crmThe current version of start.vaadin.com shows a similar graph.
I wasn't able to reproduce the issue with a minimal project, but needs to be investigated.