Skip to content
Source
Sign inSign up
TanStack/router

fix(start): preserve dev SSR CSS order #7830

Mergedschiller-manuel(GitHub profile, opens in a new tab)merged 12 commits intomain fromrefs/pull/7830/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 73 changed files with 17 additions and 1 deletion (loading 68).

x
0 of 73 viewed, 73 left
7 additions and 0 deletions.changeset/fix-dev-ssr-css-order.mdAdded
View file
@@ -0,0 +1,7 @@
+---
+'@tanstack/start-plugin-core': patch
+---
+​
+Fix dev SSR style collection to preserve CSS order without duplicating imported styles, while retaining styles from code-split routes. Keep layered imports from inline styles out of the global dev stylesheet. In bundled development, collect styles from a complete client bundle and load compiler dependencies through the bundler to avoid restarting client plugins. Preserve client hydration and reload SSR modules on file changes instead of clearing them on every request.
+​
+Support newer Vite bundled dev versions by loading their separate client runtime before hydration and awaiting the client build through the updated environment API.
1 addition and 1 deletione2e/react-start/css-modules/package.jsonModified
View file
@@ -41,7 +41,7 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^6.0.1",
- "nitro": "^3.0.260311-beta",
+ "nitro": "^3.0.260903-beta",
"sass": "^1.97.2",
"srvx": "^0.11.9",
"@typescript/native": "npm:typescript@^7.0.2",
9 additions and 0 deletionse2e/react-start/dev-ssr-styles/src/components/CodeSplitStyledBox.tsxAdded
View file
@@ -0,0 +1,9 @@