mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
* fix(start-plugin-core): pass Start's router options through to the generator and splitter - `router.plugins` reach the route generator (#7768): one shared `startGeneratorConfig` (from #8817) appends them after Start's own generator plugins, on Vite and Rsbuild. - A function-form `routeTreeFileFooter` is called at every print; Vite no longer caches its first result. - Rsbuild's server build keeps `codeSplittingOptions.deleteNodes`. - Vite matches the client route tree by its exact id (#8839), not by an unescaped `new RegExp(path)`. Regression tests build and serve real Start apps with the built `@tanstack/react-start` plugins (`tests/integration/start-app.ts`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(start-plugin-core): link the test apps' packages with junctions on Windows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(start-plugin-core): run the real-build tests in their own test:integration target The cross-platform unit-test job (Linux arm64, Windows) timed out in the Vite dev footer test: the dev server never picked up the new route file. `test:unit` goes back to main's dependencies (`^build`); the real-build tests move to a `test:integration` target that builds this package and `@tanstack/react-start` first. `test:pr`/`test:ci` run it, so it runs in the Linux `Test` job only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(start-plugin-core): wait for the dev server's file watcher before adding a route The generator prints the first route tree in `configResolved`, before Vite creates its watcher, so the first tree says nothing about the watcher being ready. A route file written during the watcher's initial scan is taken as an existing file and never reported (no `add`), which is how the footer test timed out on Linux arm64 and Windows. The test now writes a file the generator ignores until the watcher reports it, then adds the route once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
87 lines
5 KiB
87 lines
5 KiB