@vitejs/plugin-rsc 0.4.18 → 0.4.20
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-QWbIPyhO.js → browser-BhJd-Orx.js} +1 -1
- package/dist/{browser-C1Q4O7AS.js → browser-QU10IP0-.js} +3 -2
- package/dist/browser.js +3 -3
- package/dist/core/browser.js +2 -2
- package/dist/core/rsc.js +2 -2
- package/dist/core/ssr.js +2 -2
- package/dist/{dist-DEF94lDJ.js → dist-DiJnRA1C.js} +25 -1
- package/dist/{encryption-runtime-D6SQwJ1j.js → encryption-runtime-CJUalqt3.js} +2 -2
- package/dist/extra/browser.js +3 -3
- package/dist/extra/rsc.js +5 -5
- package/dist/extra/ssr.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{plugin-CYYsF3qY.d.ts → plugin-BQszG7oj.d.ts} +1 -0
- package/dist/{plugin-TNrMxDOB.js → plugin-DYOxE_xg.js} +74 -33
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +2 -2
- package/dist/react/browser.js +2 -2
- package/dist/react/rsc.js +3 -3
- package/dist/react/ssr.js +3 -3
- package/dist/{rsc-DKA6wwTB.js → rsc-BfBPoIV8.js} +1 -1
- package/dist/{rsc-DP-89iIT.js → rsc-BwEwbLG4.js} +3 -2
- package/dist/{rsc-DHfL29FT.js → rsc-VjVw_i-M.js} +1 -1
- package/dist/rsc.js +5 -5
- package/dist/{ssr-MYoobcMC.js → ssr--rFiBtws.js} +1 -1
- package/dist/{ssr-BLt64xPK.js → ssr-BEKKb_cw.js} +1 -1
- package/dist/{ssr-ClDiSAPx.js → ssr-BMTRhW5g.js} +3 -2
- package/dist/ssr.js +4 -4
- package/dist/utils/encryption-runtime.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setRequireModule } from "./browser-
|
|
1
|
+
import { setRequireModule } from "./browser-BhJd-Orx.js";
|
|
2
2
|
import * as clientReferences from "virtual:vite-rsc/client-references";
|
|
3
3
|
|
|
4
4
|
//#region src/browser.ts
|
|
@@ -18,4 +18,5 @@ function withTrailingSlash(path) {
|
|
|
18
18
|
return path;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
21
|
+
//#endregion
|
|
22
|
+
export { };
|
package/dist/browser.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./dist-
|
|
1
|
+
import "./dist-DiJnRA1C.js";
|
|
2
2
|
import "./shared-CEyKoKAb.js";
|
|
3
|
-
import { setRequireModule } from "./browser-
|
|
3
|
+
import { setRequireModule } from "./browser-BhJd-Orx.js";
|
|
4
4
|
import { callServer, createFromFetch, createFromReadableStream, createServerReference, createTemporaryReferenceSet, encodeReply, findSourceMapURL, setServerCallback } from "./browser-D8OPzpF5.js";
|
|
5
|
-
import "./browser-
|
|
5
|
+
import "./browser-QU10IP0-.js";
|
|
6
6
|
|
|
7
7
|
export { callServer, createFromFetch, createFromReadableStream, createServerReference, createTemporaryReferenceSet, encodeReply, findSourceMapURL, setRequireModule, setServerCallback };
|
package/dist/core/browser.js
CHANGED
package/dist/core/rsc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../dist-
|
|
1
|
+
import "../dist-DiJnRA1C.js";
|
|
2
2
|
import "../shared-CEyKoKAb.js";
|
|
3
|
-
import { createClientManifest, createServerDecodeClientManifest, createServerManifest, loadServerAction, setRequireModule } from "../rsc-
|
|
3
|
+
import { createClientManifest, createServerDecodeClientManifest, createServerManifest, loadServerAction, setRequireModule } from "../rsc-BfBPoIV8.js";
|
|
4
4
|
|
|
5
5
|
export { createClientManifest, createServerDecodeClientManifest, createServerManifest, loadServerAction, setRequireModule };
|
package/dist/core/ssr.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../dist-
|
|
1
|
+
import "../dist-DiJnRA1C.js";
|
|
2
2
|
import "../shared-CEyKoKAb.js";
|
|
3
|
-
import { createServerConsumerManifest, setRequireModule } from "../ssr
|
|
3
|
+
import { createServerConsumerManifest, setRequireModule } from "../ssr--rFiBtws.js";
|
|
4
4
|
|
|
5
5
|
export { createServerConsumerManifest, setRequireModule };
|
|
@@ -36,6 +36,30 @@ function memoize(f, options) {
|
|
|
36
36
|
return newValue;
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
+
function escapeRegExp(input) {
|
|
40
|
+
return input.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
41
|
+
}
|
|
42
|
+
function createDebug(namespace) {
|
|
43
|
+
const pattern = createDebugPattern(namespace);
|
|
44
|
+
return (...args) => {
|
|
45
|
+
const flag = globalThis.process?.env?.["DEBUG"] ?? globalThis.__DEBUG;
|
|
46
|
+
if (typeof flag === "string" && pattern.test(flag)) {
|
|
47
|
+
let prefix = `\u22B3 ${namespace}`;
|
|
48
|
+
const stderr = globalThis?.process?.stderr;
|
|
49
|
+
if (stderr) {
|
|
50
|
+
if (stderr?.isTTY) prefix = `\x1B[1m${prefix}\x1B[22m`;
|
|
51
|
+
console.error(prefix, ...args);
|
|
52
|
+
} else console.debug(prefix, ...args);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function createDebugPattern(namespace) {
|
|
57
|
+
const parts = namespace.split(":");
|
|
58
|
+
const alts = [namespace];
|
|
59
|
+
for (let i = 1; i < parts.length; i++) alts.push(parts.slice(0, i).join(":") + ":*");
|
|
60
|
+
const pattern = alts.map((pattern2) => escapeRegExp(pattern2)).join("|");
|
|
61
|
+
return /* @__PURE__ */ new RegExp(`(^|,)(${pattern})($|,)`);
|
|
62
|
+
}
|
|
39
63
|
|
|
40
64
|
//#endregion
|
|
41
|
-
export { memoize, once, tinyassert };
|
|
65
|
+
export { createDebug, memoize, once, tinyassert };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { once } from "./dist-
|
|
1
|
+
import { once } from "./dist-DiJnRA1C.js";
|
|
2
2
|
import { arrayToStream, concatArrayStream, decryptBuffer, encryptBuffer, fromBase64 } from "./encryption-utils-BDwwcMVT.js";
|
|
3
|
-
import { createFromReadableStream, renderToReadableStream } from "./rsc-
|
|
3
|
+
import { createFromReadableStream, renderToReadableStream } from "./rsc-VjVw_i-M.js";
|
|
4
4
|
import encryptionKeySource from "virtual:vite-rsc/encryption-key";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/encryption-runtime.ts
|
package/dist/extra/browser.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../dist-
|
|
1
|
+
import "../dist-DiJnRA1C.js";
|
|
2
2
|
import "../shared-CEyKoKAb.js";
|
|
3
|
-
import "../browser-
|
|
3
|
+
import "../browser-BhJd-Orx.js";
|
|
4
4
|
import { createFromFetch, createFromReadableStream, createTemporaryReferenceSet, encodeReply, setServerCallback } from "../browser-D8OPzpF5.js";
|
|
5
|
-
import "../browser-
|
|
5
|
+
import "../browser-QU10IP0-.js";
|
|
6
6
|
import { rscStream } from "../client-C1J4FCf5.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import ReactDomClient from "react-dom/client";
|
package/dist/extra/rsc.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../dist-
|
|
1
|
+
import "../dist-DiJnRA1C.js";
|
|
2
2
|
import "../shared-CEyKoKAb.js";
|
|
3
3
|
import "../encryption-utils-BDwwcMVT.js";
|
|
4
|
-
import { loadServerAction } from "../rsc-
|
|
5
|
-
import { createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, renderToReadableStream } from "../rsc-
|
|
6
|
-
import "../encryption-runtime-
|
|
7
|
-
import "../rsc-
|
|
4
|
+
import { loadServerAction } from "../rsc-BfBPoIV8.js";
|
|
5
|
+
import { createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, renderToReadableStream } from "../rsc-VjVw_i-M.js";
|
|
6
|
+
import "../encryption-runtime-CJUalqt3.js";
|
|
7
|
+
import "../rsc-BwEwbLG4.js";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/extra/rsc.tsx
|
package/dist/extra/ssr.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../dist-
|
|
1
|
+
import "../dist-DiJnRA1C.js";
|
|
2
2
|
import "../shared-CEyKoKAb.js";
|
|
3
|
-
import "../ssr
|
|
4
|
-
import { createFromReadableStream } from "../ssr-
|
|
5
|
-
import "../ssr-
|
|
3
|
+
import "../ssr--rFiBtws.js";
|
|
4
|
+
import { createFromReadableStream } from "../ssr-BEKKb_cw.js";
|
|
5
|
+
import "../ssr-BMTRhW5g.js";
|
|
6
6
|
import { injectRSCPayload } from "../server-D0-DavPP.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./dist-
|
|
1
|
+
import "./dist-DiJnRA1C.js";
|
|
2
2
|
import "./plugin-CZbI4rhS.js";
|
|
3
|
-
import { transformHoistInlineDirective, vitePluginRsc } from "./plugin-
|
|
3
|
+
import { transformHoistInlineDirective, vitePluginRsc } from "./plugin-DYOxE_xg.js";
|
|
4
4
|
import "./encryption-utils-BDwwcMVT.js";
|
|
5
5
|
import "./rpc-tGuLT8PD.js";
|
|
6
6
|
import "./vite-utils-Vzd7cqfv.js";
|
|
@@ -28,6 +28,7 @@ type RscPluginOptions = {
|
|
|
28
28
|
rscCssTransform?: false | {
|
|
29
29
|
filter?: (id: string) => boolean;
|
|
30
30
|
};
|
|
31
|
+
/** @deprecated use "DEBUG=vite-env:*" to see warnings. */
|
|
31
32
|
ignoredPackageWarnings?: (string | RegExp)[];
|
|
32
33
|
/**
|
|
33
34
|
* This option allows customizing how client build copies assets from server build.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tinyassert } from "./dist-
|
|
1
|
+
import { createDebug, tinyassert } from "./dist-DiJnRA1C.js";
|
|
2
2
|
import { vitePluginRscCore } from "./plugin-CZbI4rhS.js";
|
|
3
3
|
import { generateEncryptionKey, toBase64 } from "./encryption-utils-BDwwcMVT.js";
|
|
4
4
|
import { createRpcServer } from "./rpc-tGuLT8PD.js";
|
|
5
|
-
import { normalizeViteImportAnalysisUrl, prepareError } from "./vite-utils-Vzd7cqfv.js";
|
|
5
|
+
import { cleanUrl, normalizeViteImportAnalysisUrl, prepareError } from "./vite-utils-Vzd7cqfv.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import assert from "node:assert";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
@@ -328,7 +328,8 @@ function parseIdQuery(id) {
|
|
|
328
328
|
function transformCjsToEsm(code, ast) {
|
|
329
329
|
const output = new MagicString(code);
|
|
330
330
|
const analyzed = analyze(ast);
|
|
331
|
-
|
|
331
|
+
const parentNodes = [];
|
|
332
|
+
const hoistedCodes = [];
|
|
332
333
|
let hoistIndex = 0;
|
|
333
334
|
walk(ast, {
|
|
334
335
|
enter(node) {
|
|
@@ -346,7 +347,7 @@ function transformCjsToEsm(code, ast) {
|
|
|
346
347
|
} else {
|
|
347
348
|
const hoisted = `__cjs_to_esm_hoist_${hoistIndex}`;
|
|
348
349
|
const importee = code.slice(node.arguments[0].start, node.arguments[0].end);
|
|
349
|
-
|
|
350
|
+
hoistedCodes.push(`const ${hoisted} = await import(${importee});\n`);
|
|
350
351
|
output.update(node.start, node.end, hoisted);
|
|
351
352
|
hoistIndex++;
|
|
352
353
|
}
|
|
@@ -356,14 +357,16 @@ function transformCjsToEsm(code, ast) {
|
|
|
356
357
|
parentNodes.pop();
|
|
357
358
|
}
|
|
358
359
|
});
|
|
360
|
+
for (const hoisted of hoistedCodes.reverse()) output.prepend(hoisted);
|
|
359
361
|
output.prepend(`const exports = {}; const module = { exports };\n`);
|
|
360
362
|
return { output };
|
|
361
363
|
}
|
|
362
364
|
|
|
363
365
|
//#endregion
|
|
364
366
|
//#region src/plugins/cjs.ts
|
|
367
|
+
const debug = createDebug("vite-rsc:cjs");
|
|
365
368
|
function cjsModuleRunnerPlugin() {
|
|
366
|
-
const warnedPackages = new Set(
|
|
369
|
+
const warnedPackages = /* @__PURE__ */ new Set();
|
|
367
370
|
return [{
|
|
368
371
|
name: "cjs-module-runner-transform",
|
|
369
372
|
apply: "serve",
|
|
@@ -384,13 +387,16 @@ function cjsModuleRunnerPlugin() {
|
|
|
384
387
|
if (hasModuleSyntax) return;
|
|
385
388
|
const packageKey = extractPackageKey(id);
|
|
386
389
|
if (!warnedPackages.has(packageKey)) {
|
|
387
|
-
|
|
390
|
+
debug(`non-optimized CJS dependency in '${this.environment.name}' environment: ${id}`);
|
|
388
391
|
warnedPackages.add(packageKey);
|
|
389
392
|
}
|
|
390
393
|
const ast = await parseAstAsync(code);
|
|
391
394
|
const result = transformCjsToEsm(code, ast);
|
|
392
395
|
const output = result.output;
|
|
393
|
-
output.append(`
|
|
396
|
+
output.append(`
|
|
397
|
+
;__vite_ssr_exportAll__(module.exports);
|
|
398
|
+
export default module.exports;
|
|
399
|
+
`);
|
|
394
400
|
return {
|
|
395
401
|
code: output.toString(),
|
|
396
402
|
map: output.generateMap({ hires: "boundary" })
|
|
@@ -967,6 +973,13 @@ function vitePluginUseClient(useClientPluginOptions) {
|
|
|
967
973
|
const bareImportRE = /^(?![a-zA-Z]:)[\w@](?!.*:\/\/)/;
|
|
968
974
|
const serverEnvironmentName = useClientPluginOptions.environment?.rsc ?? "rsc";
|
|
969
975
|
const browserEnvironmentName = useClientPluginOptions.environment?.browser ?? "client";
|
|
976
|
+
function warnInoncistentClientOptimization(ctx, id) {
|
|
977
|
+
const { depsOptimizer } = server.environments.client;
|
|
978
|
+
if (depsOptimizer) {
|
|
979
|
+
for (const dep of Object.values(depsOptimizer.metadata.optimized)) if (dep.src === id) ctx.warn("client component dependency is inconsistently optimized. It's recommended to add the dependency to 'optimizeDeps.exclude'.");
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
const debug$1 = createDebug("vite-rsc:use-client");
|
|
970
983
|
return [
|
|
971
984
|
{
|
|
972
985
|
name: "rsc:use-client",
|
|
@@ -978,11 +991,11 @@ function vitePluginUseClient(useClientPluginOptions) {
|
|
|
978
991
|
let importId;
|
|
979
992
|
let referenceKey;
|
|
980
993
|
const packageSource = packageSources.get(id);
|
|
981
|
-
if (!packageSource && id.includes("
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
importId = `/@id/__x00__virtual:vite-rsc/client-in-server-package-proxy/${encodeURIComponent(id
|
|
994
|
+
if (!packageSource && this.environment.mode === "dev" && id.includes("/node_modules/")) {
|
|
995
|
+
debug$1(`internal client reference created through a package imported in '${this.environment.name}' environment: ${id}`);
|
|
996
|
+
id = cleanUrl(id);
|
|
997
|
+
warnInoncistentClientOptimization(this, id);
|
|
998
|
+
importId = `/@id/__x00__virtual:vite-rsc/client-in-server-package-proxy/${encodeURIComponent(id)}`;
|
|
986
999
|
referenceKey = importId;
|
|
987
1000
|
} else if (packageSource) if (this.environment.mode === "dev") {
|
|
988
1001
|
importId = `/@id/__x00__virtual:vite-rsc/client-package-proxy/${packageSource}`;
|
|
@@ -1138,6 +1151,7 @@ function vitePluginDefineEncryptionKey(useServerPluginOptions) {
|
|
|
1138
1151
|
function vitePluginUseServer(useServerPluginOptions) {
|
|
1139
1152
|
const serverEnvironmentName = useServerPluginOptions.environment?.rsc ?? "rsc";
|
|
1140
1153
|
const browserEnvironmentName = useServerPluginOptions.environment?.browser ?? "client";
|
|
1154
|
+
const debug$1 = createDebug("vite-rsc:use-server");
|
|
1141
1155
|
return [{
|
|
1142
1156
|
name: "rsc:use-server",
|
|
1143
1157
|
async transform(code, id) {
|
|
@@ -1146,11 +1160,9 @@ function vitePluginUseServer(useServerPluginOptions) {
|
|
|
1146
1160
|
let normalizedId_;
|
|
1147
1161
|
const getNormalizedId = () => {
|
|
1148
1162
|
if (!normalizedId_) {
|
|
1149
|
-
if (id.includes("
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
if (!ignored) this.warn(`[vite-rsc] detected an internal server function created by a package imported on ${this.environment.name} environment`);
|
|
1153
|
-
id = id.split("?v=")[0];
|
|
1163
|
+
if (this.environment.mode === "dev" && id.includes("/node_modules/")) {
|
|
1164
|
+
debug$1(`internal server reference created through a package imported in ${this.environment.name} environment: ${id}`);
|
|
1165
|
+
id = cleanUrl(id);
|
|
1154
1166
|
}
|
|
1155
1167
|
if (config.command === "build") normalizedId_ = hashString(path.relative(config.root, id));
|
|
1156
1168
|
else normalizedId_ = normalizeViteImportAnalysisUrl(server.environments[serverEnvironmentName], id);
|
|
@@ -1549,7 +1561,25 @@ function vitePluginRscCss(rscCssOptions) {
|
|
|
1549
1561
|
}
|
|
1550
1562
|
}
|
|
1551
1563
|
}
|
|
1552
|
-
}
|
|
1564
|
+
},
|
|
1565
|
+
createVirtualPlugin("vite-rsc/remove-duplicate-server-css", async function() {
|
|
1566
|
+
assert.equal(this.environment.mode, "dev");
|
|
1567
|
+
function removeFn() {
|
|
1568
|
+
document.querySelectorAll("link[rel='stylesheet']").forEach((node) => {
|
|
1569
|
+
if (node instanceof HTMLElement && node.dataset.precedence?.startsWith("vite-rsc/")) node.remove();
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
return `\
|
|
1573
|
+
"use client"
|
|
1574
|
+
import React from "react";
|
|
1575
|
+
export default function RemoveDuplicateServerCss() {
|
|
1576
|
+
React.useEffect(() => {
|
|
1577
|
+
(${removeFn.toString()})();
|
|
1578
|
+
}, []);
|
|
1579
|
+
return null;
|
|
1580
|
+
}
|
|
1581
|
+
`;
|
|
1582
|
+
})
|
|
1553
1583
|
];
|
|
1554
1584
|
}
|
|
1555
1585
|
function invalidteModuleById(environment, id) {
|
|
@@ -1568,25 +1598,36 @@ function collectModuleDependents(mods) {
|
|
|
1568
1598
|
return [...visited];
|
|
1569
1599
|
}
|
|
1570
1600
|
function generateResourcesCode(depsCode) {
|
|
1571
|
-
const ResourcesFn = (React, deps) => {
|
|
1601
|
+
const ResourcesFn = (React, deps, RemoveDuplicateServerCss) => {
|
|
1572
1602
|
return function Resources() {
|
|
1573
|
-
return React.createElement(React.Fragment, null, [
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1603
|
+
return React.createElement(React.Fragment, null, [
|
|
1604
|
+
...deps.css.map((href) => React.createElement("link", {
|
|
1605
|
+
key: "css:" + href,
|
|
1606
|
+
rel: "stylesheet",
|
|
1607
|
+
precedence: "vite-rsc/importer-resources",
|
|
1608
|
+
href
|
|
1609
|
+
})),
|
|
1610
|
+
...deps.js.map((href) => React.createElement("script", {
|
|
1611
|
+
key: "js:" + href,
|
|
1612
|
+
type: "module",
|
|
1613
|
+
async: true,
|
|
1614
|
+
src: href
|
|
1615
|
+
})),
|
|
1616
|
+
RemoveDuplicateServerCss && React.createElement(RemoveDuplicateServerCss, { key: "remove-duplicate-css" })
|
|
1617
|
+
]);
|
|
1584
1618
|
};
|
|
1585
1619
|
};
|
|
1586
1620
|
return `
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1621
|
+
import __vite_rsc_react__ from "react";
|
|
1622
|
+
|
|
1623
|
+
${config.command === "serve" ? `import RemoveDuplicateServerCss from "virtual:vite-rsc/remove-duplicate-server-css";` : `const RemoveDuplicateServerCss = undefined;`}
|
|
1624
|
+
|
|
1625
|
+
export const Resources = (${ResourcesFn.toString()})(
|
|
1626
|
+
__vite_rsc_react__,
|
|
1627
|
+
${depsCode},
|
|
1628
|
+
RemoveDuplicateServerCss,
|
|
1629
|
+
);
|
|
1630
|
+
`;
|
|
1590
1631
|
}
|
|
1591
1632
|
async function transformRscCssExport(options) {
|
|
1592
1633
|
if (hasDirective(options.ast.body, "use client")) return;
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AssetDeps, AssetsManifest, ResolvedAssetDeps, ResolvedAssetsManifest, RscPluginOptions, __fix_cloudflare, findSourceMapURL, transformRscCssExport, vitePluginFindSourceMapURL, vitePluginRsc, vitePluginRscCss, vitePluginRscMinimal } from "./plugin-
|
|
1
|
+
import { AssetDeps, AssetsManifest, ResolvedAssetDeps, ResolvedAssetsManifest, RscPluginOptions, __fix_cloudflare, findSourceMapURL, transformRscCssExport, vitePluginFindSourceMapURL, vitePluginRsc, vitePluginRscCss, vitePluginRscMinimal } from "./plugin-BQszG7oj.js";
|
|
2
2
|
export { AssetDeps, AssetsManifest, ResolvedAssetDeps, ResolvedAssetsManifest, RscPluginOptions, __fix_cloudflare, vitePluginRsc as default, findSourceMapURL, transformRscCssExport, vitePluginFindSourceMapURL, vitePluginRscCss, vitePluginRscMinimal };
|
package/dist/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./dist-
|
|
1
|
+
import "./dist-DiJnRA1C.js";
|
|
2
2
|
import "./plugin-CZbI4rhS.js";
|
|
3
|
-
import { __fix_cloudflare, findSourceMapURL, transformRscCssExport, vitePluginFindSourceMapURL, vitePluginRsc, vitePluginRscCss, vitePluginRscMinimal } from "./plugin-
|
|
3
|
+
import { __fix_cloudflare, findSourceMapURL, transformRscCssExport, vitePluginFindSourceMapURL, vitePluginRsc, vitePluginRscCss, vitePluginRscMinimal } from "./plugin-DYOxE_xg.js";
|
|
4
4
|
import "./encryption-utils-BDwwcMVT.js";
|
|
5
5
|
import "./rpc-tGuLT8PD.js";
|
|
6
6
|
import "./vite-utils-Vzd7cqfv.js";
|
package/dist/react/browser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../dist-
|
|
1
|
+
import "../dist-DiJnRA1C.js";
|
|
2
2
|
import "../shared-CEyKoKAb.js";
|
|
3
|
-
import { setRequireModule } from "../browser-
|
|
3
|
+
import { setRequireModule } from "../browser-BhJd-Orx.js";
|
|
4
4
|
import { callServer, createFromFetch, createFromReadableStream, createServerReference, createTemporaryReferenceSet, encodeReply, findSourceMapURL, setServerCallback } from "../browser-D8OPzpF5.js";
|
|
5
5
|
|
|
6
6
|
export { callServer, createFromFetch, createFromReadableStream, createServerReference, createTemporaryReferenceSet, encodeReply, findSourceMapURL, setRequireModule, setServerCallback };
|
package/dist/react/rsc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../dist-
|
|
1
|
+
import "../dist-DiJnRA1C.js";
|
|
2
2
|
import "../shared-CEyKoKAb.js";
|
|
3
|
-
import { loadServerAction, setRequireModule } from "../rsc-
|
|
4
|
-
import { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, registerClientReference, registerServerReference, renderToReadableStream } from "../rsc-
|
|
3
|
+
import { loadServerAction, setRequireModule } from "../rsc-BfBPoIV8.js";
|
|
4
|
+
import { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, registerClientReference, registerServerReference, renderToReadableStream } from "../rsc-VjVw_i-M.js";
|
|
5
5
|
|
|
6
6
|
export { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, loadServerAction, registerClientReference, registerServerReference, renderToReadableStream, setRequireModule };
|
package/dist/react/ssr.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../dist-
|
|
1
|
+
import "../dist-DiJnRA1C.js";
|
|
2
2
|
import "../shared-CEyKoKAb.js";
|
|
3
|
-
import { setRequireModule } from "../ssr
|
|
4
|
-
import { callServer, createFromReadableStream, createServerReference, findSourceMapURL } from "../ssr-
|
|
3
|
+
import { setRequireModule } from "../ssr--rFiBtws.js";
|
|
4
|
+
import { callServer, createFromReadableStream, createServerReference, findSourceMapURL } from "../ssr-BEKKb_cw.js";
|
|
5
5
|
|
|
6
6
|
export { callServer, createFromReadableStream, createServerReference, findSourceMapURL, setRequireModule };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { memoize, tinyassert } from "./dist-
|
|
1
|
+
import { memoize, tinyassert } from "./dist-DiJnRA1C.js";
|
|
2
2
|
import { SERVER_DECODE_CLIENT_PREFIX, SERVER_REFERENCE_PREFIX, createReferenceCacheTag, removeReferenceCacheTag, setInternalRequire } from "./shared-CEyKoKAb.js";
|
|
3
3
|
import * as ReactServer from "@vitejs/plugin-rsc/vendor/react-server-dom/server.edge";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setRequireModule } from "./rsc-
|
|
1
|
+
import { setRequireModule } from "./rsc-BfBPoIV8.js";
|
|
2
2
|
import serverReferences from "virtual:vite-rsc/server-references";
|
|
3
3
|
|
|
4
4
|
//#region src/rsc.tsx
|
|
@@ -17,4 +17,5 @@ function initialize() {
|
|
|
17
17
|
} });
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
20
|
+
//#endregion
|
|
21
|
+
export { };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createClientManifest, createServerDecodeClientManifest, createServerManifest } from "./rsc-
|
|
1
|
+
import { createClientManifest, createServerDecodeClientManifest, createServerManifest } from "./rsc-BfBPoIV8.js";
|
|
2
2
|
import * as ReactServer from "@vitejs/plugin-rsc/vendor/react-server-dom/server.edge";
|
|
3
3
|
import * as ReactClient from "@vitejs/plugin-rsc/vendor/react-server-dom/client.edge";
|
|
4
4
|
|
package/dist/rsc.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./dist-
|
|
1
|
+
import "./dist-DiJnRA1C.js";
|
|
2
2
|
import "./shared-CEyKoKAb.js";
|
|
3
3
|
import "./encryption-utils-BDwwcMVT.js";
|
|
4
|
-
import { createClientManifest, createServerManifest, loadServerAction, setRequireModule } from "./rsc-
|
|
5
|
-
import { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, registerClientReference, registerServerReference, renderToReadableStream } from "./rsc-
|
|
6
|
-
import { decryptActionBoundArgs, encryptActionBoundArgs } from "./encryption-runtime-
|
|
7
|
-
import "./rsc-
|
|
4
|
+
import { createClientManifest, createServerManifest, loadServerAction, setRequireModule } from "./rsc-BfBPoIV8.js";
|
|
5
|
+
import { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, registerClientReference, registerServerReference, renderToReadableStream } from "./rsc-VjVw_i-M.js";
|
|
6
|
+
import { decryptActionBoundArgs, encryptActionBoundArgs } from "./encryption-runtime-CJUalqt3.js";
|
|
7
|
+
import "./rsc-BwEwbLG4.js";
|
|
8
8
|
|
|
9
9
|
export { createClientManifest, createClientTemporaryReferenceSet, createFromReadableStream, createServerManifest, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, decryptActionBoundArgs, encodeReply, encryptActionBoundArgs, loadServerAction, registerClientReference, registerServerReference, renderToReadableStream, setRequireModule };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setRequireModule } from "./ssr
|
|
1
|
+
import { setRequireModule } from "./ssr--rFiBtws.js";
|
|
2
2
|
import * as clientReferences from "virtual:vite-rsc/client-references";
|
|
3
3
|
import assetsManifest from "virtual:vite-rsc/assets-manifest";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
@@ -49,4 +49,5 @@ function preloadDeps(deps) {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
//#endregion
|
|
52
|
+
//#endregion
|
|
53
|
+
export { };
|
package/dist/ssr.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./dist-
|
|
1
|
+
import "./dist-DiJnRA1C.js";
|
|
2
2
|
import "./shared-CEyKoKAb.js";
|
|
3
|
-
import { createServerConsumerManifest, setRequireModule } from "./ssr
|
|
4
|
-
import { callServer, createFromReadableStream, createServerReference, findSourceMapURL } from "./ssr-
|
|
5
|
-
import "./ssr-
|
|
3
|
+
import { createServerConsumerManifest, setRequireModule } from "./ssr--rFiBtws.js";
|
|
4
|
+
import { callServer, createFromReadableStream, createServerReference, findSourceMapURL } from "./ssr-BEKKb_cw.js";
|
|
5
|
+
import "./ssr-BMTRhW5g.js";
|
|
6
6
|
|
|
7
7
|
export { callServer, createFromReadableStream, createServerConsumerManifest, createServerReference, findSourceMapURL, setRequireModule };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../dist-
|
|
1
|
+
import "../dist-DiJnRA1C.js";
|
|
2
2
|
import "../shared-CEyKoKAb.js";
|
|
3
3
|
import "../encryption-utils-BDwwcMVT.js";
|
|
4
|
-
import "../rsc-
|
|
5
|
-
import "../rsc-
|
|
6
|
-
import { decryptActionBoundArgs, encryptActionBoundArgs } from "../encryption-runtime-
|
|
4
|
+
import "../rsc-BfBPoIV8.js";
|
|
5
|
+
import "../rsc-VjVw_i-M.js";
|
|
6
|
+
import { decryptActionBoundArgs, encryptActionBoundArgs } from "../encryption-runtime-CJUalqt3.js";
|
|
7
7
|
|
|
8
8
|
export { decryptActionBoundArgs, encryptActionBoundArgs };
|