@vitejs/plugin-rsc 0.5.16 → 0.5.18
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/dist/browser.d.ts +2 -2
- package/dist/{cjs-DH9Oa3zy.js → cjs-D2v1gYgq.js} +33 -24
- package/dist/core/browser.d.ts +1 -1
- package/dist/core/browser.js +2 -2
- package/dist/core/plugin.js +1 -1
- package/dist/core/rsc.d.ts +1 -1
- package/dist/core/rsc.js +1 -1
- package/dist/core/ssr.d.ts +1 -1
- package/dist/core/ssr.js +2 -2
- package/dist/{dist-DZUJDIM2.js → dist-yW9-EeG1.js} +1 -1
- package/dist/index-CLmWsR1c.d.ts +584 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/{picocolors-kt7Y18A3.js → picocolors-BRyoHAlU.js} +1 -1
- package/dist/plugin-BGmSmdwL.js +27 -0
- package/dist/{plugin-DBWiu_Dx.js → plugin-Cp12dr0Z.js} +408 -329
- package/dist/{plugin-V6VFxi_0.d.ts → plugin-K7i9F4Fd.d.ts} +6 -12
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.js +4 -4
- package/dist/plugins/cjs.js +1 -1
- package/dist/react/browser.d.ts +2 -2
- package/dist/react/rsc.js +1 -1
- package/dist/{rsc-BCFg12vs.js → rsc-Bhp6O2qz.js} +3 -3
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +2 -2
- package/dist/ssr.d.ts +2 -3
- package/dist/ssr.js +1 -1
- package/dist/transforms/index.d.ts +1 -1
- package/dist/transforms/index.js +1 -1
- package/dist/{transforms-D4jDIHgD.js → transforms-B2EJTNXG.js} +2 -2
- package/dist/utils/encryption-runtime.js +3 -3
- package/dist/utils/rpc.js +1 -1
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js +129 -110
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js +67 -55
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js +127 -108
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.production.js +67 -55
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js +127 -108
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.production.js +67 -55
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.development.js +625 -351
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.production.js +598 -314
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.development.js +628 -352
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.production.js +601 -315
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.development.js +634 -356
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.production.js +607 -319
- package/dist/vendor/react-server-dom/package.json +3 -3
- package/package.json +10 -8
- package/dist/index-DJ0AhQ9B.d.ts +0 -90
- package/dist/plugin-B1AJWrMi.js +0 -24
- /package/dist/{browser-BmyjVnfA.d.ts → browser-s-WcB8A7.d.ts} +0 -0
- /package/dist/{chunk-BFhhoFQb.js → chunk-Dj_d7TT4.js} +0 -0
- /package/dist/{encryption-utils-BPYvebX4.js → encryption-utils-DdqSKS_O.js} +0 -0
- /package/dist/{index-DqoQPvhP.d.ts → index-now_lP2V.d.ts} +0 -0
- /package/dist/{rpc-DbBe389F.js → rpc-EIuXyQpO.js} +0 -0
- /package/dist/{shared-Chot7h9j.js → shared-CGK4coF3.js} +0 -0
- /package/dist/{shared-DEpnONZf.js → shared-rtJPs0Yj.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-server-dom-webpack",
|
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
|
4
|
-
"version": "19.2.
|
|
4
|
+
"version": "19.2.4",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"node": ">=0.10.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"react": "^19.2.
|
|
88
|
-
"react-dom": "^19.2.
|
|
87
|
+
"react": "^19.2.4",
|
|
88
|
+
"react-dom": "^19.2.4",
|
|
89
89
|
"webpack": "^5.59.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/plugin-rsc",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.18",
|
|
4
4
|
"description": "React Server Components (RSC) support for Vite.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -39,31 +39,33 @@
|
|
|
39
39
|
"prepack": "tsdown"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
+
"@rolldown/pluginutils": "1.0.0-rc.2",
|
|
42
43
|
"es-module-lexer": "^2.0.0",
|
|
43
44
|
"estree-walker": "^3.0.3",
|
|
44
45
|
"magic-string": "^0.30.21",
|
|
45
46
|
"periscopic": "^4.0.2",
|
|
46
|
-
"srvx": "^0.10.
|
|
47
|
+
"srvx": "^0.10.1",
|
|
47
48
|
"strip-literal": "^3.1.0",
|
|
48
49
|
"turbo-stream": "^3.1.0",
|
|
49
50
|
"vitefu": "^1.1.1"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@hiogawa/utils": "^1.7.0",
|
|
53
|
-
"@playwright/test": "^1.
|
|
54
|
+
"@playwright/test": "^1.58.1",
|
|
54
55
|
"@tsconfig/strictest": "^2.0.8",
|
|
55
56
|
"@types/estree": "^1.0.8",
|
|
56
57
|
"@types/node": "^24.10.9",
|
|
57
|
-
"@types/react": "^19.2.
|
|
58
|
+
"@types/react": "^19.2.10",
|
|
58
59
|
"@types/react-dom": "^19.2.3",
|
|
59
60
|
"@vitejs/plugin-react": "workspace:*",
|
|
60
61
|
"@vitejs/test-dep-cjs-and-esm": "./test-dep/cjs-and-esm",
|
|
62
|
+
"@vitejs/test-dep-cjs-falsy-primitive": "./test-dep/cjs-falsy-primitive",
|
|
61
63
|
"picocolors": "^1.1.1",
|
|
62
|
-
"react": "^19.2.
|
|
63
|
-
"react-dom": "^19.2.
|
|
64
|
-
"react-server-dom-webpack": "^19.2.
|
|
64
|
+
"react": "^19.2.4",
|
|
65
|
+
"react-dom": "^19.2.4",
|
|
66
|
+
"react-server-dom-webpack": "^19.2.4",
|
|
65
67
|
"tinyexec": "^1.0.2",
|
|
66
|
-
"tsdown": "^0.
|
|
68
|
+
"tsdown": "^0.20.1"
|
|
67
69
|
},
|
|
68
70
|
"peerDependencies": {
|
|
69
71
|
"react": "*",
|
package/dist/index-DJ0AhQ9B.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import MagicString from "magic-string";
|
|
2
|
-
import { Literal, Program } from "estree";
|
|
3
|
-
|
|
4
|
-
//#region src/transforms/hoist.d.ts
|
|
5
|
-
declare function transformHoistInlineDirective(input: string, ast: Program, {
|
|
6
|
-
runtime,
|
|
7
|
-
rejectNonAsyncFunction,
|
|
8
|
-
...options
|
|
9
|
-
}: {
|
|
10
|
-
runtime: (value: string, name: string, meta: {
|
|
11
|
-
directiveMatch: RegExpMatchArray;
|
|
12
|
-
}) => string;
|
|
13
|
-
directive: string | RegExp;
|
|
14
|
-
rejectNonAsyncFunction?: boolean;
|
|
15
|
-
encode?: (value: string) => string;
|
|
16
|
-
decode?: (value: string) => string;
|
|
17
|
-
noExport?: boolean;
|
|
18
|
-
}): {
|
|
19
|
-
output: MagicString;
|
|
20
|
-
names: string[];
|
|
21
|
-
};
|
|
22
|
-
declare function findDirectives(ast: Program, directive: string): Literal[];
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/transforms/wrap-export.d.ts
|
|
25
|
-
type ExportMeta = {
|
|
26
|
-
declName?: string;
|
|
27
|
-
isFunction?: boolean;
|
|
28
|
-
defaultExportIdentifierName?: string;
|
|
29
|
-
};
|
|
30
|
-
type TransformWrapExportFilter = (name: string, meta: ExportMeta) => boolean;
|
|
31
|
-
type TransformWrapExportOptions = {
|
|
32
|
-
runtime: (value: string, name: string, meta: ExportMeta) => string;
|
|
33
|
-
ignoreExportAllDeclaration?: boolean;
|
|
34
|
-
rejectNonAsyncFunction?: boolean;
|
|
35
|
-
filter?: TransformWrapExportFilter;
|
|
36
|
-
};
|
|
37
|
-
declare function transformWrapExport(input: string, ast: Program, options: TransformWrapExportOptions): {
|
|
38
|
-
exportNames: string[];
|
|
39
|
-
output: MagicString;
|
|
40
|
-
};
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/transforms/proxy-export.d.ts
|
|
43
|
-
type TransformProxyExportOptions = {
|
|
44
|
-
/** Required for source map and `keep` options */
|
|
45
|
-
code?: string;
|
|
46
|
-
runtime: (name: string, meta?: {
|
|
47
|
-
value: string;
|
|
48
|
-
}) => string;
|
|
49
|
-
ignoreExportAllDeclaration?: boolean;
|
|
50
|
-
rejectNonAsyncFunction?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* escape hatch for Waku's `allowServer`
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
keep?: boolean;
|
|
56
|
-
};
|
|
57
|
-
declare function transformDirectiveProxyExport(ast: Program, options: {
|
|
58
|
-
directive: string;
|
|
59
|
-
} & TransformProxyExportOptions): {
|
|
60
|
-
exportNames: string[];
|
|
61
|
-
output: MagicString;
|
|
62
|
-
} | undefined;
|
|
63
|
-
declare function transformProxyExport(ast: Program, options: TransformProxyExportOptions): {
|
|
64
|
-
exportNames: string[];
|
|
65
|
-
output: MagicString;
|
|
66
|
-
};
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region src/transforms/utils.d.ts
|
|
69
|
-
declare function hasDirective(body: Program["body"], directive: string): boolean;
|
|
70
|
-
declare function getExportNames(ast: Program, options: {
|
|
71
|
-
ignoreExportAllDeclaration?: boolean;
|
|
72
|
-
}): {
|
|
73
|
-
exportNames: string[];
|
|
74
|
-
};
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/transforms/server-action.d.ts
|
|
77
|
-
declare function transformServerActionServer(input: string, ast: Program, options: {
|
|
78
|
-
runtime: (value: string, name: string) => string;
|
|
79
|
-
rejectNonAsyncFunction?: boolean;
|
|
80
|
-
encode?: (value: string) => string;
|
|
81
|
-
decode?: (value: string) => string;
|
|
82
|
-
}): {
|
|
83
|
-
exportNames: string[];
|
|
84
|
-
output: MagicString;
|
|
85
|
-
} | {
|
|
86
|
-
output: MagicString;
|
|
87
|
-
names: string[];
|
|
88
|
-
};
|
|
89
|
-
//#endregion
|
|
90
|
-
export { transformDirectiveProxyExport as a, TransformWrapExportOptions as c, transformHoistInlineDirective as d, TransformProxyExportOptions as i, transformWrapExport as l, getExportNames as n, transformProxyExport as o, hasDirective as r, TransformWrapExportFilter as s, transformServerActionServer as t, findDirectives as u };
|
package/dist/plugin-B1AJWrMi.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region src/core/plugin.ts
|
|
2
|
-
function vitePluginRscCore() {
|
|
3
|
-
return [{
|
|
4
|
-
name: "rsc:patch-react-server-dom-webpack",
|
|
5
|
-
transform(originalCode, _id, _options) {
|
|
6
|
-
let code = originalCode;
|
|
7
|
-
if (code.includes("__webpack_require__.u")) code = code.replaceAll("__webpack_require__.u", "({}).u");
|
|
8
|
-
if (code.includes("__webpack_require__")) code = code.replaceAll("__webpack_require__", "__vite_rsc_require__");
|
|
9
|
-
if (code !== originalCode) return {
|
|
10
|
-
code,
|
|
11
|
-
map: null
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
}, {
|
|
15
|
-
name: "rsc:workaround-linked-dep",
|
|
16
|
-
apply: () => !import.meta.url.includes("/node_modules/"),
|
|
17
|
-
configEnvironment() {
|
|
18
|
-
return { build: { commonjsOptions: { include: [/\/node_modules\//, /\/vendor\/react-server-dom\//] } } };
|
|
19
|
-
}
|
|
20
|
-
}];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { vitePluginRscCore as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|