Bundle splitting
Hi! I'm switching from using just
@tanstack/router
to the @tanstack/start
alpha, and I'm noticing a layout shift (elements jumping) on initial render. After investigating, I found that it's due to each CSS file being split into its own output — even for routes that aren't lazy-loaded.
I'm using CSS modules, and I noticed this behavior affects them too.
To address this, I disabled auto code splitting in my Vite config like so:
I expected that this would include the CSS/JS for non-lazy routes in the main bundle (as it did with tanstack router alone), but that doesn't seem to be happening.
For reference, I'm using the following versions:
Any insight on this behavior would be appreciated!0 Replies