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:
parent
1e4ceea5c8
commit
281a9967ea
3 changed files with 64 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue