mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix: a build that does not watch fails when its route generation fails
R86: builds are cold runs, so a route file the generator cannot parse fails them, naming the file. The generator session gets `build()` (hands the registry over, then rethrows), used by the hooks of builds that do not watch: Vite's `configResolved` for `vite build` without `--watch`, the Rspack/webpack `beforeRun`, Start's Rsbuild `beforeRun`. Dev servers and watch builds keep reporting the failure (`run()`). Before, the build went on with an empty route registry: the Rspack/webpack hosts compile only the registry's route files, so every route stayed unsplit with only the generator's error said. `code-splitter-unparsed-route.test.ts` asserted that a route file the compiler cannot parse (an SWC-accepted grammar error) builds unsplit with one warning on Rspack; under R86 the build fails naming the file, on Vite, Rspack and webpack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
50806d8563
commit
1c6d373131
6 changed files with 98 additions and 28 deletions
Loading…
Add table
Add a link
Reference in a new issue