Hey all,
I searched through the docs and discord, and I couldn't find an answer to this..
How can lazy loading of routes be disabled, so that all routes are included in the client-side bundle?
I'm creating a relatively simple App, where each route shares 99% of the same components.
The whole client-side bundle is relatively small, and I've configured rollup to output everything to a single bundle file.
But, I'm guessing because under the hood there's a call to React.lazy, each route generates a stub which just re-exports the component from the main bundle, like this:
import{i as f}from"./entry.client-g2mY7VCm.js";export{f as default};
This leads to a worse user experience due to an unnecessary network fetch.
Is there a supported way to configure routes.ts to use the components directly, rather than using code splitting?
Thanks!