It is possible to code split the notFoundComponent, pendingComponent and errorComponent when manually code splitting using the .lazy.tsx method. This for example makes sense if a popup with a large bundle footprint that I do not want in my main bundle is displayed by the route component and if the not found or error components should also display a popup.
Automatic code splitting however includes these three component types in the main bundle.
Which project does this relate to?
Router
Describe the bug
It is possible to code split the notFoundComponent, pendingComponent and errorComponent when manually code splitting using the .lazy.tsx method. This for example makes sense if a popup with a large bundle footprint that I do not want in my main bundle is displayed by the route component and if the not found or error components should also display a popup.
Automatic code splitting however includes these three component types in the main bundle.
Your Example Website or App
https://stackblitz.com/edit/github-8suvfc?file=src%2Froutes%2Fabout.tsx
Steps to Reproduce the Bug or Issue
npm run build
to get a baselinenpm run build
againExpected behavior
I'd expect to have the possibility of automatically code splitting the not found, pending, and error components.
Or is this maybe by design and should only be active if explicitly asked for?
Screenshots or Videos
No response
Platform
Additional context
No response