@vitejs/plugin-rsc 0.5.11 → 0.5.12

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.
@@ -26,7 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  value: mod,
27
27
  enumerable: true
28
28
  }) : target, mod));
29
- var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
30
29
 
31
30
  //#endregion
32
- export { __toDynamicImportESM as n, __commonJSMin as t };
31
+ export { __toESM as n, __commonJSMin as t };
@@ -1,5 +1,5 @@
1
- import { t as createDebug } from "./dist-BRSdGcl7.js";
2
- import { n as parseIdQuery } from "./shared-AtH_QTi7.js";
1
+ import { t as createDebug } from "./dist-DZUJDIM2.js";
2
+ import { n as parseIdQuery } from "./shared-Chot7h9j.js";
3
3
  import fs from "node:fs";
4
4
  import path from "node:path";
5
5
  import { fileURLToPath, pathToFileURL } from "node:url";
@@ -1,4 +1,4 @@
1
- import { n as memoize } from "../dist-BRSdGcl7.js";
1
+ import { n as memoize } from "../dist-DZUJDIM2.js";
2
2
  import { a as setInternalRequire, i as removeReferenceCacheTag } from "../shared-DEpnONZf.js";
3
3
 
4
4
  //#region src/core/browser.ts
@@ -1,3 +1,3 @@
1
- import { t as vitePluginRscCore } from "../plugin-D1MQNdps.js";
1
+ import { t as vitePluginRscCore } from "../plugin-B1AJWrMi.js";
2
2
 
3
3
  export { vitePluginRscCore as default };
package/dist/core/rsc.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as setRequireModule, i as loadServerAction, n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "../rsc-BRh4PjTs.js";
1
+ import { a as setRequireModule, i as loadServerAction, n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "../rsc-DRNoX2Q6.js";
2
2
 
3
3
  export { createClientManifest, createServerDecodeClientManifest, createServerManifest, loadServerAction, setRequireModule };
package/dist/core/ssr.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as memoize } from "../dist-BRSdGcl7.js";
1
+ import { n as memoize } from "../dist-DZUJDIM2.js";
2
2
  import { a as setInternalRequire, i as removeReferenceCacheTag } from "../shared-DEpnONZf.js";
3
3
 
4
4
  //#region src/core/ssr.ts
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./transforms-BcLQCXiC.js";
2
- import "./rpc-CRpYrgKq.js";
3
- import { r as vitePluginRsc, t as getPluginApi } from "./plugin-BcfVRLx-.js";
4
- import "./cjs-DHD_0drE.js";
1
+ import "./cjs-DH9Oa3zy.js";
2
+ import { r as vitePluginRsc, t as getPluginApi } from "./plugin-BY6tsuyx.js";
3
+ import "./transforms-D4jDIHgD.js";
4
+ import "./rpc-DbBe389F.js";
5
5
 
6
6
  export { vitePluginRsc as default, getPluginApi };
@@ -1,4 +1,4 @@
1
- import { t as __commonJSMin } from "./chunk-ezxmLbPQ.js";
1
+ import { t as __commonJSMin } from "./chunk-BFhhoFQb.js";
2
2
 
3
3
  //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
4
4
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1,26 +1,26 @@
1
- import { n as __toDynamicImportESM } from "./chunk-ezxmLbPQ.js";
2
- import { t as vitePluginRscCore } from "./plugin-D1MQNdps.js";
3
- import { t as createDebug } from "./dist-BRSdGcl7.js";
4
- import { a as hasDirective, n as transformDirectiveProxyExport, o as transformWrapExport, s as findDirectives, t as transformServerActionServer } from "./transforms-BcLQCXiC.js";
5
- import { o as generateEncryptionKey, s as toBase64 } from "./encryption-utils-6p8t4Xqm.js";
6
- import { n as createRpcServer } from "./rpc-CRpYrgKq.js";
7
- import { t as cjsModuleRunnerPlugin } from "./cjs-DHD_0drE.js";
8
- import { i as toCssVirtual, n as parseIdQuery, r as parseReferenceValidationVirtual, t as parseCssVirtual } from "./shared-AtH_QTi7.js";
1
+ import { n as __toESM } from "./chunk-BFhhoFQb.js";
2
+ import { t as createDebug } from "./dist-DZUJDIM2.js";
3
+ import { t as vitePluginRscCore } from "./plugin-B1AJWrMi.js";
4
+ import { t as cjsModuleRunnerPlugin } from "./cjs-DH9Oa3zy.js";
5
+ import { i as toCssVirtual, n as parseIdQuery, r as parseReferenceValidationVirtual, t as parseCssVirtual } from "./shared-Chot7h9j.js";
6
+ import { a as hasDirective, n as transformDirectiveProxyExport, o as transformWrapExport, s as findDirectives, t as transformServerActionServer } from "./transforms-D4jDIHgD.js";
7
+ import { o as generateEncryptionKey, s as toBase64 } from "./encryption-utils-BPYvebX4.js";
8
+ import { n as createRpcServer } from "./rpc-DbBe389F.js";
9
9
  import { createRequire } from "node:module";
10
10
  import assert from "node:assert";
11
11
  import fs from "node:fs";
12
12
  import path from "node:path";
13
13
  import { fileURLToPath, pathToFileURL } from "node:url";
14
- import { toNodeHandler } from "srvx/node";
15
14
  import * as esModuleLexer from "es-module-lexer";
16
15
  import MagicString from "magic-string";
16
+ import { toNodeHandler } from "srvx/node";
17
+ import { stripLiteral } from "strip-literal";
17
18
  import * as vite from "vite";
18
19
  import { defaultServerConditions, isCSSRequest, isFileLoadingAllowed, normalizePath, parseAstAsync } from "vite";
19
20
  import { crawlFrameworkPkgs } from "vitefu";
20
21
  import { walk } from "estree-walker";
21
22
  import { stripVTControlCharacters } from "node:util";
22
23
  import { createHash } from "node:crypto";
23
- import { stripLiteral } from "strip-literal";
24
24
 
25
25
  //#region src/plugins/vite-utils.ts
26
26
  const VALID_ID_PREFIX = `/@id/`;
@@ -92,6 +92,128 @@ function evalValue(rawValue) {
92
92
  }
93
93
  const directRequestRE = /(\?|&)direct=?(?:&|$)/;
94
94
 
95
+ //#endregion
96
+ //#region src/plugins/find-source-map-url.ts
97
+ function vitePluginFindSourceMapURL() {
98
+ return [{
99
+ name: "rsc:findSourceMapURL",
100
+ apply: "serve",
101
+ configureServer(server) {
102
+ server.middlewares.use(async (req, res, next) => {
103
+ const url = new URL(req.url, `http://localhost`);
104
+ if (url.pathname === "/__vite_rsc_findSourceMapURL") {
105
+ let filename = url.searchParams.get("filename");
106
+ let environmentName = url.searchParams.get("environmentName");
107
+ try {
108
+ const map = await findSourceMapURL(server, filename, environmentName);
109
+ res.setHeader("content-type", "application/json");
110
+ if (!map) res.statusCode = 404;
111
+ res.end(JSON.stringify(map ?? {}));
112
+ } catch (e) {
113
+ next(e);
114
+ }
115
+ return;
116
+ }
117
+ next();
118
+ });
119
+ }
120
+ }];
121
+ }
122
+ async function findSourceMapURL(server, filename, environmentName) {
123
+ if (filename.startsWith("file://")) {
124
+ filename = slash(fileURLToPath(filename));
125
+ if (isFileLoadingAllowed(server.config, filename) && fs.existsSync(filename)) {
126
+ const content = fs.readFileSync(filename, "utf-8");
127
+ return {
128
+ version: 3,
129
+ sources: [filename],
130
+ sourcesContent: [content],
131
+ mappings: "AAAA" + ";AACA".repeat(content.split("\n").length)
132
+ };
133
+ }
134
+ return;
135
+ }
136
+ let mod;
137
+ let map;
138
+ if (environmentName === "Server") {
139
+ mod = server.environments.rsc.moduleGraph.getModuleById(filename);
140
+ map = mod?.transformResult?.map;
141
+ if (map && map.mappings) map = {
142
+ ...map,
143
+ mappings: ";;" + map.mappings
144
+ };
145
+ }
146
+ const base = server.config.base.slice(0, -1);
147
+ if (environmentName === "Client") try {
148
+ const url = new URL(filename).pathname.slice(base.length);
149
+ mod = server.environments.client.moduleGraph.urlToModuleMap.get(url);
150
+ map = mod?.transformResult?.map;
151
+ } catch (e) {}
152
+ if (mod && map) return {
153
+ ...map,
154
+ sources: [base + mod.url]
155
+ };
156
+ }
157
+
158
+ //#endregion
159
+ //#region src/plugins/resolved-id-proxy.ts
160
+ const RESOLVED_ID_PROXY_PREFIX = "virtual:vite-rsc/resolved-id/";
161
+ function toResolvedIdProxy(resolvedId) {
162
+ return RESOLVED_ID_PROXY_PREFIX + encodeURIComponent(resolvedId);
163
+ }
164
+ function withResolvedIdProxy(resolvedId) {
165
+ return resolvedId.startsWith("\0") ? toResolvedIdProxy(resolvedId) : resolvedId;
166
+ }
167
+ function fromResolvedIdProxy(source) {
168
+ if (!source.startsWith(RESOLVED_ID_PROXY_PREFIX)) return;
169
+ const clean = source.split("?")[0];
170
+ return decodeURIComponent(clean.slice(29));
171
+ }
172
+ /**
173
+ * Vite plugin that resolves proxy import specifiers to the original resolved IDs.
174
+ */
175
+ function vitePluginResolvedIdProxy() {
176
+ return {
177
+ name: "rsc:resolved-id-proxy",
178
+ resolveId: { handler(source) {
179
+ const originalId = fromResolvedIdProxy(source);
180
+ if (originalId !== void 0) return originalId;
181
+ } }
182
+ };
183
+ }
184
+
185
+ //#endregion
186
+ //#region src/plugins/scan.ts
187
+ function scanBuildStripPlugin({ manager }) {
188
+ return {
189
+ name: "rsc:scan-strip",
190
+ apply: "build",
191
+ enforce: "post",
192
+ async transform(code, _id, _options) {
193
+ if (!manager.isScanBuild) return;
194
+ return {
195
+ code: await transformScanBuildStrip(code),
196
+ map: { mappings: "" }
197
+ };
198
+ }
199
+ };
200
+ }
201
+ const importGlobRE = /\bimport\.meta\.glob(?:<\w+>)?\s*\(/g;
202
+ async function transformScanBuildStrip(code) {
203
+ const [imports] = esModuleLexer.parse(code);
204
+ let output = imports.map((e) => e.n && `import ${JSON.stringify(e.n)};\n`).filter(Boolean).join("");
205
+ if (importGlobRE.test(code)) {
206
+ walk(await parseAstAsync(code), { enter(node) {
207
+ if (node.type === "CallExpression" && node.callee.type === "MemberExpression" && node.callee.object.type === "MetaProperty" && node.callee.object.meta.type === "Identifier" && node.callee.object.meta.name === "import" && node.callee.object.property.type === "Identifier" && node.callee.object.property.name === "meta" && node.callee.property.type === "Identifier" && node.callee.property.name === "glob") {
208
+ const importMetaGlob = code.slice(node.start, node.end);
209
+ output += `console.log(${importMetaGlob});\n`;
210
+ }
211
+ } });
212
+ output += "";
213
+ }
214
+ return output;
215
+ }
216
+
95
217
  //#endregion
96
218
  //#region src/plugins/utils.ts
97
219
  function sortObject(o) {
@@ -162,38 +284,6 @@ function getFetchHandlerExport(exports) {
162
284
  throw new Error("Invalid server handler entry");
163
285
  }
164
286
 
165
- //#endregion
166
- //#region src/plugins/scan.ts
167
- function scanBuildStripPlugin({ manager }) {
168
- return {
169
- name: "rsc:scan-strip",
170
- apply: "build",
171
- enforce: "post",
172
- async transform(code, _id, _options) {
173
- if (!manager.isScanBuild) return;
174
- return {
175
- code: await transformScanBuildStrip(code),
176
- map: { mappings: "" }
177
- };
178
- }
179
- };
180
- }
181
- const importGlobRE = /\bimport\.meta\.glob(?:<\w+>)?\s*\(/g;
182
- async function transformScanBuildStrip(code) {
183
- const [imports] = esModuleLexer.parse(code);
184
- let output = imports.map((e) => e.n && `import ${JSON.stringify(e.n)};\n`).filter(Boolean).join("");
185
- if (importGlobRE.test(code)) {
186
- walk(await parseAstAsync(code), { enter(node) {
187
- if (node.type === "CallExpression" && node.callee.type === "MemberExpression" && node.callee.object.type === "MetaProperty" && node.callee.object.meta.type === "Identifier" && node.callee.object.meta.name === "import" && node.callee.object.property.type === "Identifier" && node.callee.object.property.name === "meta" && node.callee.property.type === "Identifier" && node.callee.property.name === "glob") {
188
- const importMetaGlob = code.slice(node.start, node.end);
189
- output += `console.log(${importMetaGlob});\n`;
190
- }
191
- } });
192
- output += "";
193
- }
194
- return output;
195
- }
196
-
197
287
  //#endregion
198
288
  //#region src/plugins/validate-import.ts
199
289
  function validateImportPlugin() {
@@ -273,69 +363,6 @@ function validateImportChain(chain, environmentName, root) {
273
363
  throw error;
274
364
  }
275
365
 
276
- //#endregion
277
- //#region src/plugins/find-source-map-url.ts
278
- function vitePluginFindSourceMapURL() {
279
- return [{
280
- name: "rsc:findSourceMapURL",
281
- apply: "serve",
282
- configureServer(server) {
283
- server.middlewares.use(async (req, res, next) => {
284
- const url = new URL(req.url, `http://localhost`);
285
- if (url.pathname === "/__vite_rsc_findSourceMapURL") {
286
- let filename = url.searchParams.get("filename");
287
- let environmentName = url.searchParams.get("environmentName");
288
- try {
289
- const map = await findSourceMapURL(server, filename, environmentName);
290
- res.setHeader("content-type", "application/json");
291
- if (!map) res.statusCode = 404;
292
- res.end(JSON.stringify(map ?? {}));
293
- } catch (e) {
294
- next(e);
295
- }
296
- return;
297
- }
298
- next();
299
- });
300
- }
301
- }];
302
- }
303
- async function findSourceMapURL(server, filename, environmentName) {
304
- if (filename.startsWith("file://")) {
305
- filename = slash(fileURLToPath(filename));
306
- if (isFileLoadingAllowed(server.config, filename) && fs.existsSync(filename)) {
307
- const content = fs.readFileSync(filename, "utf-8");
308
- return {
309
- version: 3,
310
- sources: [filename],
311
- sourcesContent: [content],
312
- mappings: "AAAA" + ";AACA".repeat(content.split("\n").length)
313
- };
314
- }
315
- return;
316
- }
317
- let mod;
318
- let map;
319
- if (environmentName === "Server") {
320
- mod = server.environments.rsc.moduleGraph.getModuleById(filename);
321
- map = mod?.transformResult?.map;
322
- if (map && map.mappings) map = {
323
- ...map,
324
- mappings: ";;" + map.mappings
325
- };
326
- }
327
- const base = server.config.base.slice(0, -1);
328
- if (environmentName === "Client") try {
329
- const url = new URL(filename).pathname.slice(base.length);
330
- mod = server.environments.client.moduleGraph.urlToModuleMap.get(url);
331
- map = mod?.transformResult?.map;
332
- } catch (e) {}
333
- if (mod && map) return {
334
- ...map,
335
- sources: [base + mod.url]
336
- };
337
- }
338
-
339
366
  //#endregion
340
367
  //#region src/plugin.ts
341
368
  const isRolldownVite = "rolldownVersion" in vite;
@@ -417,13 +444,14 @@ function vitePluginRscMinimal(rscPluginOptions = {}, manager = new RscPluginMana
417
444
  }
418
445
  } }
419
446
  },
420
- scanBuildStripPlugin({ manager })
447
+ scanBuildStripPlugin({ manager }),
448
+ vitePluginResolvedIdProxy()
421
449
  ];
422
450
  }
423
451
  function vitePluginRsc(rscPluginOptions = {}) {
424
452
  const manager = new RscPluginManager();
425
453
  const buildApp = async (builder) => {
426
- const colors = await import("./picocolors-BxaHL81J.js").then(__toDynamicImportESM());
454
+ const colors = await import("./picocolors-kt7Y18A3.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
427
455
  const logStep = (msg) => {
428
456
  builder.config.logger.info(colors.blue(msg));
429
457
  };
@@ -1062,7 +1090,7 @@ function vitePluginUseClient(useClientPluginOptions, manager) {
1062
1090
  };
1063
1091
  if (manager.isScanBuild) {
1064
1092
  let code$1 = ``;
1065
- for (const meta of Object.values(manager.clientReferenceMetaMap)) code$1 += `import ${JSON.stringify(meta.importId)};\n`;
1093
+ for (const meta of Object.values(manager.clientReferenceMetaMap)) code$1 += `import ${JSON.stringify(withResolvedIdProxy(meta.importId))};\n`;
1066
1094
  return {
1067
1095
  code: code$1,
1068
1096
  map: null
@@ -1105,7 +1133,7 @@ function vitePluginUseClient(useClientPluginOptions, manager) {
1105
1133
  for (const meta of metas) {
1106
1134
  const exports = meta.renderedExports.map((name$1) => `${name$1}: import_${meta.referenceKey}.${name$1},\n`).sort().join("");
1107
1135
  code += `
1108
- import * as import_${meta.referenceKey} from ${JSON.stringify(meta.importId)};
1136
+ import * as import_${meta.referenceKey} from ${JSON.stringify(withResolvedIdProxy(meta.importId))};
1109
1137
  export const export_${meta.referenceKey} = {${exports}};
1110
1138
  `;
1111
1139
  }
package/dist/plugin.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./transforms-BcLQCXiC.js";
2
- import "./rpc-CRpYrgKq.js";
3
- import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-BcfVRLx-.js";
4
- import "./cjs-DHD_0drE.js";
1
+ import "./cjs-DH9Oa3zy.js";
2
+ import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-BY6tsuyx.js";
3
+ import "./transforms-D4jDIHgD.js";
4
+ import "./rpc-DbBe389F.js";
5
5
 
6
6
  export { vitePluginRsc as default, getPluginApi, transformRscCssExport, vitePluginRscMinimal };
@@ -1,3 +1,3 @@
1
- import { t as cjsModuleRunnerPlugin } from "../cjs-DHD_0drE.js";
1
+ import { t as cjsModuleRunnerPlugin } from "../cjs-DH9Oa3zy.js";
2
2
 
3
3
  export { cjsModuleRunnerPlugin };
package/dist/react/rsc.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as setRequireModule, i as loadServerAction, n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "../rsc-BRh4PjTs.js";
1
+ import { a as setRequireModule, i as loadServerAction, n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "../rsc-DRNoX2Q6.js";
2
2
  import * as ReactClient from "@vitejs/plugin-rsc/vendor/react-server-dom/client.edge";
3
3
  import * as ReactServer from "@vitejs/plugin-rsc/vendor/react-server-dom/server.edge";
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as tinyassert, n as memoize } from "./dist-BRSdGcl7.js";
1
+ import { i as tinyassert, n as memoize } from "./dist-DZUJDIM2.js";
2
2
  import { a as setInternalRequire, i as removeReferenceCacheTag, n as SERVER_REFERENCE_PREFIX, r as createReferenceCacheTag, t as SERVER_DECODE_CLIENT_PREFIX } from "./shared-DEpnONZf.js";
3
3
  import * as ReactServer from "@vitejs/plugin-rsc/vendor/react-server-dom/server.edge";
4
4
 
package/dist/rsc.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as toReferenceValidationVirtual } from "./shared-AtH_QTi7.js";
2
- import { a as setRequireModule, i as loadServerAction, r as createServerManifest, t as createClientManifest } from "./rsc-BRh4PjTs.js";
1
+ import { a as toReferenceValidationVirtual } from "./shared-Chot7h9j.js";
2
+ import { a as setRequireModule, i as loadServerAction, r as createServerManifest, t as createClientManifest } from "./rsc-DRNoX2Q6.js";
3
3
  import { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, registerClientReference, registerServerReference, renderToReadableStream } from "./react/rsc.js";
4
4
  import { decryptActionBoundArgs, encryptActionBoundArgs } from "./utils/encryption-runtime.js";
5
5
  import serverReferences from "virtual:vite-rsc/server-references";
package/dist/ssr.js CHANGED
@@ -1,9 +1,9 @@
1
- import { a as toReferenceValidationVirtual, i as toCssVirtual } from "./shared-AtH_QTi7.js";
1
+ import { a as toReferenceValidationVirtual, i as toCssVirtual } from "./shared-Chot7h9j.js";
2
2
  import { createServerConsumerManifest, setRequireModule } from "./core/ssr.js";
3
3
  import { callServer, createFromReadableStream, createServerReference, findSourceMapURL } from "./react/ssr.js";
4
4
  import * as clientReferences from "virtual:vite-rsc/client-references";
5
- import assetsManifest from "virtual:vite-rsc/assets-manifest";
6
5
  import * as ReactDOM from "react-dom";
6
+ import assetsManifest from "virtual:vite-rsc/assets-manifest";
7
7
 
8
8
  //#region src/ssr.tsx
9
9
  initialize();
@@ -1,3 +1,3 @@
1
- import { a as hasDirective, c as transformHoistInlineDirective, i as getExportNames, n as transformDirectiveProxyExport, o as transformWrapExport, r as transformProxyExport, s as findDirectives, t as transformServerActionServer } from "../transforms-BcLQCXiC.js";
1
+ import { a as hasDirective, c as transformHoistInlineDirective, i as getExportNames, n as transformDirectiveProxyExport, o as transformWrapExport, r as transformProxyExport, s as findDirectives, t as transformServerActionServer } from "../transforms-D4jDIHgD.js";
2
2
 
3
3
  export { findDirectives, getExportNames, hasDirective, transformDirectiveProxyExport, transformHoistInlineDirective, transformProxyExport, transformServerActionServer, transformWrapExport };
@@ -1,4 +1,4 @@
1
- import { i as tinyassert } from "./dist-BRSdGcl7.js";
1
+ import { i as tinyassert } from "./dist-DZUJDIM2.js";
2
2
  import MagicString from "magic-string";
3
3
  import { walk } from "estree-walker";
4
4
  import { analyze, extract_names } from "periscopic";
@@ -1,6 +1,6 @@
1
- import { r as once } from "../dist-BRSdGcl7.js";
2
- import { a as fromBase64, i as encryptBuffer, n as concatArrayStream, r as decryptBuffer, t as arrayToStream } from "../encryption-utils-6p8t4Xqm.js";
3
- import "../rsc-BRh4PjTs.js";
1
+ import { r as once } from "../dist-DZUJDIM2.js";
2
+ import { a as fromBase64, i as encryptBuffer, n as concatArrayStream, r as decryptBuffer, t as arrayToStream } from "../encryption-utils-BPYvebX4.js";
3
+ import "../rsc-DRNoX2Q6.js";
4
4
  import { createFromReadableStream, renderToReadableStream } from "../react/rsc.js";
5
5
  import encryptionKeySource from "virtual:vite-rsc/encryption-key";
6
6
 
package/dist/utils/rpc.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as createRpcServer, t as createRpcClient } from "../rpc-CRpYrgKq.js";
1
+ import { n as createRpcServer, t as createRpcClient } from "../rpc-DbBe389F.js";
2
2
 
3
3
  export { createRpcClient, createRpcServer };
package/package.json CHANGED
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "name": "@vitejs/plugin-rsc",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "React Server Components (RSC) support for Vite.",
5
5
  "keywords": [
6
- "vite",
7
- "vite-plugin",
8
6
  "react",
9
7
  "react-server-components",
10
- "rsc"
8
+ "rsc",
9
+ "vite",
10
+ "vite-plugin"
11
11
  ],
12
12
  "homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc",
13
+ "license": "MIT",
13
14
  "repository": {
14
15
  "type": "git",
15
16
  "url": "git+https://github.com/vitejs/vite-plugin-react.git",
16
17
  "directory": "packages/plugin-rsc"
17
18
  },
18
- "license": "MIT",
19
+ "files": [
20
+ "dist",
21
+ "types"
22
+ ],
19
23
  "type": "module",
20
24
  "exports": {
21
25
  "./package.json": "./package.json",
@@ -24,10 +28,6 @@
24
28
  "./transforms": "./dist/transforms/index.js",
25
29
  "./*": "./dist/*.js"
26
30
  },
27
- "files": [
28
- "dist",
29
- "types"
30
- ],
31
31
  "scripts": {
32
32
  "test": "vitest",
33
33
  "test-e2e": "playwright test --project=chromium",
@@ -53,8 +53,8 @@
53
53
  "@playwright/test": "^1.57.0",
54
54
  "@tsconfig/strictest": "^2.0.8",
55
55
  "@types/estree": "^1.0.8",
56
- "@types/node": "^24.10.4",
57
- "@types/react": "^19.2.7",
56
+ "@types/node": "^24.10.7",
57
+ "@types/react": "^19.2.8",
58
58
  "@types/react-dom": "^19.2.3",
59
59
  "@vitejs/plugin-react": "workspace:*",
60
60
  "@vitejs/test-dep-cjs-and-esm": "./test-dep/cjs-and-esm",
@@ -63,7 +63,7 @@
63
63
  "react-dom": "^19.2.3",
64
64
  "react-server-dom-webpack": "^19.2.3",
65
65
  "tinyexec": "^1.0.2",
66
- "tsdown": "^0.18.4"
66
+ "tsdown": "^0.19.0"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "react": "*",
File without changes
File without changes
File without changes
File without changes