@vitejs/plugin-rsc 0.5.2 → 0.5.4
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/{chunk-CwwaNDyZ.js → chunk-ezxmLbPQ.js} +12 -10
- package/dist/core/rsc.js +1 -1
- package/dist/{encryption-runtime-BeCv59UO.js → encryption-runtime-B0Jz_4Y_.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{picocolors-DAb_Lcs8.js → picocolors-AGVbN-ya.js} +3 -3
- package/dist/{plugin-DNtLVu6l.js → plugin-yqduHnqG.js} +2 -2
- package/dist/plugin.js +1 -1
- package/dist/react/rsc.js +2 -2
- package/dist/{rsc-DCIXw4uj.js → rsc-DaS5-eC_.js} +1 -1
- package/dist/{rsc-CvqvlKO2.js → rsc-F60dNuzq.js} +14 -3
- package/dist/rsc.js +3 -3
- package/dist/utils/encryption-runtime.js +3 -3
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js +8 -10
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js +7 -8
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js +6 -8
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.production.js +7 -8
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js +6 -8
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.production.js +7 -8
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.unbundled.development.js +5 -6
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.unbundled.production.js +6 -6
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.development.js +430 -197
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.production.js +425 -201
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.development.js +438 -204
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.production.js +428 -203
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.development.js +475 -228
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.production.js +469 -227
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.unbundled.development.js +473 -225
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.unbundled.production.js +467 -224
- package/dist/vendor/react-server-dom/package.json +3 -3
- package/package.json +6 -6
|
@@ -7,16 +7,18 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
7
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var
|
|
11
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
-
};
|
|
10
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
13
11
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
14
|
+
key = keys[i];
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
16
|
+
__defProp(to, key, {
|
|
17
|
+
get: ((k) => from[k]).bind(null, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
23
|
return to;
|
|
22
24
|
};
|
|
@@ -27,4 +29,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
29
|
var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
|
|
28
30
|
|
|
29
31
|
//#endregion
|
|
30
|
-
export { __toDynamicImportESM as n,
|
|
32
|
+
export { __toDynamicImportESM as n, __commonJSMin as t };
|
package/dist/core/rsc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../dist-BRSdGcl7.js";
|
|
2
2
|
import "../shared-DEpnONZf.js";
|
|
3
|
-
import { a as setRequireModule, i as loadServerAction, n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "../rsc-
|
|
3
|
+
import { a as setRequireModule, i as loadServerAction, n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "../rsc-F60dNuzq.js";
|
|
4
4
|
|
|
5
5
|
export { createClientManifest, createServerDecodeClientManifest, createServerManifest, loadServerAction, setRequireModule };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as once } from "./dist-BRSdGcl7.js";
|
|
2
2
|
import { a as fromBase64, i as encryptBuffer, n as concatArrayStream, r as decryptBuffer, t as arrayToStream } from "./encryption-utils-6p8t4Xqm.js";
|
|
3
|
-
import { n as createFromReadableStream, u as renderToReadableStream } from "./rsc-
|
|
3
|
+
import { n as createFromReadableStream, u as renderToReadableStream } from "./rsc-DaS5-eC_.js";
|
|
4
4
|
import encryptionKeySource from "virtual:vite-rsc/encryption-key";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/encryption-runtime.ts
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./dist-BRSdGcl7.js";
|
|
|
3
3
|
import "./transforms-BcLQCXiC.js";
|
|
4
4
|
import "./encryption-utils-6p8t4Xqm.js";
|
|
5
5
|
import "./rpc-DgBxsMKW.js";
|
|
6
|
-
import { r as vitePluginRsc, t as getPluginApi } from "./plugin-
|
|
6
|
+
import { r as vitePluginRsc, t as getPluginApi } from "./plugin-yqduHnqG.js";
|
|
7
7
|
import "./cjs-D5eQjp5l.js";
|
|
8
8
|
import "./shared-BbMae1Gg.js";
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as __commonJSMin } from "./chunk-ezxmLbPQ.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
4
|
-
var require_picocolors = /* @__PURE__ */
|
|
4
|
+
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
5
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
6
6
|
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
7
7
|
let formatter = (open, close, replace = open) => (input) => {
|
|
@@ -66,7 +66,7 @@ var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
66
66
|
};
|
|
67
67
|
module.exports = createColors();
|
|
68
68
|
module.exports.createColors = createColors;
|
|
69
|
-
})
|
|
69
|
+
}));
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
72
72
|
export default require_picocolors();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toDynamicImportESM } from "./chunk-
|
|
1
|
+
import { n as __toDynamicImportESM } from "./chunk-ezxmLbPQ.js";
|
|
2
2
|
import { t as vitePluginRscCore } from "./plugin-D1MQNdps.js";
|
|
3
3
|
import { t as createDebug } from "./dist-BRSdGcl7.js";
|
|
4
4
|
import { a as hasDirective, n as transformDirectiveProxyExport, o as transformWrapExport, s as findDirectives, t as transformServerActionServer } from "./transforms-BcLQCXiC.js";
|
|
@@ -389,7 +389,7 @@ function vitePluginRscMinimal(rscPluginOptions = {}, manager = new RscPluginMana
|
|
|
389
389
|
function vitePluginRsc(rscPluginOptions = {}) {
|
|
390
390
|
const manager = new RscPluginManager();
|
|
391
391
|
const buildApp = async (builder) => {
|
|
392
|
-
const colors = await import("./picocolors-
|
|
392
|
+
const colors = await import("./picocolors-AGVbN-ya.js").then(__toDynamicImportESM(1));
|
|
393
393
|
const logStep = (msg) => {
|
|
394
394
|
builder.config.logger.info(colors.blue(msg));
|
|
395
395
|
};
|
package/dist/plugin.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./dist-BRSdGcl7.js";
|
|
|
3
3
|
import "./transforms-BcLQCXiC.js";
|
|
4
4
|
import "./encryption-utils-6p8t4Xqm.js";
|
|
5
5
|
import "./rpc-DgBxsMKW.js";
|
|
6
|
-
import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-
|
|
6
|
+
import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-yqduHnqG.js";
|
|
7
7
|
import "./cjs-D5eQjp5l.js";
|
|
8
8
|
import "./shared-BbMae1Gg.js";
|
|
9
9
|
|
package/dist/react/rsc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../dist-BRSdGcl7.js";
|
|
2
2
|
import "../shared-DEpnONZf.js";
|
|
3
|
-
import { a as setRequireModule, i as loadServerAction } from "../rsc-
|
|
4
|
-
import { a as decodeFormState, c as registerClientReference, i as decodeAction, l as registerServerReference, n as createFromReadableStream, o as decodeReply, r as createTemporaryReferenceSet, s as encodeReply, t as createClientTemporaryReferenceSet, u as renderToReadableStream } from "../rsc-
|
|
3
|
+
import { a as setRequireModule, i as loadServerAction } from "../rsc-F60dNuzq.js";
|
|
4
|
+
import { a as decodeFormState, c as registerClientReference, i as decodeAction, l as registerServerReference, n as createFromReadableStream, o as decodeReply, r as createTemporaryReferenceSet, s as encodeReply, t as createClientTemporaryReferenceSet, u as renderToReadableStream } from "../rsc-DaS5-eC_.js";
|
|
5
5
|
|
|
6
6
|
export { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, loadServerAction, registerClientReference, registerServerReference, renderToReadableStream, setRequireModule };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "./rsc-
|
|
1
|
+
import { n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "./rsc-F60dNuzq.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
|
|
|
@@ -15,12 +15,23 @@ function setRequireModule(options) {
|
|
|
15
15
|
if (id.startsWith(SERVER_DECODE_CLIENT_PREFIX)) {
|
|
16
16
|
id = id.slice(SERVER_DECODE_CLIENT_PREFIX.length);
|
|
17
17
|
id = removeReferenceCacheTag(id);
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
const target = {};
|
|
19
|
+
const getOrCreateClientReference = (name) => {
|
|
20
20
|
return target[name] ??= ReactServer.registerClientReference(() => {
|
|
21
21
|
throw new Error(`Unexpectedly client reference export '${name}' is called on server`);
|
|
22
22
|
}, id, name);
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
|
+
return new Proxy(target, {
|
|
25
|
+
get(_target, name, _receiver) {
|
|
26
|
+
if (typeof name !== "string" || name === "then") return;
|
|
27
|
+
return getOrCreateClientReference(name);
|
|
28
|
+
},
|
|
29
|
+
getOwnPropertyDescriptor(_target, name) {
|
|
30
|
+
if (typeof name !== "string" || name === "then") return Reflect.getOwnPropertyDescriptor(target, name);
|
|
31
|
+
getOrCreateClientReference(name);
|
|
32
|
+
return Reflect.getOwnPropertyDescriptor(target, name);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
24
35
|
}
|
|
25
36
|
return requireModule(id);
|
|
26
37
|
});
|
package/dist/rsc.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./dist-BRSdGcl7.js";
|
|
2
2
|
import "./encryption-utils-6p8t4Xqm.js";
|
|
3
3
|
import "./shared-DEpnONZf.js";
|
|
4
|
-
import { a as setRequireModule, i as loadServerAction, r as createServerManifest, t as createClientManifest } from "./rsc-
|
|
5
|
-
import { a as decodeFormState, c as registerClientReference, i as decodeAction, l as registerServerReference, n as createFromReadableStream, o as decodeReply, r as createTemporaryReferenceSet, s as encodeReply, t as createClientTemporaryReferenceSet, u as renderToReadableStream } from "./rsc-
|
|
6
|
-
import { n as encryptActionBoundArgs, t as decryptActionBoundArgs } from "./encryption-runtime-
|
|
4
|
+
import { a as setRequireModule, i as loadServerAction, r as createServerManifest, t as createClientManifest } from "./rsc-F60dNuzq.js";
|
|
5
|
+
import { a as decodeFormState, c as registerClientReference, i as decodeAction, l as registerServerReference, n as createFromReadableStream, o as decodeReply, r as createTemporaryReferenceSet, s as encodeReply, t as createClientTemporaryReferenceSet, u as renderToReadableStream } from "./rsc-DaS5-eC_.js";
|
|
6
|
+
import { n as encryptActionBoundArgs, t as decryptActionBoundArgs } from "./encryption-runtime-B0Jz_4Y_.js";
|
|
7
7
|
import serverReferences from "virtual:vite-rsc/server-references";
|
|
8
8
|
|
|
9
9
|
//#region src/rsc.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../dist-BRSdGcl7.js";
|
|
2
2
|
import "../encryption-utils-6p8t4Xqm.js";
|
|
3
3
|
import "../shared-DEpnONZf.js";
|
|
4
|
-
import "../rsc-
|
|
5
|
-
import "../rsc-
|
|
6
|
-
import { n as encryptActionBoundArgs, t as decryptActionBoundArgs } from "../encryption-runtime-
|
|
4
|
+
import "../rsc-F60dNuzq.js";
|
|
5
|
+
import "../rsc-DaS5-eC_.js";
|
|
6
|
+
import { n as encryptActionBoundArgs, t as decryptActionBoundArgs } from "../encryption-runtime-B0Jz_4Y_.js";
|
|
7
7
|
|
|
8
8
|
export { decryptActionBoundArgs, encryptActionBoundArgs };
|
package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js
CHANGED
|
@@ -102,13 +102,11 @@
|
|
|
102
102
|
if ("fulfilled" === moduleExports.status)
|
|
103
103
|
moduleExports = moduleExports.value;
|
|
104
104
|
else throw moduleExports.reason;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
: moduleExports
|
|
111
|
-
: moduleExports[metadata[2]];
|
|
105
|
+
if ("*" === metadata[2]) return moduleExports;
|
|
106
|
+
if ("" === metadata[2])
|
|
107
|
+
return moduleExports.__esModule ? moduleExports.default : moduleExports;
|
|
108
|
+
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
109
|
+
return moduleExports[metadata[2]];
|
|
112
110
|
}
|
|
113
111
|
function loadChunk(chunkId, filename) {
|
|
114
112
|
chunkMap.set(chunkId, filename);
|
|
@@ -4628,6 +4626,7 @@
|
|
|
4628
4626
|
ReactDOM = require("react-dom"),
|
|
4629
4627
|
decoderOptions = { stream: !0 },
|
|
4630
4628
|
bind = Function.prototype.bind,
|
|
4629
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4631
4630
|
chunkCache = new Map(),
|
|
4632
4631
|
chunkMap = new Map(),
|
|
4633
4632
|
webpackGetChunkFilename = __webpack_require__.u;
|
|
@@ -4666,7 +4665,6 @@
|
|
|
4666
4665
|
v8FrameRegExp =
|
|
4667
4666
|
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
|
|
4668
4667
|
jscSpiderMonkeyFrameRegExp = /(?:(.*)@)?(.*):(\d+):(\d+)/,
|
|
4669
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4670
4668
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
4671
4669
|
supportsUserTiming =
|
|
4672
4670
|
"undefined" !== typeof console &&
|
|
@@ -4843,10 +4841,10 @@
|
|
|
4843
4841
|
return hook.checkDCE ? !0 : !1;
|
|
4844
4842
|
})({
|
|
4845
4843
|
bundleType: 1,
|
|
4846
|
-
version: "19.2.
|
|
4844
|
+
version: "19.2.1",
|
|
4847
4845
|
rendererPackageName: "react-server-dom-webpack",
|
|
4848
4846
|
currentDispatcherRef: ReactSharedInternals,
|
|
4849
|
-
reconcilerVersion: "19.2.
|
|
4847
|
+
reconcilerVersion: "19.2.1",
|
|
4850
4848
|
getCurrentComponentInfo: function () {
|
|
4851
4849
|
return currentOwnerInDEV;
|
|
4852
4850
|
}
|
package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
12
|
var ReactDOM = require("react-dom"),
|
|
13
|
-
decoderOptions = { stream: !0 }
|
|
13
|
+
decoderOptions = { stream: !0 },
|
|
14
|
+
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
14
15
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
15
16
|
if (bundlerConfig) {
|
|
16
17
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -100,13 +101,11 @@ function requireModule(metadata) {
|
|
|
100
101
|
if ("fulfilled" === moduleExports.status)
|
|
101
102
|
moduleExports = moduleExports.value;
|
|
102
103
|
else throw moduleExports.reason;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
: moduleExports
|
|
109
|
-
: moduleExports[metadata[2]];
|
|
104
|
+
if ("*" === metadata[2]) return moduleExports;
|
|
105
|
+
if ("" === metadata[2])
|
|
106
|
+
return moduleExports.__esModule ? moduleExports.default : moduleExports;
|
|
107
|
+
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
108
|
+
return moduleExports[metadata[2]];
|
|
110
109
|
}
|
|
111
110
|
var chunkMap = new Map(),
|
|
112
111
|
webpackGetChunkFilename = __webpack_require__.u;
|
package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js
CHANGED
|
@@ -102,13 +102,11 @@
|
|
|
102
102
|
if ("fulfilled" === moduleExports.status)
|
|
103
103
|
moduleExports = moduleExports.value;
|
|
104
104
|
else throw moduleExports.reason;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
: moduleExports
|
|
111
|
-
: moduleExports[metadata[2]];
|
|
105
|
+
if ("*" === metadata[2]) return moduleExports;
|
|
106
|
+
if ("" === metadata[2])
|
|
107
|
+
return moduleExports.__esModule ? moduleExports.default : moduleExports;
|
|
108
|
+
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
109
|
+
return moduleExports[metadata[2]];
|
|
112
110
|
}
|
|
113
111
|
function prepareDestinationWithChunks(
|
|
114
112
|
moduleLoading,
|
|
@@ -4661,6 +4659,7 @@
|
|
|
4661
4659
|
React = require("react"),
|
|
4662
4660
|
decoderOptions = { stream: !0 },
|
|
4663
4661
|
bind$1 = Function.prototype.bind,
|
|
4662
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4664
4663
|
chunkCache = new Map(),
|
|
4665
4664
|
ReactDOMSharedInternals =
|
|
4666
4665
|
ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
@@ -4693,7 +4692,6 @@
|
|
|
4693
4692
|
v8FrameRegExp =
|
|
4694
4693
|
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
|
|
4695
4694
|
jscSpiderMonkeyFrameRegExp = /(?:(.*)@)?(.*):(\d+):(\d+)/,
|
|
4696
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4697
4695
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
4698
4696
|
supportsUserTiming =
|
|
4699
4697
|
"undefined" !== typeof console &&
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
12
|
var ReactDOM = require("react-dom"),
|
|
13
|
-
decoderOptions = { stream: !0 }
|
|
13
|
+
decoderOptions = { stream: !0 },
|
|
14
|
+
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
14
15
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
15
16
|
if (bundlerConfig) {
|
|
16
17
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -99,13 +100,11 @@ function requireModule(metadata) {
|
|
|
99
100
|
if ("fulfilled" === moduleExports.status)
|
|
100
101
|
moduleExports = moduleExports.value;
|
|
101
102
|
else throw moduleExports.reason;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
: moduleExports
|
|
108
|
-
: moduleExports[metadata[2]];
|
|
103
|
+
if ("*" === metadata[2]) return moduleExports;
|
|
104
|
+
if ("" === metadata[2])
|
|
105
|
+
return moduleExports.__esModule ? moduleExports.default : moduleExports;
|
|
106
|
+
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
107
|
+
return moduleExports[metadata[2]];
|
|
109
108
|
}
|
|
110
109
|
function prepareDestinationWithChunks(moduleLoading, chunks, nonce$jscomp$0) {
|
|
111
110
|
if (null !== moduleLoading)
|
package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js
CHANGED
|
@@ -102,13 +102,11 @@
|
|
|
102
102
|
if ("fulfilled" === moduleExports.status)
|
|
103
103
|
moduleExports = moduleExports.value;
|
|
104
104
|
else throw moduleExports.reason;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
: moduleExports
|
|
111
|
-
: moduleExports[metadata[2]];
|
|
105
|
+
if ("*" === metadata[2]) return moduleExports;
|
|
106
|
+
if ("" === metadata[2])
|
|
107
|
+
return moduleExports.__esModule ? moduleExports.default : moduleExports;
|
|
108
|
+
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
109
|
+
return moduleExports[metadata[2]];
|
|
112
110
|
}
|
|
113
111
|
function prepareDestinationWithChunks(
|
|
114
112
|
moduleLoading,
|
|
@@ -4766,6 +4764,7 @@
|
|
|
4766
4764
|
React = require("react"),
|
|
4767
4765
|
decoderOptions = { stream: !0 },
|
|
4768
4766
|
bind$1 = Function.prototype.bind,
|
|
4767
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4769
4768
|
chunkCache = new Map(),
|
|
4770
4769
|
ReactDOMSharedInternals =
|
|
4771
4770
|
ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
@@ -4798,7 +4797,6 @@
|
|
|
4798
4797
|
v8FrameRegExp =
|
|
4799
4798
|
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
|
|
4800
4799
|
jscSpiderMonkeyFrameRegExp = /(?:(.*)@)?(.*):(\d+):(\d+)/,
|
|
4801
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4802
4800
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
4803
4801
|
supportsUserTiming =
|
|
4804
4802
|
"undefined" !== typeof console &&
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
var util = require("util"),
|
|
13
13
|
ReactDOM = require("react-dom"),
|
|
14
|
-
decoderOptions = { stream: !0 }
|
|
14
|
+
decoderOptions = { stream: !0 },
|
|
15
|
+
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
15
16
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
16
17
|
if (bundlerConfig) {
|
|
17
18
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -100,13 +101,11 @@ function requireModule(metadata) {
|
|
|
100
101
|
if ("fulfilled" === moduleExports.status)
|
|
101
102
|
moduleExports = moduleExports.value;
|
|
102
103
|
else throw moduleExports.reason;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
: moduleExports
|
|
109
|
-
: moduleExports[metadata[2]];
|
|
104
|
+
if ("*" === metadata[2]) return moduleExports;
|
|
105
|
+
if ("" === metadata[2])
|
|
106
|
+
return moduleExports.__esModule ? moduleExports.default : moduleExports;
|
|
107
|
+
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
108
|
+
return moduleExports[metadata[2]];
|
|
110
109
|
}
|
|
111
110
|
function prepareDestinationWithChunks(moduleLoading, chunks, nonce$jscomp$0) {
|
|
112
111
|
if (null !== moduleLoading)
|
|
@@ -66,11 +66,10 @@
|
|
|
66
66
|
if ("fulfilled" === moduleExports.status)
|
|
67
67
|
moduleExports = moduleExports.value;
|
|
68
68
|
else throw moduleExports.reason;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
: moduleExports[metadata.name];
|
|
69
|
+
if ("*" === metadata.name) return moduleExports;
|
|
70
|
+
if ("" === metadata.name) return moduleExports.default;
|
|
71
|
+
if (hasOwnProperty.call(moduleExports, metadata.name))
|
|
72
|
+
return moduleExports[metadata.name];
|
|
74
73
|
}
|
|
75
74
|
function prepareDestinationWithChunks(
|
|
76
75
|
moduleLoading,
|
|
@@ -4726,6 +4725,7 @@
|
|
|
4726
4725
|
React = require("react"),
|
|
4727
4726
|
decoderOptions = { stream: !0 },
|
|
4728
4727
|
bind$1 = Function.prototype.bind,
|
|
4728
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4729
4729
|
asyncModuleCache = new Map(),
|
|
4730
4730
|
ReactDOMSharedInternals =
|
|
4731
4731
|
ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
@@ -4758,7 +4758,6 @@
|
|
|
4758
4758
|
v8FrameRegExp =
|
|
4759
4759
|
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
|
|
4760
4760
|
jscSpiderMonkeyFrameRegExp = /(?:(.*)@)?(.*):(\d+):(\d+)/,
|
|
4761
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4762
4761
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
4763
4762
|
supportsUserTiming =
|
|
4764
4763
|
"undefined" !== typeof console &&
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
var util = require("util"),
|
|
13
13
|
ReactDOM = require("react-dom"),
|
|
14
|
-
decoderOptions = { stream: !0 }
|
|
14
|
+
decoderOptions = { stream: !0 },
|
|
15
|
+
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
15
16
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
16
17
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
17
18
|
if ((bundlerConfig = moduleExports && moduleExports[metadata[2]]))
|
|
@@ -67,11 +68,10 @@ function requireModule(metadata) {
|
|
|
67
68
|
var moduleExports = asyncModuleCache.get(metadata.specifier);
|
|
68
69
|
if ("fulfilled" === moduleExports.status) moduleExports = moduleExports.value;
|
|
69
70
|
else throw moduleExports.reason;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
: moduleExports[metadata.name];
|
|
71
|
+
if ("*" === metadata.name) return moduleExports;
|
|
72
|
+
if ("" === metadata.name) return moduleExports.default;
|
|
73
|
+
if (hasOwnProperty.call(moduleExports, metadata.name))
|
|
74
|
+
return moduleExports[metadata.name];
|
|
75
75
|
}
|
|
76
76
|
function prepareDestinationWithChunks(moduleLoading, chunks, nonce$jscomp$0) {
|
|
77
77
|
if (null !== moduleLoading)
|