You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature?]: Provide a way to disable code splitting #1700
An option in app.config.ts to disable code splitting. Only a single JS file would be emitted in this case instead of splitting on route.
Examples 🌈
No response
Motivation 🔦
I am mangling property names with terser but because every page has its own bundle, the property names are not consistent between chunks causing breakage
thanks for that @huseeiin . I agree there's a scenario where disabling lazy routes can be the same as serving a single-bundle.
But perhaps not necessarily. I see some usage/situations where not lazy-loading routes (or some routes) may not lead to everything in the same bundle.
but, @par5er we're currently revisiting our bundling architecture, so I'll put a hold on this one, I'm hoping in the future our configuration can be extensible enough that, perhaps, what you want can be entirely achieved in user-land.
thanks for that @huseeiin . I agree there's a scenario where disabling lazy routes can be the same as serving a single-bundle. But perhaps not necessarily. I see some usage/situations where not lazy-loading routes (or some routes) may not lead to everything in the same bundle.
but, @par5er we're currently revisiting our bundling architecture, so I'll put a hold on this one, I'm hoping in the future our configuration can be extensible enough that, perhaps, what you want can be entirely achieved in user-land.
ideally you'd choose whether to lazily or eagerly load each route
Activity
huseeiin commentedon Dec 21, 2024
possible duplicate of #1575
atilafassina commentedon Feb 13, 2025
thanks for that @huseeiin . I agree there's a scenario where disabling lazy routes can be the same as serving a single-bundle.
But perhaps not necessarily. I see some usage/situations where not lazy-loading routes (or some routes) may not lead to everything in the same bundle.
but, @par5er we're currently revisiting our bundling architecture, so I'll put a hold on this one, I'm hoping in the future our configuration can be extensible enough that, perhaps, what you want can be entirely achieved in user-land.
huseeiin commentedon Feb 13, 2025
ideally you'd choose whether to lazily or eagerly load each route
<FileRoutes />#1575