Capítulo 35 de 57
Automatic code splitting (autoCodeSplitting: true) transforms route files at dev/build time, rewriting them into lazy-loading wrappers so only the routes initially needed are bundled, with additional chunks loaded on demand as users navigate.
component, the errorComponent, and the notFoundComponent.component and loader should not be exported (re-exported for external use) from the route file, since doing so would force them back into the main application bundle.codeSplitGroupings: a per-route property that lets you customize which properties are grouped into which chunks for that specific route.splitBehavior: a programmatic function for custom, logic-driven control over splitting behavior, taking precedence over the global default but yielding to per-route codeSplitGroupings.defaultBehavior: a global fallback option defining default splitting behavior for all routes that don't specify their own.loader via this feature still introduces an additional network trip to fetch the loader's chunk before data fetching can begin, which can slow initial page loads.codeSplitGroupings > programmatic splitBehavior > global defaultBehavior.component, loader, or other split-eligible route properties for reuse elsewhere in your app, doing so defeats the purpose by pulling them into the main bundle..lazy.tsx alternative and the conceptual split between critical vs. non-critical route configuration that this automatic feature implements under the hood.