vaadin / hilla

Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
https://hilla.dev
Apache License 2.0
906 stars 57 forks source link

Production mode build appears to be broken in 1.2 beta2 #528

Closed marcushellberg closed 2 years ago

marcushellberg commented 2 years ago

I did a production build with mvn package -Pproduction and it led to the following network graph with this project: hilla-react-crm

Screen Shot 2022-08-21 at 12 41 34

The 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.

Artur- commented 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.