0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

perf(router-utils): compiler source maps carry no sourcesContent

Every output of a file carried the whole file text in its map, and
Rspack/webpack hash a module's map with its code: an edit anywhere in a
file hot-updated every output of it. A `<Hydrate>`-content edit on Rsbuild
re-emitted the unchanged route module and split chunks, whose route HMR
refreshed the route (loaders, server fns): +250 ms per edit on the
react-start medium app vs main. Main's Babel maps had no sourcesContent
either; Vite's dev server fills it in from `sources`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-29 09:20:43 +01:00
commit 281a9967ea
No known key found for this signature in database
3 changed files with 64 additions and 3 deletions