0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e/react-start
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
..
basic response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
basic-auth response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
basic-cloudflare test: fix Nx sandbox violations in CI tasks (#8400) 2026-09-14 10:54:23 +02:00
basic-react-query test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
basic-tsr-config test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
clerk-basic test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
csp test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
css-inline test: fix Nx sandbox violations in CI tasks (#8400) 2026-09-14 10:54:23 +02:00
css-modules fix(start-plugin-core): preload transitive static imports and fix Rsbuild shared-chunk CSS (#8695) 2026-10-13 01:07:27 +02:00
custom-basepath test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
custom-server-rsbuild test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
deferred-hydration test: fix Nx sandbox violations in CI tasks (#8400) 2026-09-14 10:54:23 +02:00
dev-ssr-styles fix(start): preserve dev SSR CSS order (#7830) 2026-10-10 09:18:39 +02:00
early-hints test: fix Nx sandbox violations in CI tasks (#8400) 2026-09-14 10:54:23 +02:00
flamegraph-bench fix(start): preserve dev SSR CSS order (#7830) 2026-10-10 09:18:39 +02:00
hmr fix(start): preserve dev SSR CSS order (#7830) 2026-10-10 09:18:39 +02:00
i18n-paraglide test: fix Nx sandbox violations in CI tasks (#8400) 2026-09-14 10:54:23 +02:00
import-protection response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
import-protection-custom-config test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
issue-8049 test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
query-integration test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
response-reconciliation response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
root-document-hydration test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
rsbuild test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
rsc test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
rsc-deferred-hydration test: fix Nx sandbox violations in CI tasks (#8400) 2026-09-14 10:54:23 +02:00
rsc-query test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
rsc-rsbuild test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
scroll-restoration fix(router-core): restore native scroll restoration on reload (#8519) 2026-09-27 14:31:49 +02:00
selective-ssr test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
serialization-adapters test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
server-functions test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
server-functions-global-middleware response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
server-routes fix(start): parse path params before server route handlers (#8434) 2026-09-25 17:02:09 +02:00
server-routes-global-middleware test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
session-handling response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
spa-mode test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
split-base-and-basepath test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
start-manifest fix(start): preserve dev SSR CSS order (#7830) 2026-10-10 09:18:39 +02:00
static-server-functions fix(start): preserve dev SSR CSS order (#7830) 2026-10-10 09:18:39 +02:00
streaming-ssr optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
transform-asset-urls test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
virtual-routes test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
website test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00