0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/e2e/react-start/css-modules/vite.config.ts

35 lines
1.2 KiB

2026-01-10 04:07:23 +01:00
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>
2026-10-12 16:07:27 -07:00
2026-01-10 04:07:23 +01:00