@vitejs/plugin-rsc 0.5.32 → 0.5.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/dist/{cjs-Cxg_7upE.js → cjs-AWVWfddx.js} +3 -2
- package/dist/{client-reference-Dy7j0iU8.d.ts → client-reference-DEZtXTv1.d.ts} +1 -1
- package/dist/{index-COzKOTR1.d.ts → index-XXYjyFr6.d.ts} +291 -37
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{picocolors-CKiBgsDn.js → picocolors-D28_L_A0.js} +1 -1
- package/dist/{plugin-DqLpibhH.d.ts → plugin-CKqXjp8D.d.ts} +5 -4
- package/dist/{plugin-C27mwbgw.js → plugin-DarRieDr.js} +9 -17
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugins/cjs.js +1 -1
- package/dist/rsc/server.d.ts +1 -1
- package/dist/rsc/static.d.ts +1 -1
- package/dist/{scope-Do08R7C2.js → scope-Bdx33sQv.js} +10 -5
- package/dist/ssr.d.ts +3 -2
- package/dist/ssr.js +6 -1
- package/dist/transforms/index.d.ts +2 -2
- package/dist/transforms/index.js +484 -187
- package/package.json +16 -15
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/plugin-rsc",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.33",
|
|
4
4
|
"description": "React Server Components (RSC) support for Vite.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -28,6 +28,16 @@
|
|
|
28
28
|
"./transforms": "./dist/transforms/index.js",
|
|
29
29
|
"./*": "./dist/*.js"
|
|
30
30
|
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"test": "vitest",
|
|
33
|
+
"test-e2e": "playwright test --project=chromium",
|
|
34
|
+
"test-e2e-ci": "playwright test",
|
|
35
|
+
"tsc": "tsc -b ./tsconfig.json ./e2e/tsconfig.json ./examples/*/tsconfig.json",
|
|
36
|
+
"tsc-dev": "pnpm tsc --watch --preserveWatchOutput",
|
|
37
|
+
"dev": "tsdown --sourcemap --watch src",
|
|
38
|
+
"build": "tsdown",
|
|
39
|
+
"prepack": "tsdown"
|
|
40
|
+
},
|
|
31
41
|
"dependencies": {
|
|
32
42
|
"@rolldown/pluginutils": "^1.0.1",
|
|
33
43
|
"es-module-lexer": "^2.3.1",
|
|
@@ -44,8 +54,9 @@
|
|
|
44
54
|
"@tsconfig/strictest": "^2.0.8",
|
|
45
55
|
"@types/estree": "^1.0.9",
|
|
46
56
|
"@types/node": "^24.13.3",
|
|
47
|
-
"@types/react": "^19.2.
|
|
48
|
-
"@types/react-dom": "^19.2.
|
|
57
|
+
"@types/react": "^19.2.18",
|
|
58
|
+
"@types/react-dom": "^19.2.4",
|
|
59
|
+
"@vitejs/plugin-react": "workspace:*",
|
|
49
60
|
"@vitejs/test-dep-cjs-and-esm": "./test-dep/cjs-and-esm",
|
|
50
61
|
"@vitejs/test-dep-cjs-falsy-primitive": "./test-dep/cjs-falsy-primitive",
|
|
51
62
|
"picocolors": "^1.1.1",
|
|
@@ -53,8 +64,7 @@
|
|
|
53
64
|
"react-dom": "^19.2.8",
|
|
54
65
|
"react-server-dom-webpack": "^19.2.8",
|
|
55
66
|
"tinyexec": "^1.2.4",
|
|
56
|
-
"tsdown": "^0.22.14"
|
|
57
|
-
"@vitejs/plugin-react": "6.0.4"
|
|
67
|
+
"tsdown": "^0.22.14"
|
|
58
68
|
},
|
|
59
69
|
"peerDependencies": {
|
|
60
70
|
"react": "*",
|
|
@@ -77,14 +87,5 @@
|
|
|
77
87
|
"type": "incompatible",
|
|
78
88
|
"reason": "Uses Vite-specific APIs"
|
|
79
89
|
}
|
|
80
|
-
},
|
|
81
|
-
"scripts": {
|
|
82
|
-
"test": "vitest",
|
|
83
|
-
"test-e2e": "playwright test --project=chromium",
|
|
84
|
-
"test-e2e-ci": "playwright test",
|
|
85
|
-
"tsc": "tsc -b ./tsconfig.json ./e2e/tsconfig.json ./examples/*/tsconfig.json",
|
|
86
|
-
"tsc-dev": "pnpm tsc --watch --preserveWatchOutput",
|
|
87
|
-
"dev": "tsdown --sourcemap --watch src",
|
|
88
|
-
"build": "tsdown"
|
|
89
90
|
}
|
|
90
|
-
}
|
|
91
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ declare global {
|
|
|
3
3
|
readonly viteRsc: {
|
|
4
4
|
loadCss: (importer?: string) => import('react').ReactNode
|
|
5
5
|
loadModule: <T>(environmentName: string, entryName?: string) => Promise<T>
|
|
6
|
+
/** @deprecated Use `getClientEntryUrl` from `@vitejs/plugin-rsc/ssr`. */
|
|
6
7
|
loadBootstrapScriptContent: (entryName: string) => Promise<string>
|
|
7
8
|
/**
|
|
8
9
|
* Import a module from another environment using a module specifier.
|