Skip to content
Source
Sign inSign up
TanStack/router

fix(start-plugin-core): preload transitive static imports and fix Rsbuild shared-chunk CSS #8695

MergedLadyBluenotes(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/8695/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 22 changed files with 30 additions and 0 deletions (loading 17).

x
0 of 22 viewed, 22 left
5 additions and 0 deletions.changeset/start-manifest-static-import-closure.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/start-plugin-core': patch
+---
+​
+Walk the static import graph when building route preloads so Rolldown and Rsbuild builds preload every dependency chunk, and derive Rsbuild chunk imports from the module graph so shared chunks no longer attach unrelated route CSS to the SSR response.
14 additions and 0 deletionse2e/react-start/css-modules/src/components/Header.module.cssAdded
View file
@@ -0,0 +1,14 @@
+.header {
+ --repro-shared-header: 1;
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) auto;
+ align-items: center;
+ height: 64px;
+ padding-inline: 16px;
+ background: #e4f2e9;
+}
+​
+.header h1 {
+ margin: 0;
+ font-size: 24px;
+}
11 additions and 0 deletionse2e/react-start/css-modules/src/components/Header.tsxAdded
View file