0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e
Sarah Gerrard 4104b8ef11
fix(start-plugin-core): preload transitive static imports and fix Rsbuild shared-chunk CSS (#8695)
* fix(start-plugin-core): preload transitive static imports and fix Rsbuild shared-chunk CSS

Route preloads read a chunk's `imports` as a complete list, which only
holds when the bundler hoists transitive imports. Walk the static import
graph instead, and derive Rsbuild chunk imports from the module graph
rather than chunk-group siblings so shared chunks stop attaching
unrelated route CSS to the SSR response.

Fixes #8415
Fixes #8511

* refactor(start-plugin-core): share one static import walk for preloads and CSS

The manifest builder walked the static import graph twice, once breadth-first
for preloads and once recursively for stylesheets. A single memoized
depth-first walk now records discovered file names for preloads and chunks in
post-order for stylesheets, which also keeps every chunk in an import cycle
seeing the whole cycle instead of a partially cached result.

The Rsbuild adapter resolved static dependency chunks again for every CSS-only
chunk reached from each importer; the resolution is now memoized per chunk.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* docs(start-plugin-core): drop Rollup from the imports contract comments

Rollup is no longer a supported client bundler, so the `imports` contract is
described in terms of the direct-imports-only lists Rolldown and Rsbuild emit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
History 2026-10-13 01:07:27 +02:00
..
e2e-utils test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
eslint-plugin-start chore: localize package dependencies (#8078) 2026-08-15 13:42:24 +02:00
react-router fix(router-core): restore native scroll restoration on reload (#8519) 2026-09-27 14:31:49 +02:00
react-start fix(start-plugin-core): preload transitive static imports and fix Rsbuild shared-chunk CSS (#8695) 2026-10-13 01:07:27 +02:00
solid-router test: fix Nx sandbox violations in CI tasks (#8400) 2026-09-14 10:54:23 +02:00
solid-start response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
streaming-ssr-fixtures optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
streaming-ssr-specs optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
vue-router test: fix Nx sandbox violations in CI tasks (#8400) 2026-09-14 10:54:23 +02:00
vue-start response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
.gitignore rsbuild plugin (#7228) 2026-04-24 03:26:03 +02:00
AGENTS.md agents (#8258) 2026-09-15 22:36:13 +02:00
scroll-restoration-lifecycle.ts fix(router-core): restore native scroll restoration on reload (#8519) 2026-09-27 14:31:49 +02:00
streaming-ssr-assertions.ts optimize streaming (#8204) 2026-09-16 22:38:25 +02:00