mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
* 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
|
|
|---|---|---|
| .. | ||
| basic | ||
| basic-auth | ||
| basic-cloudflare | ||
| basic-react-query | ||
| basic-tsr-config | ||
| clerk-basic | ||
| csp | ||
| css-inline | ||
| css-modules | ||
| custom-basepath | ||
| custom-server-rsbuild | ||
| deferred-hydration | ||
| dev-ssr-styles | ||
| early-hints | ||
| flamegraph-bench | ||
| hmr | ||
| i18n-paraglide | ||
| import-protection | ||
| import-protection-custom-config | ||
| issue-8049 | ||
| query-integration | ||
| response-reconciliation | ||
| root-document-hydration | ||
| rsbuild | ||
| rsc | ||
| rsc-deferred-hydration | ||
| rsc-query | ||
| rsc-rsbuild | ||
| scroll-restoration | ||
| selective-ssr | ||
| serialization-adapters | ||
| server-functions | ||
| server-functions-global-middleware | ||
| server-routes | ||
| server-routes-global-middleware | ||
| session-handling | ||
| spa-mode | ||
| split-base-and-basepath | ||
| start-manifest | ||
| static-server-functions | ||
| streaming-ssr | ||
| transform-asset-urls | ||
| virtual-routes | ||
| website | ||