Skip to content

Commit 775bb5d

Browse files
committed
chore: vite-rsc 0.4.4
1 parent 2d872b6 commit 775bb5d

File tree

6 files changed

+26
-46
lines changed

6 files changed

+26
-46
lines changed

integration/helpers/rsc-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"typecheck": "tsc"
1010
},
1111
"devDependencies": {
12-
"@hiogawa/vite-rsc": "0.4.2",
12+
"@hiogawa/vite-rsc": "0.4.4",
1313
"@types/express": "^5.0.0",
1414
"@types/node": "^22.13.1",
1515
"@types/react": "^19.1.8",

integration/helpers/rsc-vite/src/entry.rsc.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export async function callServer(request: Request) {
3838
}
3939

4040
export default async function handler(request: Request) {
41-
const ssr = await import.meta.viteRsc.loadSsrModule<
41+
const ssr = await import.meta.viteRsc.loadModule<
4242
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
4343
typeof import("./entry.ssr")
44-
>("index");
44+
>("ssr", "index");
4545
return ssr.default(request, callServer);
4646
}

playground/rsc-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"typecheck": "tsc"
1010
},
1111
"devDependencies": {
12-
"@hiogawa/vite-rsc": "0.4.3",
12+
"@hiogawa/vite-rsc": "0.4.4",
1313
"@types/express": "^5.0.0",
1414
"@types/node": "^22.13.1",
1515
"@types/react": "^19.1.8",

playground/rsc-vite/src/entry.rsc.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export async function callServer(request: Request) {
3939
}
4040

4141
export default async function handler(request: Request) {
42-
const ssr = await import.meta.viteRsc.loadSsrModule<
42+
const ssr = await import.meta.viteRsc.loadModule<
4343
typeof import("./entry.ssr")
44-
>("index");
44+
>("ssr", "index");
4545
return ssr.default(request, callServer);
4646
}

playground/rsc-vite/src/routes.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ export const routes = [
44
{
55
id: "root",
66
path: "",
7-
// @ts-expect-error
8-
lazy: () => import("./routes/root/root?vite-rsc-css-export=Layout"),
7+
lazy: () => import("./routes/root/root"),
98
children: [
109
{
1110
id: "home",
1211
index: true,
1312
// @ts-expect-error
14-
lazy: () => import("./routes/home/home?vite-rsc-css-export=default"),
13+
lazy: () => import("./routes/home/home"),
1514
},
1615
{
1716
id: "about",

pnpm-lock.yaml

Lines changed: 18 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)