Skip to content

Commit 63d161d

Browse files
committed
feat: updated vite rsc
1 parent 16f6df8 commit 63d161d

4 files changed

Lines changed: 378 additions & 472 deletions

File tree

contrib/docs/vite.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,29 @@
22

33
interact config is not a props of plugin so that if the config change,
44
we can restart the dev server and each plugin get the new global value
5+
6+
## Update
7+
8+
* Check that the Vite Rsc integration test are green at: https://github.com/vitejs/vite-ecosystem-ci/
9+
* Get the version of https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-rsc/package.json
10+
```json
11+
{
12+
"react": "^19.2.6",
13+
"react-dom": "^19.2.6",
14+
"react-server-dom-webpack": "^19.2.6"
15+
}
16+
```
17+
* Get the version of https://github.com/vitejs/vite-plugin-react/blob/5e6212750105d8e3628f6639bf47ef7bb97c80d6/packages/plugin-react/package.json
18+
```json
19+
{
20+
"@vitejs/plugin-react": "workspace:*"
21+
}
22+
```
23+
* Grab the peer dependencies at https://github.com/vitejs/vite-plugin-react/blob/main/package.json
24+
25+
```json
26+
{
27+
"vite": "*",
28+
"vite-plugin-inspect": "^11.3.3"
29+
}
30+
```

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"@svgr/plugin-svgo": "8.1.0",
5151
"@tailwindcss/typography": "0.5.19",
5252
"@tailwindcss/vite": "4.2.2",
53-
"@vitejs/plugin-react": "5.1.4",
54-
"@vitejs/plugin-rsc": "0.5.21",
53+
"@vitejs/plugin-react": "6.0.2",
54+
"@vitejs/plugin-rsc": "0.5.26",
5555
"bootstrap-icons": "1.13.1",
5656
"class-variance-authority": "0.7.1",
5757
"clsx": "2.1.1",
@@ -62,9 +62,9 @@
6262
"lucide-react": "1.7.0",
6363
"mrmime": "2.0.1",
6464
"picocolors": "*",
65-
"react": "19.2.4",
66-
"react-dom": "19.2.4",
67-
"react-server-dom-webpack": "19.2.4",
65+
"react": "19.2.6",
66+
"react-dom": "19.2.6",
67+
"react-server-dom-webpack": "19.2.6",
6868
"rehype-autolink-headings": "7.1.0",
6969
"rehype-parse": "^9.0.1",
7070
"rehype-react": "8.0.0",
@@ -82,8 +82,9 @@
8282
"tailwind-merge": "3.5.0",
8383
"tailwindcss": "4.2.2",
8484
"ts-node": "10.9.2",
85+
"tsx": "4.21.0",
8586
"tw-animate-css": "1.4.0",
86-
"vite": "7.3.1",
87+
"vite": "8.0.13",
8788
"vite-plugin-inspect": "11.3.3",
8889
"vite-plugin-svgr": "4.5.0",
8990
"vitefu": "1.1.3",
@@ -98,7 +99,6 @@
9899
"@types/node": "25.3.0",
99100
"@types/react": "19.2.14",
100101
"@types/react-dom": "19.2.3",
101-
"tsx": "4.21.0",
102102
"typescript": "5.9.3",
103103
"vitest": "4.1.0"
104104
},
@@ -114,9 +114,9 @@
114114
"resolutions": {
115115
"sharp": "0.34.5",
116116
"@types/react": "19.2.14",
117-
"react": "19.2.4",
118-
"react-dom": "19.2.4",
119-
"react-server-dom-webpack": "19.2.4",
117+
"react": "19.2.6",
118+
"react-dom": "19.2.6",
119+
"react-server-dom-webpack": "19.2.6",
120120
"shadcn/zod": "^3",
121121
"zod": "4.3.6"
122122
}

src/interact/cli/shared/vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ export async function resolveViteConfig(
150150
// host: true, // same as --host, exposes on 0.0.0.0
151151
allowedHosts: [".ngrok-free.app"]
152152
},
153+
// if inspect is enabled
154+
devtools: inspect,
153155
resolve: {
154156
/**
155157
* Order of precedence

0 commit comments

Comments
 (0)