@rspack/browser 2.0.0-beta.5 → 2.0.0-beta.7
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/builtin-loader/swc/types.d.ts +17 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -0
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +25 -0
- package/dist/checkNodeVersion.d.ts +1 -0
- package/dist/config/devServer.d.ts +102 -237
- package/dist/config/types.d.ts +2 -5
- package/dist/container/ContainerPlugin.d.ts +3 -2
- package/dist/container/ContainerReferencePlugin.d.ts +4 -3
- package/dist/container/ModuleFederationPlugin.d.ts +2 -1
- package/dist/container/ModuleFederationPluginV1.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +665 -568
- package/dist/napi-binding.d.ts +20 -6
- package/dist/rslib-runtime.js +5 -8
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/sharing/CollectSharedEntryPlugin.d.ts +2 -2
- package/dist/sharing/ConsumeSharedPlugin.d.ts +5 -5
- package/dist/sharing/ProvideSharedPlugin.d.ts +6 -5
- package/dist/sharing/SharePlugin.d.ts +9 -7
- package/dist/wasi-worker-browser.mjs +202 -90
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
/*! LICENSE: index.js.LICENSE.txt */
|
|
2
2
|
import * as __rspack_external__rspack_wasi_browser_js_bd433424 from "./rspack.wasi-browser.js";
|
|
3
3
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
4
|
+
import rspack_wasi_browser, { AsyncDependenciesBlock, BuiltinPluginName, Chunk, ChunkGraph, Chunks as external_rspack_wasi_browser_js_Chunks, ConcatenatedModule, ContextModule, Dependency, EnforceExtension, EntryDependency, ExternalModule, JsCoordinator, JsLoaderState, JsRspackSeverity, Module, NormalModule, RawRuleSetConditionType, RegisterJsTapKind, ResolverFactory as external_rspack_wasi_browser_js_ResolverFactory, async as external_rspack_wasi_browser_js_async, cleanupGlobalTrace, formatDiagnostic, registerGlobalTrace, sync, syncTraceEvent, transformSync as external_rspack_wasi_browser_js_transformSync } from "./rspack.wasi-browser.js";
|
|
4
5
|
import { AsyncParallelHook, AsyncSeriesBailHook, AsyncSeriesHook, AsyncSeriesWaterfallHook, HookMap, MultiHook, SyncBailHook, SyncHook, SyncWaterfallHook, maxStage, minStage, safeStage } from "@rspack/lite-tapable";
|
|
5
6
|
__webpack_require__.add({
|
|
6
7
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
7
8
|
var asn1 = exports;
|
|
8
|
-
asn1.bignum = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
9
|
+
asn1.bignum = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
9
10
|
asn1.define = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/api.js").define;
|
|
10
11
|
asn1.base = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/index.js");
|
|
11
12
|
asn1.constants = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/constants/index.js");
|
|
@@ -69,7 +70,7 @@ __webpack_require__.add({
|
|
|
69
70
|
this.length = base.length;
|
|
70
71
|
}
|
|
71
72
|
inherits(DecoderBuffer, Reporter);
|
|
72
|
-
exports.
|
|
73
|
+
exports.t = DecoderBuffer;
|
|
73
74
|
DecoderBuffer.prototype.save = function() {
|
|
74
75
|
return {
|
|
75
76
|
offset: this.offset,
|
|
@@ -124,7 +125,7 @@ __webpack_require__.add({
|
|
|
124
125
|
this.length = value.length;
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
|
-
exports.
|
|
128
|
+
exports.d = EncoderBuffer;
|
|
128
129
|
EncoderBuffer.prototype.join = function(out, offset) {
|
|
129
130
|
if (!out) out = new Buffer(this.length);
|
|
130
131
|
if (!offset) offset = 0;
|
|
@@ -144,9 +145,9 @@ __webpack_require__.add({
|
|
|
144
145
|
},
|
|
145
146
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
146
147
|
var base = exports;
|
|
147
|
-
base.Reporter = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/reporter.js").
|
|
148
|
-
base.DecoderBuffer = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/buffer.js").
|
|
149
|
-
base.EncoderBuffer = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/buffer.js").
|
|
148
|
+
base.Reporter = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/reporter.js").a;
|
|
149
|
+
base.DecoderBuffer = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/buffer.js").t;
|
|
150
|
+
base.EncoderBuffer = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/buffer.js").d;
|
|
150
151
|
base.Node = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/node.js");
|
|
151
152
|
},
|
|
152
153
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/node.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
@@ -605,7 +606,7 @@ __webpack_require__.add({
|
|
|
605
606
|
errors: []
|
|
606
607
|
};
|
|
607
608
|
}
|
|
608
|
-
exports.
|
|
609
|
+
exports.a = Reporter;
|
|
609
610
|
Reporter.prototype.isError = function(obj) {
|
|
610
611
|
return obj instanceof ReporterError;
|
|
611
612
|
};
|
|
@@ -2697,7 +2698,7 @@ __webpack_require__.add({
|
|
|
2697
2698
|
isDeepStrictEqual: isDeepStrictEqual
|
|
2698
2699
|
};
|
|
2699
2700
|
},
|
|
2700
|
-
"../../node_modules/.pnpm/bn.js@4.12.
|
|
2701
|
+
"../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2701
2702
|
module = __webpack_require__.nmd(module);
|
|
2702
2703
|
(function(module, exports) {
|
|
2703
2704
|
'use strict';
|
|
@@ -2731,7 +2732,7 @@ __webpack_require__.add({
|
|
|
2731
2732
|
BN.wordSize = 26;
|
|
2732
2733
|
var Buffer;
|
|
2733
2734
|
try {
|
|
2734
|
-
Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?
|
|
2735
|
+
Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?7763").Buffer;
|
|
2735
2736
|
} catch (e) {}
|
|
2736
2737
|
BN.isBN = function(num) {
|
|
2737
2738
|
if (num instanceof BN) return true;
|
|
@@ -4313,6 +4314,10 @@ __webpack_require__.add({
|
|
|
4313
4314
|
var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;
|
|
4314
4315
|
this.words[this.length - 1] &= mask;
|
|
4315
4316
|
}
|
|
4317
|
+
if (0 === this.length) {
|
|
4318
|
+
this.words[0] = 0;
|
|
4319
|
+
this.length = 1;
|
|
4320
|
+
}
|
|
4316
4321
|
return this.strip();
|
|
4317
4322
|
};
|
|
4318
4323
|
BN.prototype.maskn = function(bits) {
|
|
@@ -4668,7 +4673,7 @@ __webpack_require__.add({
|
|
|
4668
4673
|
b = t;
|
|
4669
4674
|
} else if (0 === r || 0 === b.cmpn(1)) break;
|
|
4670
4675
|
a.isub(b);
|
|
4671
|
-
}while (true)
|
|
4676
|
+
}while (true)
|
|
4672
4677
|
return b.iushln(shift);
|
|
4673
4678
|
};
|
|
4674
4679
|
BN.prototype.invm = function(num) {
|
|
@@ -4884,7 +4889,7 @@ __webpack_require__.add({
|
|
|
4884
4889
|
r = this.imulK(r);
|
|
4885
4890
|
r = r.iadd(this.tmp);
|
|
4886
4891
|
rlen = r.bitLength();
|
|
4887
|
-
}while (rlen > this.n)
|
|
4892
|
+
}while (rlen > this.n)
|
|
4888
4893
|
var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
|
|
4889
4894
|
if (0 === cmp) {
|
|
4890
4895
|
r.words[0] = 0;
|
|
@@ -5187,7 +5192,7 @@ __webpack_require__.add({
|
|
|
5187
5192
|
};
|
|
5188
5193
|
})(module, this);
|
|
5189
5194
|
},
|
|
5190
|
-
"../../node_modules/.pnpm/bn.js@5.2.
|
|
5195
|
+
"../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
5191
5196
|
module = __webpack_require__.nmd(module);
|
|
5192
5197
|
(function(module, exports) {
|
|
5193
5198
|
'use strict';
|
|
@@ -5221,7 +5226,7 @@ __webpack_require__.add({
|
|
|
5221
5226
|
BN.wordSize = 26;
|
|
5222
5227
|
var Buffer;
|
|
5223
5228
|
try {
|
|
5224
|
-
Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?
|
|
5229
|
+
Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?5658").Buffer;
|
|
5225
5230
|
} catch (e) {}
|
|
5226
5231
|
BN.isBN = function(num) {
|
|
5227
5232
|
if (num instanceof BN) return true;
|
|
@@ -6852,6 +6857,10 @@ __webpack_require__.add({
|
|
|
6852
6857
|
var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;
|
|
6853
6858
|
this.words[this.length - 1] &= mask;
|
|
6854
6859
|
}
|
|
6860
|
+
if (0 === this.length) {
|
|
6861
|
+
this.words[0] = 0;
|
|
6862
|
+
this.length = 1;
|
|
6863
|
+
}
|
|
6855
6864
|
return this._strip();
|
|
6856
6865
|
};
|
|
6857
6866
|
BN.prototype.maskn = function(bits) {
|
|
@@ -7215,7 +7224,7 @@ __webpack_require__.add({
|
|
|
7215
7224
|
b = t;
|
|
7216
7225
|
} else if (0 === r || 0 === b.cmpn(1)) break;
|
|
7217
7226
|
a.isub(b);
|
|
7218
|
-
}while (true)
|
|
7227
|
+
}while (true)
|
|
7219
7228
|
return b.iushln(shift);
|
|
7220
7229
|
};
|
|
7221
7230
|
BN.prototype.invm = function(num) {
|
|
@@ -7431,7 +7440,7 @@ __webpack_require__.add({
|
|
|
7431
7440
|
r = this.imulK(r);
|
|
7432
7441
|
r = r.iadd(this.tmp);
|
|
7433
7442
|
rlen = r.bitLength();
|
|
7434
|
-
}while (rlen > this.n)
|
|
7443
|
+
}while (rlen > this.n)
|
|
7435
7444
|
var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
|
|
7436
7445
|
if (0 === cmp) {
|
|
7437
7446
|
r.words[0] = 0;
|
|
@@ -8700,14 +8709,14 @@ __webpack_require__.add({
|
|
|
8700
8709
|
};
|
|
8701
8710
|
},
|
|
8702
8711
|
"../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
8703
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.
|
|
8712
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js");
|
|
8704
8713
|
var randomBytes = __webpack_require__("../../node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.js");
|
|
8705
8714
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
8706
8715
|
function getr(priv) {
|
|
8707
8716
|
var len = priv.modulus.byteLength();
|
|
8708
8717
|
var r;
|
|
8709
8718
|
do r = new BN(randomBytes(len));
|
|
8710
|
-
while (r.cmp(priv.modulus) >= 0 || !r.umod(priv.prime1) || !r.umod(priv.prime2))
|
|
8719
|
+
while (r.cmp(priv.modulus) >= 0 || !r.umod(priv.prime1) || !r.umod(priv.prime2))
|
|
8711
8720
|
return r;
|
|
8712
8721
|
}
|
|
8713
8722
|
function blind(priv) {
|
|
@@ -8815,7 +8824,7 @@ __webpack_require__.add({
|
|
|
8815
8824
|
var createHmac = __webpack_require__("../../node_modules/.pnpm/create-hmac@1.1.7/node_modules/create-hmac/browser.js");
|
|
8816
8825
|
var crt = __webpack_require__("../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js");
|
|
8817
8826
|
var EC = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js").ec;
|
|
8818
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.
|
|
8827
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js");
|
|
8819
8828
|
var parseKeys = __webpack_require__("../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/index.js");
|
|
8820
8829
|
var curves = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/curves.json");
|
|
8821
8830
|
var RSA_PKCS1_PADDING = 1;
|
|
@@ -8961,7 +8970,7 @@ __webpack_require__.add({
|
|
|
8961
8970
|
0
|
|
8962
8971
|
])).digest();
|
|
8963
8972
|
kv.v = createHmac(algo, kv.k).update(kv.v).digest();
|
|
8964
|
-
}while (-1 !== k.cmp(q))
|
|
8973
|
+
}while (-1 !== k.cmp(q))
|
|
8965
8974
|
return k;
|
|
8966
8975
|
}
|
|
8967
8976
|
function makeR(g, k, p, q) {
|
|
@@ -8973,7 +8982,7 @@ __webpack_require__.add({
|
|
|
8973
8982
|
},
|
|
8974
8983
|
"../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/verify.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
8975
8984
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
8976
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.
|
|
8985
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js");
|
|
8977
8986
|
var EC = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js").ec;
|
|
8978
8987
|
var parseKeys = __webpack_require__("../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/index.js");
|
|
8979
8988
|
var curves = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/curves.json");
|
|
@@ -9662,7 +9671,7 @@ __webpack_require__.add({
|
|
|
9662
9671
|
});
|
|
9663
9672
|
assert(this._handle, 'zlib binding closed');
|
|
9664
9673
|
do var res = this._handle.writeSync(flushFlag, chunk, inOff, availInBefore, this._buffer, this._offset, availOutBefore);
|
|
9665
|
-
while (!this._hadError && callback(res[0], res[1]))
|
|
9674
|
+
while (!this._hadError && callback(res[0], res[1]))
|
|
9666
9675
|
if (this._hadError) throw error;
|
|
9667
9676
|
if (nread >= kMaxLength) {
|
|
9668
9677
|
_close(this);
|
|
@@ -9870,7 +9879,7 @@ __webpack_require__.add({
|
|
|
9870
9879
|
"../../node_modules/.pnpm/cipher-base@1.0.7/node_modules/cipher-base/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
9871
9880
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
9872
9881
|
var Transform = __webpack_require__("../../node_modules/.pnpm/stream-browserify@3.0.0/node_modules/stream-browserify/index.js").Transform;
|
|
9873
|
-
var StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js").
|
|
9882
|
+
var StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js").I;
|
|
9874
9883
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
9875
9884
|
var toBuffer = __webpack_require__("../../node_modules/.pnpm/to-buffer@1.2.2/node_modules/to-buffer/index.js");
|
|
9876
9885
|
function CipherBase(hashMode) {
|
|
@@ -10006,7 +10015,7 @@ __webpack_require__.add({
|
|
|
10006
10015
|
"../../node_modules/.pnpm/create-ecdh@4.0.4/node_modules/create-ecdh/browser.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
10007
10016
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
10008
10017
|
var elliptic = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js");
|
|
10009
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
10018
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
10010
10019
|
module.exports = function(curve) {
|
|
10011
10020
|
return new ECDH(curve);
|
|
10012
10021
|
};
|
|
@@ -10220,12 +10229,13 @@ __webpack_require__.add({
|
|
|
10220
10229
|
module.exports = Hmac;
|
|
10221
10230
|
},
|
|
10222
10231
|
"../../node_modules/.pnpm/crypto-browserify@3.12.1/node_modules/crypto-browserify/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
exports.
|
|
10232
|
+
var __webpack_unused_export__;
|
|
10233
|
+
__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_require__("../../node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.js");
|
|
10234
|
+
exports.createHash = __webpack_require__("../../node_modules/.pnpm/create-hash@1.2.0/node_modules/create-hash/browser.js");
|
|
10235
|
+
__webpack_unused_export__ = __webpack_require__("../../node_modules/.pnpm/create-hmac@1.1.7/node_modules/create-hmac/browser.js");
|
|
10226
10236
|
var algos = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/algos.js");
|
|
10227
10237
|
var algoKeys = Object.keys(algos);
|
|
10228
|
-
|
|
10238
|
+
[
|
|
10229
10239
|
'sha1',
|
|
10230
10240
|
'sha224',
|
|
10231
10241
|
'sha256',
|
|
@@ -10234,63 +10244,40 @@ __webpack_require__.add({
|
|
|
10234
10244
|
'md5',
|
|
10235
10245
|
'rmd160'
|
|
10236
10246
|
].concat(algoKeys);
|
|
10237
|
-
exports.getHashes = function() {
|
|
10238
|
-
return hashes;
|
|
10239
|
-
};
|
|
10240
10247
|
var p = __webpack_require__("../../node_modules/.pnpm/pbkdf2@3.1.5/node_modules/pbkdf2/browser.js");
|
|
10241
|
-
|
|
10242
|
-
|
|
10248
|
+
__webpack_unused_export__ = p.pbkdf2;
|
|
10249
|
+
__webpack_unused_export__ = p.pbkdf2Sync;
|
|
10243
10250
|
var aes = __webpack_require__("../../node_modules/.pnpm/browserify-cipher@1.0.1/node_modules/browserify-cipher/browser.js");
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10251
|
+
__webpack_unused_export__ = aes.Cipher;
|
|
10252
|
+
__webpack_unused_export__ = aes.createCipher;
|
|
10253
|
+
__webpack_unused_export__ = aes.Cipheriv;
|
|
10254
|
+
__webpack_unused_export__ = aes.createCipheriv;
|
|
10255
|
+
__webpack_unused_export__ = aes.Decipher;
|
|
10256
|
+
__webpack_unused_export__ = aes.createDecipher;
|
|
10257
|
+
__webpack_unused_export__ = aes.Decipheriv;
|
|
10258
|
+
__webpack_unused_export__ = aes.createDecipheriv;
|
|
10259
|
+
__webpack_unused_export__ = aes.getCiphers;
|
|
10260
|
+
__webpack_unused_export__ = aes.listCiphers;
|
|
10254
10261
|
var dh = __webpack_require__("../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/browser.js");
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10262
|
+
__webpack_unused_export__ = dh.DiffieHellmanGroup;
|
|
10263
|
+
__webpack_unused_export__ = dh.createDiffieHellmanGroup;
|
|
10264
|
+
__webpack_unused_export__ = dh.getDiffieHellman;
|
|
10265
|
+
__webpack_unused_export__ = dh.createDiffieHellman;
|
|
10266
|
+
__webpack_unused_export__ = dh.DiffieHellman;
|
|
10260
10267
|
var sign = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/index.js");
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10268
|
+
__webpack_unused_export__ = sign.createSign;
|
|
10269
|
+
__webpack_unused_export__ = sign.Sign;
|
|
10270
|
+
__webpack_unused_export__ = sign.createVerify;
|
|
10271
|
+
__webpack_unused_export__ = sign.Verify;
|
|
10272
|
+
__webpack_require__("../../node_modules/.pnpm/create-ecdh@4.0.4/node_modules/create-ecdh/browser.js");
|
|
10266
10273
|
var publicEncrypt = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/browser.js");
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10274
|
+
__webpack_unused_export__ = publicEncrypt.publicEncrypt;
|
|
10275
|
+
__webpack_unused_export__ = publicEncrypt.privateEncrypt;
|
|
10276
|
+
__webpack_unused_export__ = publicEncrypt.publicDecrypt;
|
|
10277
|
+
__webpack_unused_export__ = publicEncrypt.privateDecrypt;
|
|
10271
10278
|
var rf = __webpack_require__("../../node_modules/.pnpm/randomfill@1.0.4/node_modules/randomfill/browser.js");
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
exports.createCredentials = function() {
|
|
10275
|
-
throw new Error('sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify');
|
|
10276
|
-
};
|
|
10277
|
-
exports.constants = {
|
|
10278
|
-
DH_CHECK_P_NOT_SAFE_PRIME: 2,
|
|
10279
|
-
DH_CHECK_P_NOT_PRIME: 1,
|
|
10280
|
-
DH_UNABLE_TO_CHECK_GENERATOR: 4,
|
|
10281
|
-
DH_NOT_SUITABLE_GENERATOR: 8,
|
|
10282
|
-
NPN_ENABLED: 1,
|
|
10283
|
-
ALPN_ENABLED: 1,
|
|
10284
|
-
RSA_PKCS1_PADDING: 1,
|
|
10285
|
-
RSA_SSLV23_PADDING: 2,
|
|
10286
|
-
RSA_NO_PADDING: 3,
|
|
10287
|
-
RSA_PKCS1_OAEP_PADDING: 4,
|
|
10288
|
-
RSA_X931_PADDING: 5,
|
|
10289
|
-
RSA_PKCS1_PSS_PADDING: 6,
|
|
10290
|
-
POINT_CONVERSION_COMPRESSED: 2,
|
|
10291
|
-
POINT_CONVERSION_UNCOMPRESSED: 4,
|
|
10292
|
-
POINT_CONVERSION_HYBRID: 6
|
|
10293
|
-
};
|
|
10279
|
+
__webpack_unused_export__ = rf.randomFill;
|
|
10280
|
+
__webpack_unused_export__ = rf.randomFillSync;
|
|
10294
10281
|
},
|
|
10295
10282
|
"../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
10296
10283
|
var $defineProperty = __webpack_require__("../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js");
|
|
@@ -11442,7 +11429,7 @@ __webpack_require__.add({
|
|
|
11442
11429
|
},
|
|
11443
11430
|
"../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/lib/dh.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
11444
11431
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
11445
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
11432
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
11446
11433
|
var MillerRabin = __webpack_require__("../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js");
|
|
11447
11434
|
var millerRabin = new MillerRabin();
|
|
11448
11435
|
var TWENTYFOUR = new BN(24);
|
|
@@ -11568,7 +11555,7 @@ __webpack_require__.add({
|
|
|
11568
11555
|
module.exports = findPrime;
|
|
11569
11556
|
findPrime.simpleSieve = simpleSieve;
|
|
11570
11557
|
findPrime.fermatTest = fermatTest;
|
|
11571
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
11558
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
11572
11559
|
var TWENTYFOUR = new BN(24);
|
|
11573
11560
|
var MillerRabin = __webpack_require__("../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js");
|
|
11574
11561
|
var millerRabin = new MillerRabin();
|
|
@@ -11660,7 +11647,7 @@ __webpack_require__.add({
|
|
|
11660
11647
|
elliptic.eddsa = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/eddsa/index.js");
|
|
11661
11648
|
},
|
|
11662
11649
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
11663
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
11650
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
11664
11651
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
11665
11652
|
var getNAF = utils.getNAF;
|
|
11666
11653
|
var getJSF = utils.getJSF;
|
|
@@ -11928,7 +11915,7 @@ __webpack_require__.add({
|
|
|
11928
11915
|
},
|
|
11929
11916
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/edwards.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
11930
11917
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
11931
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
11918
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
11932
11919
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
11933
11920
|
var Base = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js");
|
|
11934
11921
|
var assert = utils.assert;
|
|
@@ -12202,7 +12189,7 @@ __webpack_require__.add({
|
|
|
12202
12189
|
curve.edwards = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/edwards.js");
|
|
12203
12190
|
},
|
|
12204
12191
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/mont.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
12205
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
12192
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
12206
12193
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
12207
12194
|
var Base = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js");
|
|
12208
12195
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
@@ -12319,7 +12306,7 @@ __webpack_require__.add({
|
|
|
12319
12306
|
},
|
|
12320
12307
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/short.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
12321
12308
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
12322
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
12309
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
12323
12310
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
12324
12311
|
var Base = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js");
|
|
12325
12312
|
var assert = utils.assert;
|
|
@@ -13142,7 +13129,7 @@ __webpack_require__.add({
|
|
|
13142
13129
|
});
|
|
13143
13130
|
},
|
|
13144
13131
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/ec/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
13145
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
13132
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
13146
13133
|
var HmacDRBG = __webpack_require__("../../node_modules/.pnpm/hmac-drbg@1.0.1/node_modules/hmac-drbg/lib/hmac-drbg.js");
|
|
13147
13134
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
13148
13135
|
var curves = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curves.js");
|
|
@@ -13323,7 +13310,7 @@ __webpack_require__.add({
|
|
|
13323
13310
|
};
|
|
13324
13311
|
},
|
|
13325
13312
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/ec/key.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
13326
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
13313
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
13327
13314
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
13328
13315
|
var assert = utils.assert;
|
|
13329
13316
|
function KeyPair(ec, options) {
|
|
@@ -13408,7 +13395,7 @@ __webpack_require__.add({
|
|
|
13408
13395
|
};
|
|
13409
13396
|
},
|
|
13410
13397
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/ec/signature.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
13411
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
13398
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
13412
13399
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
13413
13400
|
var assert = utils.assert;
|
|
13414
13401
|
function Signature(options, enc) {
|
|
@@ -13661,7 +13648,7 @@ __webpack_require__.add({
|
|
|
13661
13648
|
module.exports = KeyPair;
|
|
13662
13649
|
},
|
|
13663
13650
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/eddsa/signature.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
13664
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
13651
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
13665
13652
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
13666
13653
|
var assert = utils.assert;
|
|
13667
13654
|
var cachedProperty = utils.cachedProperty;
|
|
@@ -14486,7 +14473,7 @@ __webpack_require__.add({
|
|
|
14486
14473
|
},
|
|
14487
14474
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
14488
14475
|
var utils = exports;
|
|
14489
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
14476
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
14490
14477
|
var minAssert = __webpack_require__("../../node_modules/.pnpm/minimalistic-assert@1.0.1/node_modules/minimalistic-assert/index.js");
|
|
14491
14478
|
var minUtils = __webpack_require__("../../node_modules/.pnpm/minimalistic-crypto-utils@1.0.1/node_modules/minimalistic-crypto-utils/lib/utils.js");
|
|
14492
14479
|
utils.assert = minAssert;
|
|
@@ -14566,9 +14553,9 @@ __webpack_require__.add({
|
|
|
14566
14553
|
}
|
|
14567
14554
|
utils.intFromLE = intFromLE;
|
|
14568
14555
|
},
|
|
14569
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.
|
|
14556
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.20.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
14570
14557
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
14571
|
-
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.
|
|
14558
|
+
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.0/node_modules/enhanced-resolve/lib/util/process-browser.js");
|
|
14572
14559
|
const dirname = (path)=>{
|
|
14573
14560
|
let idx = path.length - 1;
|
|
14574
14561
|
while(idx >= 0){
|
|
@@ -14862,7 +14849,7 @@ __webpack_require__.add({
|
|
|
14862
14849
|
}
|
|
14863
14850
|
};
|
|
14864
14851
|
},
|
|
14865
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.
|
|
14852
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.20.0/node_modules/enhanced-resolve/lib/util/process-browser.js" (module) {
|
|
14866
14853
|
module.exports = {
|
|
14867
14854
|
versions: {},
|
|
14868
14855
|
nextTick (fn) {
|
|
@@ -15332,6 +15319,10 @@ __webpack_require__.add({
|
|
|
15332
15319
|
var implementation = __webpack_require__("../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js");
|
|
15333
15320
|
module.exports = Function.prototype.bind || implementation;
|
|
15334
15321
|
},
|
|
15322
|
+
"../../node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js" (module) {
|
|
15323
|
+
const cached = (function*() {}).constructor;
|
|
15324
|
+
module.exports = ()=>cached;
|
|
15325
|
+
},
|
|
15335
15326
|
"../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
15336
15327
|
var undefined;
|
|
15337
15328
|
var $Object = __webpack_require__("../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js");
|
|
@@ -18426,7 +18417,7 @@ __webpack_require__.add({
|
|
|
18426
18417
|
return tryFunctionObject(value);
|
|
18427
18418
|
};
|
|
18428
18419
|
},
|
|
18429
|
-
"../../node_modules/.pnpm/is-generator-function@1.1.
|
|
18420
|
+
"../../node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18430
18421
|
var callBound = __webpack_require__("../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js");
|
|
18431
18422
|
var safeRegexTest = __webpack_require__("../../node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js");
|
|
18432
18423
|
var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
|
|
@@ -18434,13 +18425,7 @@ __webpack_require__.add({
|
|
|
18434
18425
|
var getProto = __webpack_require__("../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js");
|
|
18435
18426
|
var toStr = callBound('Object.prototype.toString');
|
|
18436
18427
|
var fnToStr = callBound('Function.prototype.toString');
|
|
18437
|
-
var
|
|
18438
|
-
if (!hasToStringTag) return false;
|
|
18439
|
-
try {
|
|
18440
|
-
return Function('return function*() {}')();
|
|
18441
|
-
} catch (e) {}
|
|
18442
|
-
};
|
|
18443
|
-
var GeneratorFunction;
|
|
18428
|
+
var getGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js");
|
|
18444
18429
|
module.exports = function(fn) {
|
|
18445
18430
|
if ('function' != typeof fn) return false;
|
|
18446
18431
|
if (isFnRegex(fnToStr(fn))) return true;
|
|
@@ -18449,11 +18434,8 @@ __webpack_require__.add({
|
|
|
18449
18434
|
return '[object GeneratorFunction]' === str;
|
|
18450
18435
|
}
|
|
18451
18436
|
if (!getProto) return false;
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
|
|
18455
|
-
}
|
|
18456
|
-
return getProto(fn) === GeneratorFunction;
|
|
18437
|
+
var GeneratorFunction = getGeneratorFunction();
|
|
18438
|
+
return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
|
|
18457
18439
|
};
|
|
18458
18440
|
},
|
|
18459
18441
|
"../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/implementation.js" (module) {
|
|
@@ -18536,7 +18518,7 @@ __webpack_require__.add({
|
|
|
18536
18518
|
module.exports = fn;
|
|
18537
18519
|
},
|
|
18538
18520
|
"../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18539
|
-
var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.
|
|
18521
|
+
var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js");
|
|
18540
18522
|
module.exports = function(value) {
|
|
18541
18523
|
return !!whichTypedArray(value);
|
|
18542
18524
|
};
|
|
@@ -18708,7 +18690,7 @@ __webpack_require__.add({
|
|
|
18708
18690
|
module.exports = MD5;
|
|
18709
18691
|
},
|
|
18710
18692
|
"../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18711
|
-
var bn = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
18693
|
+
var bn = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
18712
18694
|
var brorand = __webpack_require__("../../node_modules/.pnpm/brorand@1.1.0/node_modules/brorand/index.js");
|
|
18713
18695
|
function MillerRabin(rand) {
|
|
18714
18696
|
this.rand = rand || new brorand.Rand();
|
|
@@ -18721,7 +18703,7 @@ __webpack_require__.add({
|
|
|
18721
18703
|
var len = n.bitLength();
|
|
18722
18704
|
var min_bytes = Math.ceil(len / 8);
|
|
18723
18705
|
do var a = new bn(this.rand.generate(min_bytes));
|
|
18724
|
-
while (a.cmp(n) >= 0)
|
|
18706
|
+
while (a.cmp(n) >= 0)
|
|
18725
18707
|
return a;
|
|
18726
18708
|
};
|
|
18727
18709
|
MillerRabin.prototype._randrange = function(start, stop) {
|
|
@@ -19574,7 +19556,7 @@ __webpack_require__.add({
|
|
|
19574
19556
|
do {
|
|
19575
19557
|
s1 = s1 + buf[pos++] | 0;
|
|
19576
19558
|
s2 = s2 + s1 | 0;
|
|
19577
|
-
}while (--n)
|
|
19559
|
+
}while (--n)
|
|
19578
19560
|
s1 %= 65521;
|
|
19579
19561
|
s2 %= 65521;
|
|
19580
19562
|
}
|
|
@@ -19752,7 +19734,7 @@ __webpack_require__.add({
|
|
|
19752
19734
|
scan += 2;
|
|
19753
19735
|
match++;
|
|
19754
19736
|
do ;
|
|
19755
|
-
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend)
|
|
19737
|
+
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend)
|
|
19756
19738
|
len = MAX_MATCH - (strend - scan);
|
|
19757
19739
|
scan = strend - MAX_MATCH;
|
|
19758
19740
|
if (len > best_len) {
|
|
@@ -19762,7 +19744,7 @@ __webpack_require__.add({
|
|
|
19762
19744
|
scan_end1 = _win[scan + best_len - 1];
|
|
19763
19745
|
scan_end = _win[scan + best_len];
|
|
19764
19746
|
}
|
|
19765
|
-
}while ((cur_match = prev[cur_match & wmask]) > limit && 0 !== --chain_length)
|
|
19747
|
+
}while ((cur_match = prev[cur_match & wmask]) > limit && 0 !== --chain_length)
|
|
19766
19748
|
if (best_len <= s.lookahead) return best_len;
|
|
19767
19749
|
return s.lookahead;
|
|
19768
19750
|
}
|
|
@@ -19781,13 +19763,13 @@ __webpack_require__.add({
|
|
|
19781
19763
|
do {
|
|
19782
19764
|
m = s.head[--p];
|
|
19783
19765
|
s.head[p] = m >= _w_size ? m - _w_size : 0;
|
|
19784
|
-
}while (--n)
|
|
19766
|
+
}while (--n)
|
|
19785
19767
|
n = _w_size;
|
|
19786
19768
|
p = n;
|
|
19787
19769
|
do {
|
|
19788
19770
|
m = s.prev[--p];
|
|
19789
19771
|
s.prev[p] = m >= _w_size ? m - _w_size : 0;
|
|
19790
|
-
}while (--n)
|
|
19772
|
+
}while (--n)
|
|
19791
19773
|
more += _w_size;
|
|
19792
19774
|
}
|
|
19793
19775
|
if (0 === s.strm.avail_in) break;
|
|
@@ -19806,7 +19788,7 @@ __webpack_require__.add({
|
|
|
19806
19788
|
if (s.lookahead + s.insert < MIN_MATCH) break;
|
|
19807
19789
|
}
|
|
19808
19790
|
}
|
|
19809
|
-
}while (s.lookahead < MIN_LOOKAHEAD && 0 !== s.strm.avail_in)
|
|
19791
|
+
}while (s.lookahead < MIN_LOOKAHEAD && 0 !== s.strm.avail_in)
|
|
19810
19792
|
}
|
|
19811
19793
|
function deflate_stored(s, flush) {
|
|
19812
19794
|
var max_block_size = 0xffff;
|
|
@@ -19869,7 +19851,7 @@ __webpack_require__.add({
|
|
|
19869
19851
|
s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
|
|
19870
19852
|
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
19871
19853
|
s.head[s.ins_h] = s.strstart;
|
|
19872
|
-
}while (0 !== --s.match_length)
|
|
19854
|
+
}while (0 !== --s.match_length)
|
|
19873
19855
|
s.strstart++;
|
|
19874
19856
|
} else {
|
|
19875
19857
|
s.strstart += s.match_length;
|
|
@@ -19932,7 +19914,7 @@ __webpack_require__.add({
|
|
|
19932
19914
|
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
19933
19915
|
s.head[s.ins_h] = s.strstart;
|
|
19934
19916
|
}
|
|
19935
|
-
while (0 !== --s.prev_length)
|
|
19917
|
+
while (0 !== --s.prev_length)
|
|
19936
19918
|
s.match_available = 0;
|
|
19937
19919
|
s.match_length = MIN_MATCH - 1;
|
|
19938
19920
|
s.strstart++;
|
|
@@ -19986,7 +19968,7 @@ __webpack_require__.add({
|
|
|
19986
19968
|
if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
|
|
19987
19969
|
strend = s.strstart + MAX_MATCH;
|
|
19988
19970
|
do ;
|
|
19989
|
-
while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend)
|
|
19971
|
+
while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend)
|
|
19990
19972
|
s.match_length = MAX_MATCH - (strend - scan);
|
|
19991
19973
|
if (s.match_length > s.lookahead) s.match_length = s.lookahead;
|
|
19992
19974
|
}
|
|
@@ -20302,7 +20284,7 @@ __webpack_require__.add({
|
|
|
20302
20284
|
}
|
|
20303
20285
|
val = s.gzindex < s.gzhead.name.length ? 0xff & s.gzhead.name.charCodeAt(s.gzindex++) : 0;
|
|
20304
20286
|
put_byte(s, val);
|
|
20305
|
-
}while (0 !== val)
|
|
20287
|
+
}while (0 !== val)
|
|
20306
20288
|
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
20307
20289
|
if (0 === val) {
|
|
20308
20290
|
s.gzindex = 0;
|
|
@@ -20323,7 +20305,7 @@ __webpack_require__.add({
|
|
|
20323
20305
|
}
|
|
20324
20306
|
val = s.gzindex < s.gzhead.comment.length ? 0xff & s.gzhead.comment.charCodeAt(s.gzindex++) : 0;
|
|
20325
20307
|
put_byte(s, val);
|
|
20326
|
-
}while (0 !== val)
|
|
20308
|
+
}while (0 !== val)
|
|
20327
20309
|
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
20328
20310
|
if (0 === val) s.status = HCRC_STATE;
|
|
20329
20311
|
} else s.status = HCRC_STATE;
|
|
@@ -20440,7 +20422,7 @@ __webpack_require__.add({
|
|
|
20440
20422
|
s.prev[str & s.w_mask] = s.head[s.ins_h];
|
|
20441
20423
|
s.head[s.ins_h] = str;
|
|
20442
20424
|
str++;
|
|
20443
|
-
}while (--n)
|
|
20425
|
+
}while (--n)
|
|
20444
20426
|
s.strstart = str;
|
|
20445
20427
|
s.lookahead = MIN_MATCH - 1;
|
|
20446
20428
|
fill_window(s);
|
|
@@ -20588,7 +20570,7 @@ __webpack_require__.add({
|
|
|
20588
20570
|
if (op < len) {
|
|
20589
20571
|
len -= op;
|
|
20590
20572
|
do output[_out++] = s_window[from++];
|
|
20591
|
-
while (--op)
|
|
20573
|
+
while (--op)
|
|
20592
20574
|
from = _out - dist;
|
|
20593
20575
|
from_source = output;
|
|
20594
20576
|
}
|
|
@@ -20598,13 +20580,13 @@ __webpack_require__.add({
|
|
|
20598
20580
|
if (op < len) {
|
|
20599
20581
|
len -= op;
|
|
20600
20582
|
do output[_out++] = s_window[from++];
|
|
20601
|
-
while (--op)
|
|
20583
|
+
while (--op)
|
|
20602
20584
|
from = 0;
|
|
20603
20585
|
if (wnext < len) {
|
|
20604
20586
|
op = wnext;
|
|
20605
20587
|
len -= op;
|
|
20606
20588
|
do output[_out++] = s_window[from++];
|
|
20607
|
-
while (--op)
|
|
20589
|
+
while (--op)
|
|
20608
20590
|
from = _out - dist;
|
|
20609
20591
|
from_source = output;
|
|
20610
20592
|
}
|
|
@@ -20614,7 +20596,7 @@ __webpack_require__.add({
|
|
|
20614
20596
|
if (op < len) {
|
|
20615
20597
|
len -= op;
|
|
20616
20598
|
do output[_out++] = s_window[from++];
|
|
20617
|
-
while (--op)
|
|
20599
|
+
while (--op)
|
|
20618
20600
|
from = _out - dist;
|
|
20619
20601
|
from_source = output;
|
|
20620
20602
|
}
|
|
@@ -20636,7 +20618,7 @@ __webpack_require__.add({
|
|
|
20636
20618
|
output[_out++] = output[from++];
|
|
20637
20619
|
output[_out++] = output[from++];
|
|
20638
20620
|
len -= 3;
|
|
20639
|
-
}while (len > 2)
|
|
20621
|
+
}while (len > 2)
|
|
20640
20622
|
if (len) {
|
|
20641
20623
|
output[_out++] = output[from++];
|
|
20642
20624
|
if (len > 1) output[_out++] = output[from++];
|
|
@@ -20665,7 +20647,7 @@ __webpack_require__.add({
|
|
|
20665
20647
|
}
|
|
20666
20648
|
break;
|
|
20667
20649
|
}
|
|
20668
|
-
}while (_in < last && _out < end)
|
|
20650
|
+
}while (_in < last && _out < end)
|
|
20669
20651
|
len = bits >> 3;
|
|
20670
20652
|
_in -= len;
|
|
20671
20653
|
bits -= len << 3;
|
|
@@ -21105,7 +21087,7 @@ __webpack_require__.add({
|
|
|
21105
21087
|
do {
|
|
21106
21088
|
len = input[next + copy++];
|
|
21107
21089
|
if (state.head && len && state.length < 65536) state.head.name += String.fromCharCode(len);
|
|
21108
|
-
}while (len && copy < have)
|
|
21090
|
+
}while (len && copy < have)
|
|
21109
21091
|
if (0x0200 & state.flags) state.check = crc32(state.check, input, copy, next);
|
|
21110
21092
|
have -= copy;
|
|
21111
21093
|
next += copy;
|
|
@@ -21120,7 +21102,7 @@ __webpack_require__.add({
|
|
|
21120
21102
|
do {
|
|
21121
21103
|
len = input[next + copy++];
|
|
21122
21104
|
if (state.head && len && state.length < 65536) state.head.comment += String.fromCharCode(len);
|
|
21123
|
-
}while (len && copy < have)
|
|
21105
|
+
}while (len && copy < have)
|
|
21124
21106
|
if (0x0200 & state.flags) state.check = crc32(state.check, input, copy, next);
|
|
21125
21107
|
have -= copy;
|
|
21126
21108
|
next += copy;
|
|
@@ -21584,7 +21566,7 @@ __webpack_require__.add({
|
|
|
21584
21566
|
left -= copy;
|
|
21585
21567
|
state.length -= copy;
|
|
21586
21568
|
do output[put++] = from_source[from++];
|
|
21587
|
-
while (--copy)
|
|
21569
|
+
while (--copy)
|
|
21588
21570
|
if (0 === state.length) state.mode = LEN;
|
|
21589
21571
|
break;
|
|
21590
21572
|
case LIT:
|
|
@@ -21945,7 +21927,7 @@ __webpack_require__.add({
|
|
|
21945
21927
|
do {
|
|
21946
21928
|
fill -= incr;
|
|
21947
21929
|
table[next + (huff >> drop) + fill] = here_bits << 24 | here_op << 16 | here_val;
|
|
21948
|
-
}while (0 !== fill)
|
|
21930
|
+
}while (0 !== fill)
|
|
21949
21931
|
incr = 1 << len - 1;
|
|
21950
21932
|
while(huff & incr)incr >>= 1;
|
|
21951
21933
|
if (0 !== incr) {
|
|
@@ -22181,7 +22163,7 @@ __webpack_require__.add({
|
|
|
22181
22163
|
res |= 1 & code;
|
|
22182
22164
|
code >>>= 1;
|
|
22183
22165
|
res <<= 1;
|
|
22184
|
-
}while (--len > 0)
|
|
22166
|
+
}while (--len > 0)
|
|
22185
22167
|
return res >>> 1;
|
|
22186
22168
|
}
|
|
22187
22169
|
function bi_flush(s) {
|
|
@@ -22236,7 +22218,7 @@ __webpack_require__.add({
|
|
|
22236
22218
|
s.bl_count[bits + 1] += 2;
|
|
22237
22219
|
s.bl_count[max_length]--;
|
|
22238
22220
|
overflow -= 2;
|
|
22239
|
-
}while (overflow > 0)
|
|
22221
|
+
}while (overflow > 0)
|
|
22240
22222
|
for(bits = max_length; 0 !== bits; bits--){
|
|
22241
22223
|
n = s.bl_count[bits];
|
|
22242
22224
|
while(0 !== n){
|
|
@@ -22384,7 +22366,7 @@ __webpack_require__.add({
|
|
|
22384
22366
|
send_bits(s, dist, extra);
|
|
22385
22367
|
}
|
|
22386
22368
|
}
|
|
22387
|
-
}while (lx < s.last_lit)
|
|
22369
|
+
}while (lx < s.last_lit)
|
|
22388
22370
|
send_code(s, END_BLOCK, ltree);
|
|
22389
22371
|
}
|
|
22390
22372
|
function build_tree(s, desc) {
|
|
@@ -22423,7 +22405,7 @@ __webpack_require__.add({
|
|
|
22423
22405
|
tree[2 * n + 1] = tree[2 * m + 1] = node;
|
|
22424
22406
|
s.heap[1] = node++;
|
|
22425
22407
|
pqdownheap(s, tree, 1);
|
|
22426
|
-
}while (s.heap_len >= 2)
|
|
22408
|
+
}while (s.heap_len >= 2)
|
|
22427
22409
|
s.heap[--s.heap_max] = s.heap[1];
|
|
22428
22410
|
gen_bitlen(s, desc);
|
|
22429
22411
|
gen_codes(tree, max_code, s.bl_count);
|
|
@@ -22483,7 +22465,7 @@ __webpack_require__.add({
|
|
|
22483
22465
|
nextlen = tree[(n + 1) * 2 + 1];
|
|
22484
22466
|
if (!(++count < max_count) || curlen !== nextlen) {
|
|
22485
22467
|
if (count < min_count) do send_code(s, curlen, s.bl_tree);
|
|
22486
|
-
while (0 !== --count)
|
|
22468
|
+
while (0 !== --count)
|
|
22487
22469
|
else if (0 !== curlen) {
|
|
22488
22470
|
if (curlen !== prevlen) {
|
|
22489
22471
|
send_code(s, curlen, s.bl_tree);
|
|
@@ -23614,7 +23596,7 @@ __webpack_require__.add({
|
|
|
23614
23596
|
var parseKeys = __webpack_require__("../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/index.js");
|
|
23615
23597
|
var mgf = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/mgf.js");
|
|
23616
23598
|
var xor = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/xor.js");
|
|
23617
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
23599
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
23618
23600
|
var crt = __webpack_require__("../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js");
|
|
23619
23601
|
var createHash = __webpack_require__("../../node_modules/.pnpm/create-hash@1.2.0/node_modules/create-hash/browser.js");
|
|
23620
23602
|
var withPublic = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js");
|
|
@@ -23686,7 +23668,7 @@ __webpack_require__.add({
|
|
|
23686
23668
|
var createHash = __webpack_require__("../../node_modules/.pnpm/create-hash@1.2.0/node_modules/create-hash/browser.js");
|
|
23687
23669
|
var mgf = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/mgf.js");
|
|
23688
23670
|
var xor = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/xor.js");
|
|
23689
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
23671
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
23690
23672
|
var withPublic = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js");
|
|
23691
23673
|
var crt = __webpack_require__("../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js");
|
|
23692
23674
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
@@ -23761,7 +23743,7 @@ __webpack_require__.add({
|
|
|
23761
23743
|
}
|
|
23762
23744
|
},
|
|
23763
23745
|
"../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
23764
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
23746
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
23765
23747
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
23766
23748
|
function withPublic(paddedMsg, key) {
|
|
23767
23749
|
return Buffer.from(paddedMsg.toRed(BN.mont(key.modulus)).redPow(new BN(key.publicExponent)).fromRed().toArray());
|
|
@@ -23955,7 +23937,7 @@ __webpack_require__.add({
|
|
|
23955
23937
|
else root.punycode = punycode;
|
|
23956
23938
|
})(this);
|
|
23957
23939
|
},
|
|
23958
|
-
"../../node_modules/.pnpm/qs@6.
|
|
23940
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js" (module) {
|
|
23959
23941
|
var replace = String.prototype.replace;
|
|
23960
23942
|
var percentTwenties = /%20/g;
|
|
23961
23943
|
var Format = {
|
|
@@ -23976,18 +23958,18 @@ __webpack_require__.add({
|
|
|
23976
23958
|
RFC3986: Format.RFC3986
|
|
23977
23959
|
};
|
|
23978
23960
|
},
|
|
23979
|
-
"../../node_modules/.pnpm/qs@6.
|
|
23980
|
-
var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
23981
|
-
var parse = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
23982
|
-
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
23961
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
23962
|
+
var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/stringify.js");
|
|
23963
|
+
var parse = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/parse.js");
|
|
23964
|
+
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js");
|
|
23983
23965
|
module.exports = {
|
|
23984
23966
|
formats: formats,
|
|
23985
23967
|
parse: parse,
|
|
23986
23968
|
stringify: stringify
|
|
23987
23969
|
};
|
|
23988
23970
|
},
|
|
23989
|
-
"../../node_modules/.pnpm/qs@6.
|
|
23990
|
-
var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
23971
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
23972
|
+
var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/utils.js");
|
|
23991
23973
|
var has = Object.prototype.hasOwnProperty;
|
|
23992
23974
|
var isArray = Array.isArray;
|
|
23993
23975
|
var defaults = {
|
|
@@ -24010,6 +23992,7 @@ __webpack_require__.add({
|
|
|
24010
23992
|
parseArrays: true,
|
|
24011
23993
|
plainObjects: false,
|
|
24012
23994
|
strictDepth: false,
|
|
23995
|
+
strictMerge: true,
|
|
24013
23996
|
strictNullHandling: false,
|
|
24014
23997
|
throwOnLimitExceeded: false
|
|
24015
23998
|
};
|
|
@@ -24056,7 +24039,7 @@ __webpack_require__.add({
|
|
|
24056
24039
|
val = options.strictNullHandling ? null : '';
|
|
24057
24040
|
} else {
|
|
24058
24041
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
24059
|
-
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
24042
|
+
if (null !== key) val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
24060
24043
|
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
24061
24044
|
});
|
|
24062
24045
|
}
|
|
@@ -24064,9 +24047,15 @@ __webpack_require__.add({
|
|
|
24064
24047
|
if (part.indexOf('[]=') > -1) val = isArray(val) ? [
|
|
24065
24048
|
val
|
|
24066
24049
|
] : val;
|
|
24067
|
-
|
|
24068
|
-
|
|
24069
|
-
|
|
24050
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
24051
|
+
if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
|
|
24052
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
24053
|
+
}
|
|
24054
|
+
if (null !== key) {
|
|
24055
|
+
var existing = has.call(obj, key);
|
|
24056
|
+
if (existing && ('combine' === options.duplicates || part.indexOf('[]=') > -1)) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
|
|
24057
|
+
else if (!existing || 'last' === options.duplicates) obj[key] = val;
|
|
24058
|
+
}
|
|
24070
24059
|
}
|
|
24071
24060
|
return obj;
|
|
24072
24061
|
};
|
|
@@ -24080,7 +24069,7 @@ __webpack_require__.add({
|
|
|
24080
24069
|
for(var i = chain.length - 1; i >= 0; --i){
|
|
24081
24070
|
var obj;
|
|
24082
24071
|
var root = chain[i];
|
|
24083
|
-
if ('[]' === root && options.parseArrays) obj = options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf);
|
|
24072
|
+
if ('[]' === root && options.parseArrays) obj = utils.isOverflow(leaf) ? leaf : options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
|
|
24084
24073
|
else {
|
|
24085
24074
|
obj = options.plainObjects ? {
|
|
24086
24075
|
__proto__: null
|
|
@@ -24088,10 +24077,15 @@ __webpack_require__.add({
|
|
|
24088
24077
|
var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root;
|
|
24089
24078
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
24090
24079
|
var index = parseInt(decodedRoot, 10);
|
|
24080
|
+
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
24091
24081
|
if (options.parseArrays || '' !== decodedRoot) {
|
|
24092
|
-
if (
|
|
24082
|
+
if (isValidArrayIndex && index < options.arrayLimit) {
|
|
24093
24083
|
obj = [];
|
|
24094
24084
|
obj[index] = leaf;
|
|
24085
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
|
|
24086
|
+
else if (isValidArrayIndex) {
|
|
24087
|
+
obj[index] = leaf;
|
|
24088
|
+
utils.markOverflow(obj, index);
|
|
24095
24089
|
} else if ('__proto__' !== decodedRoot) obj[decodedRoot] = leaf;
|
|
24096
24090
|
} else obj = {
|
|
24097
24091
|
0: leaf
|
|
@@ -24101,32 +24095,46 @@ __webpack_require__.add({
|
|
|
24101
24095
|
}
|
|
24102
24096
|
return leaf;
|
|
24103
24097
|
};
|
|
24104
|
-
var
|
|
24105
|
-
if (!givenKey) return;
|
|
24098
|
+
var splitKeyIntoSegments = function(givenKey, options) {
|
|
24106
24099
|
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
24100
|
+
if (options.depth <= 0) {
|
|
24101
|
+
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
24102
|
+
if (!options.allowPrototypes) return;
|
|
24103
|
+
}
|
|
24104
|
+
return [
|
|
24105
|
+
key
|
|
24106
|
+
];
|
|
24107
|
+
}
|
|
24107
24108
|
var brackets = /(\[[^[\]]*])/;
|
|
24108
24109
|
var child = /(\[[^[\]]*])/g;
|
|
24109
|
-
var segment =
|
|
24110
|
+
var segment = brackets.exec(key);
|
|
24110
24111
|
var parent = segment ? key.slice(0, segment.index) : key;
|
|
24111
24112
|
var keys = [];
|
|
24112
24113
|
if (parent) {
|
|
24113
24114
|
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
24114
24115
|
if (!options.allowPrototypes) return;
|
|
24115
24116
|
}
|
|
24116
|
-
keys.
|
|
24117
|
+
keys[keys.length] = parent;
|
|
24117
24118
|
}
|
|
24118
24119
|
var i = 0;
|
|
24119
|
-
while(
|
|
24120
|
+
while(null !== (segment = child.exec(key)) && i < options.depth){
|
|
24120
24121
|
i += 1;
|
|
24121
|
-
|
|
24122
|
+
var segmentContent = segment[1].slice(1, -1);
|
|
24123
|
+
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
24122
24124
|
if (!options.allowPrototypes) return;
|
|
24123
24125
|
}
|
|
24124
|
-
keys.
|
|
24126
|
+
keys[keys.length] = segment[1];
|
|
24125
24127
|
}
|
|
24126
24128
|
if (segment) {
|
|
24127
24129
|
if (true === options.strictDepth) throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
|
|
24128
|
-
keys.
|
|
24130
|
+
keys[keys.length] = '[' + key.slice(segment.index) + ']';
|
|
24129
24131
|
}
|
|
24132
|
+
return keys;
|
|
24133
|
+
};
|
|
24134
|
+
var parseKeys = function(givenKey, val, options, valuesParsed) {
|
|
24135
|
+
if (!givenKey) return;
|
|
24136
|
+
var keys = splitKeyIntoSegments(givenKey, options);
|
|
24137
|
+
if (!keys) return;
|
|
24130
24138
|
return parseObject(keys, val, options, valuesParsed);
|
|
24131
24139
|
};
|
|
24132
24140
|
var normalizeParseOptions = function(opts) {
|
|
@@ -24160,6 +24168,7 @@ __webpack_require__.add({
|
|
|
24160
24168
|
parseArrays: false !== opts.parseArrays,
|
|
24161
24169
|
plainObjects: 'boolean' == typeof opts.plainObjects ? opts.plainObjects : defaults.plainObjects,
|
|
24162
24170
|
strictDepth: 'boolean' == typeof opts.strictDepth ? !!opts.strictDepth : defaults.strictDepth,
|
|
24171
|
+
strictMerge: 'boolean' == typeof opts.strictMerge ? !!opts.strictMerge : defaults.strictMerge,
|
|
24163
24172
|
strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
24164
24173
|
throwOnLimitExceeded: 'boolean' == typeof opts.throwOnLimitExceeded ? opts.throwOnLimitExceeded : false
|
|
24165
24174
|
};
|
|
@@ -24183,10 +24192,10 @@ __webpack_require__.add({
|
|
|
24183
24192
|
return utils.compact(obj);
|
|
24184
24193
|
};
|
|
24185
24194
|
},
|
|
24186
|
-
"../../node_modules/.pnpm/qs@6.
|
|
24195
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/stringify.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
24187
24196
|
var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js");
|
|
24188
|
-
var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
24189
|
-
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
24197
|
+
var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/utils.js");
|
|
24198
|
+
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js");
|
|
24190
24199
|
var has = Object.prototype.hasOwnProperty;
|
|
24191
24200
|
var arrayPrefixGenerators = {
|
|
24192
24201
|
brackets: function(prefix) {
|
|
@@ -24373,13 +24382,28 @@ __webpack_require__.add({
|
|
|
24373
24382
|
return joined.length > 0 ? prefix + joined : '';
|
|
24374
24383
|
};
|
|
24375
24384
|
},
|
|
24376
|
-
"../../node_modules/.pnpm/qs@6.
|
|
24377
|
-
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
24385
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
24386
|
+
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js");
|
|
24387
|
+
var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js");
|
|
24378
24388
|
var has = Object.prototype.hasOwnProperty;
|
|
24379
24389
|
var isArray = Array.isArray;
|
|
24390
|
+
var overflowChannel = getSideChannel();
|
|
24391
|
+
var markOverflow = function(obj, maxIndex) {
|
|
24392
|
+
overflowChannel.set(obj, maxIndex);
|
|
24393
|
+
return obj;
|
|
24394
|
+
};
|
|
24395
|
+
var isOverflow = function(obj) {
|
|
24396
|
+
return overflowChannel.has(obj);
|
|
24397
|
+
};
|
|
24398
|
+
var getMaxIndex = function(obj) {
|
|
24399
|
+
return overflowChannel.get(obj);
|
|
24400
|
+
};
|
|
24401
|
+
var setMaxIndex = function(obj, maxIndex) {
|
|
24402
|
+
overflowChannel.set(obj, maxIndex);
|
|
24403
|
+
};
|
|
24380
24404
|
var hexTable = function() {
|
|
24381
24405
|
var array = [];
|
|
24382
|
-
for(var i = 0; i < 256; ++i)array.
|
|
24406
|
+
for(var i = 0; i < 256; ++i)array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
|
|
24383
24407
|
return array;
|
|
24384
24408
|
}();
|
|
24385
24409
|
var compactQueue = function(queue) {
|
|
@@ -24388,7 +24412,7 @@ __webpack_require__.add({
|
|
|
24388
24412
|
var obj = item.obj[item.prop];
|
|
24389
24413
|
if (isArray(obj)) {
|
|
24390
24414
|
var compacted = [];
|
|
24391
|
-
for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted.
|
|
24415
|
+
for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted[compacted.length] = obj[j];
|
|
24392
24416
|
item.obj[item.prop] = compacted;
|
|
24393
24417
|
}
|
|
24394
24418
|
}
|
|
@@ -24403,17 +24427,46 @@ __webpack_require__.add({
|
|
|
24403
24427
|
var merge = function merge(target, source, options) {
|
|
24404
24428
|
if (!source) return target;
|
|
24405
24429
|
if ('object' != typeof source && 'function' != typeof source) {
|
|
24406
|
-
if (isArray(target))
|
|
24407
|
-
|
|
24430
|
+
if (isArray(target)) {
|
|
24431
|
+
var nextIndex = target.length;
|
|
24432
|
+
if (options && 'number' == typeof options.arrayLimit && nextIndex > options.arrayLimit) return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
24433
|
+
target[nextIndex] = source;
|
|
24434
|
+
} else if (!target || 'object' != typeof target) return [
|
|
24435
|
+
target,
|
|
24436
|
+
source
|
|
24437
|
+
];
|
|
24438
|
+
else if (isOverflow(target)) {
|
|
24439
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
24440
|
+
target[newIndex] = source;
|
|
24441
|
+
setMaxIndex(target, newIndex);
|
|
24442
|
+
} else if (options && options.strictMerge) return [
|
|
24408
24443
|
target,
|
|
24409
24444
|
source
|
|
24410
24445
|
];
|
|
24411
24446
|
else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) target[source] = true;
|
|
24412
24447
|
return target;
|
|
24413
24448
|
}
|
|
24414
|
-
if (!target || 'object' != typeof target)
|
|
24415
|
-
|
|
24416
|
-
|
|
24449
|
+
if (!target || 'object' != typeof target) {
|
|
24450
|
+
if (isOverflow(source)) {
|
|
24451
|
+
var sourceKeys = Object.keys(source);
|
|
24452
|
+
var result = options && options.plainObjects ? {
|
|
24453
|
+
__proto__: null,
|
|
24454
|
+
0: target
|
|
24455
|
+
} : {
|
|
24456
|
+
0: target
|
|
24457
|
+
};
|
|
24458
|
+
for(var m = 0; m < sourceKeys.length; m++){
|
|
24459
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
24460
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
24461
|
+
}
|
|
24462
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
24463
|
+
}
|
|
24464
|
+
var combined = [
|
|
24465
|
+
target
|
|
24466
|
+
].concat(source);
|
|
24467
|
+
if (options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit) return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
24468
|
+
return combined;
|
|
24469
|
+
}
|
|
24417
24470
|
var mergeTarget = target;
|
|
24418
24471
|
if (isArray(target) && !isArray(source)) mergeTarget = arrayToObject(target, options);
|
|
24419
24472
|
if (isArray(target) && isArray(source)) {
|
|
@@ -24421,7 +24474,7 @@ __webpack_require__.add({
|
|
|
24421
24474
|
if (has.call(target, i)) {
|
|
24422
24475
|
var targetItem = target[i];
|
|
24423
24476
|
if (targetItem && 'object' == typeof targetItem && item && 'object' == typeof item) target[i] = merge(targetItem, item, options);
|
|
24424
|
-
else target.
|
|
24477
|
+
else target[target.length] = item;
|
|
24425
24478
|
} else target[i] = item;
|
|
24426
24479
|
});
|
|
24427
24480
|
return target;
|
|
@@ -24430,6 +24483,11 @@ __webpack_require__.add({
|
|
|
24430
24483
|
var value = source[key];
|
|
24431
24484
|
if (has.call(acc, key)) acc[key] = merge(acc[key], value, options);
|
|
24432
24485
|
else acc[key] = value;
|
|
24486
|
+
if (isOverflow(source) && !isOverflow(acc)) markOverflow(acc, getMaxIndex(source));
|
|
24487
|
+
if (isOverflow(acc)) {
|
|
24488
|
+
var keyNum = parseInt(key, 10);
|
|
24489
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) setMaxIndex(acc, keyNum);
|
|
24490
|
+
}
|
|
24433
24491
|
return acc;
|
|
24434
24492
|
}, mergeTarget);
|
|
24435
24493
|
};
|
|
@@ -24505,11 +24563,11 @@ __webpack_require__.add({
|
|
|
24505
24563
|
var key = keys[j];
|
|
24506
24564
|
var val = obj[key];
|
|
24507
24565
|
if ('object' == typeof val && null !== val && -1 === refs.indexOf(val)) {
|
|
24508
|
-
queue.
|
|
24566
|
+
queue[queue.length] = {
|
|
24509
24567
|
obj: obj,
|
|
24510
24568
|
prop: key
|
|
24511
|
-
}
|
|
24512
|
-
refs.
|
|
24569
|
+
};
|
|
24570
|
+
refs[refs.length] = val;
|
|
24513
24571
|
}
|
|
24514
24572
|
}
|
|
24515
24573
|
}
|
|
@@ -24523,13 +24581,23 @@ __webpack_require__.add({
|
|
|
24523
24581
|
if (!obj || 'object' != typeof obj) return false;
|
|
24524
24582
|
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
24525
24583
|
};
|
|
24526
|
-
var combine = function(a, b) {
|
|
24527
|
-
|
|
24584
|
+
var combine = function(a, b, arrayLimit, plainObjects) {
|
|
24585
|
+
if (isOverflow(a)) {
|
|
24586
|
+
var newIndex = getMaxIndex(a) + 1;
|
|
24587
|
+
a[newIndex] = b;
|
|
24588
|
+
setMaxIndex(a, newIndex);
|
|
24589
|
+
return a;
|
|
24590
|
+
}
|
|
24591
|
+
var result = [].concat(a, b);
|
|
24592
|
+
if (result.length > arrayLimit) return markOverflow(arrayToObject(result, {
|
|
24593
|
+
plainObjects: plainObjects
|
|
24594
|
+
}), result.length - 1);
|
|
24595
|
+
return result;
|
|
24528
24596
|
};
|
|
24529
24597
|
var maybeMap = function(val, fn) {
|
|
24530
24598
|
if (isArray(val)) {
|
|
24531
24599
|
var mapped = [];
|
|
24532
|
-
for(var i = 0; i < val.length; i += 1)mapped.
|
|
24600
|
+
for(var i = 0; i < val.length; i += 1)mapped[mapped.length] = fn(val[i]);
|
|
24533
24601
|
return mapped;
|
|
24534
24602
|
}
|
|
24535
24603
|
return fn(val);
|
|
@@ -24542,7 +24610,9 @@ __webpack_require__.add({
|
|
|
24542
24610
|
decode: decode,
|
|
24543
24611
|
encode: encode,
|
|
24544
24612
|
isBuffer: isBuffer,
|
|
24613
|
+
isOverflow: isOverflow,
|
|
24545
24614
|
isRegExp: isRegExp,
|
|
24615
|
+
markOverflow: markOverflow,
|
|
24546
24616
|
maybeMap: maybeMap,
|
|
24547
24617
|
merge: merge
|
|
24548
24618
|
};
|
|
@@ -24874,7 +24944,7 @@ __webpack_require__.add({
|
|
|
24874
24944
|
this.decoder = null;
|
|
24875
24945
|
this.encoding = null;
|
|
24876
24946
|
if (options.encoding) {
|
|
24877
|
-
if (!StringDecoder) StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js").
|
|
24947
|
+
if (!StringDecoder) StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js").I;
|
|
24878
24948
|
this.decoder = new StringDecoder(options.encoding);
|
|
24879
24949
|
this.encoding = options.encoding;
|
|
24880
24950
|
}
|
|
@@ -24973,7 +25043,7 @@ __webpack_require__.add({
|
|
|
24973
25043
|
return false === this._readableState.flowing;
|
|
24974
25044
|
};
|
|
24975
25045
|
Readable.prototype.setEncoding = function(enc) {
|
|
24976
|
-
if (!StringDecoder) StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js").
|
|
25046
|
+
if (!StringDecoder) StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js").I;
|
|
24977
25047
|
this._readableState.decoder = new StringDecoder(enc);
|
|
24978
25048
|
this._readableState.encoding = enc;
|
|
24979
25049
|
return this;
|
|
@@ -26154,7 +26224,7 @@ __webpack_require__.add({
|
|
|
26154
26224
|
return 'Unknown encoding: ' + arg;
|
|
26155
26225
|
}, TypeError);
|
|
26156
26226
|
createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
|
|
26157
|
-
module.exports.
|
|
26227
|
+
module.exports.F = codes;
|
|
26158
26228
|
},
|
|
26159
26229
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
26160
26230
|
var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
@@ -26260,7 +26330,7 @@ __webpack_require__.add({
|
|
|
26260
26330
|
var BufferList = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js");
|
|
26261
26331
|
var destroyImpl = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js");
|
|
26262
26332
|
var _require = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js"), getHighWaterMark = _require.getHighWaterMark;
|
|
26263
|
-
var _require$codes = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").
|
|
26333
|
+
var _require$codes = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").F, ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
26264
26334
|
var StringDecoder;
|
|
26265
26335
|
var createReadableStreamAsyncIterator;
|
|
26266
26336
|
var from;
|
|
@@ -26312,7 +26382,7 @@ __webpack_require__.add({
|
|
|
26312
26382
|
this.decoder = null;
|
|
26313
26383
|
this.encoding = null;
|
|
26314
26384
|
if (options.encoding) {
|
|
26315
|
-
if (!StringDecoder) StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js").
|
|
26385
|
+
if (!StringDecoder) StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js").I;
|
|
26316
26386
|
this.decoder = new StringDecoder(options.encoding);
|
|
26317
26387
|
this.encoding = options.encoding;
|
|
26318
26388
|
}
|
|
@@ -26418,7 +26488,7 @@ __webpack_require__.add({
|
|
|
26418
26488
|
return false === this._readableState.flowing;
|
|
26419
26489
|
};
|
|
26420
26490
|
Readable.prototype.setEncoding = function(enc) {
|
|
26421
|
-
if (!StringDecoder) StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js").
|
|
26491
|
+
if (!StringDecoder) StringDecoder = __webpack_require__("../../node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js").I;
|
|
26422
26492
|
var decoder = new StringDecoder(enc);
|
|
26423
26493
|
this._readableState.decoder = decoder;
|
|
26424
26494
|
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
@@ -26898,7 +26968,7 @@ __webpack_require__.add({
|
|
|
26898
26968
|
},
|
|
26899
26969
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
26900
26970
|
module.exports = Transform;
|
|
26901
|
-
var _require$codes = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").
|
|
26971
|
+
var _require$codes = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").F, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
|
|
26902
26972
|
var Duplex = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js");
|
|
26903
26973
|
__webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js")(Transform, Duplex);
|
|
26904
26974
|
function afterTransform(er, data) {
|
|
@@ -27005,7 +27075,7 @@ __webpack_require__.add({
|
|
|
27005
27075
|
}
|
|
27006
27076
|
var destroyImpl = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js");
|
|
27007
27077
|
var _require = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js"), getHighWaterMark = _require.getHighWaterMark;
|
|
27008
|
-
var _require$codes = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").
|
|
27078
|
+
var _require$codes = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").F, ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
|
|
27009
27079
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
27010
27080
|
__webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js")(Writable, Stream);
|
|
27011
27081
|
function nop() {}
|
|
@@ -27876,7 +27946,7 @@ __webpack_require__.add({
|
|
|
27876
27946
|
};
|
|
27877
27947
|
},
|
|
27878
27948
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
27879
|
-
var ERR_STREAM_PREMATURE_CLOSE = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").
|
|
27949
|
+
var ERR_STREAM_PREMATURE_CLOSE = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").F.ERR_STREAM_PREMATURE_CLOSE;
|
|
27880
27950
|
function once(callback) {
|
|
27881
27951
|
var called = false;
|
|
27882
27952
|
return function() {
|
|
@@ -27971,7 +28041,7 @@ __webpack_require__.add({
|
|
|
27971
28041
|
callback.apply(void 0, arguments);
|
|
27972
28042
|
};
|
|
27973
28043
|
}
|
|
27974
|
-
var _require$codes = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").
|
|
28044
|
+
var _require$codes = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").F, ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
|
27975
28045
|
function noop(err) {
|
|
27976
28046
|
if (err) throw err;
|
|
27977
28047
|
}
|
|
@@ -28036,7 +28106,7 @@ __webpack_require__.add({
|
|
|
28036
28106
|
module.exports = pipeline;
|
|
28037
28107
|
},
|
|
28038
28108
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
28039
|
-
var ERR_INVALID_OPT_VALUE = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").
|
|
28109
|
+
var ERR_INVALID_OPT_VALUE = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js").F.ERR_INVALID_OPT_VALUE;
|
|
28040
28110
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
28041
28111
|
return null != options.highWaterMark ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
28042
28112
|
}
|
|
@@ -30222,7 +30292,7 @@ __webpack_require__.add({
|
|
|
30222
30292
|
if ('string' != typeof nenc && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
|
|
30223
30293
|
return nenc || enc;
|
|
30224
30294
|
}
|
|
30225
|
-
exports.
|
|
30295
|
+
exports.I = StringDecoder;
|
|
30226
30296
|
function StringDecoder(encoding) {
|
|
30227
30297
|
this.encoding = normalizeEncoding(encoding);
|
|
30228
30298
|
var nb;
|
|
@@ -30448,7 +30518,7 @@ __webpack_require__.add({
|
|
|
30448
30518
|
if ('string' != typeof nenc && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
|
|
30449
30519
|
return nenc || enc;
|
|
30450
30520
|
}
|
|
30451
|
-
exports.
|
|
30521
|
+
exports.I = StringDecoder;
|
|
30452
30522
|
function StringDecoder(encoding) {
|
|
30453
30523
|
this.encoding = normalizeEncoding(encoding);
|
|
30454
30524
|
var nb;
|
|
@@ -30735,7 +30805,7 @@ __webpack_require__.add({
|
|
|
30735
30805
|
'ftp:': true,
|
|
30736
30806
|
'gopher:': true,
|
|
30737
30807
|
'file:': true
|
|
30738
|
-
}, querystring = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
30808
|
+
}, querystring = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/index.js");
|
|
30739
30809
|
function urlParse(url, parseQueryString, slashesDenoteHost) {
|
|
30740
30810
|
if (url && 'object' == typeof url && url instanceof Url) return url;
|
|
30741
30811
|
var u = new Url();
|
|
@@ -31129,8 +31199,8 @@ __webpack_require__.add({
|
|
|
31129
31199
|
},
|
|
31130
31200
|
"../../node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
31131
31201
|
var isArgumentsObject = __webpack_require__("../../node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js");
|
|
31132
|
-
var isGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/is-generator-function@1.1.
|
|
31133
|
-
var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.
|
|
31202
|
+
var isGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js");
|
|
31203
|
+
var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js");
|
|
31134
31204
|
var isTypedArray = __webpack_require__("../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js");
|
|
31135
31205
|
function uncurryThis(f) {
|
|
31136
31206
|
return f.call.bind(f);
|
|
@@ -32558,7 +32628,7 @@ __webpack_require__.add({
|
|
|
32558
32628
|
do {
|
|
32559
32629
|
parent.entries += node.entries;
|
|
32560
32630
|
parent = parent.parent;
|
|
32561
|
-
}while (parent)
|
|
32631
|
+
}while (parent)
|
|
32562
32632
|
}
|
|
32563
32633
|
}
|
|
32564
32634
|
}
|
|
@@ -32850,9 +32920,6 @@ __webpack_require__.add({
|
|
|
32850
32920
|
execute();
|
|
32851
32921
|
}
|
|
32852
32922
|
};
|
|
32853
|
-
exports.getNumberOfWatchers = ()=>watcherCount;
|
|
32854
|
-
exports.createHandleChangeEvent = createHandleChangeEvent;
|
|
32855
|
-
exports.watcherLimit = watcherLimit;
|
|
32856
32923
|
},
|
|
32857
32924
|
"../../node_modules/.pnpm/watchpack@2.4.4/node_modules/watchpack/lib/watchpack.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
32858
32925
|
const getWatcherManager = __webpack_require__("../../node_modules/.pnpm/watchpack@2.4.4/node_modules/watchpack/lib/getWatcherManager.js");
|
|
@@ -33982,7 +34049,7 @@ __webpack_require__.add({
|
|
|
33982
34049
|
}
|
|
33983
34050
|
generatedColumn += offset;
|
|
33984
34051
|
}
|
|
33985
|
-
}while (nextReplacement < endPos)
|
|
34052
|
+
}while (nextReplacement < endPos)
|
|
33986
34053
|
if (chunkPos < chunk.length) {
|
|
33987
34054
|
const chunkSlice = 0 === chunkPos ? chunk : chunk.slice(chunkPos);
|
|
33988
34055
|
const line = generatedLine + generatedLineOffset;
|
|
@@ -35137,7 +35204,7 @@ __webpack_require__.add({
|
|
|
35137
35204
|
}
|
|
35138
35205
|
});
|
|
35139
35206
|
},
|
|
35140
|
-
"../../node_modules/.pnpm/which-typed-array@1.1.
|
|
35207
|
+
"../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
35141
35208
|
var forEach = __webpack_require__("../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js");
|
|
35142
35209
|
var availableTypedArrays = __webpack_require__("../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js");
|
|
35143
35210
|
var callBind = __webpack_require__("../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js");
|
|
@@ -35165,12 +35232,18 @@ __webpack_require__.add({
|
|
|
35165
35232
|
var superProto = getProto(proto);
|
|
35166
35233
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
35167
35234
|
}
|
|
35168
|
-
|
|
35235
|
+
if (descriptor && descriptor.get) {
|
|
35236
|
+
var bound = callBind(descriptor.get);
|
|
35237
|
+
cache['$' + typedArray] = bound;
|
|
35238
|
+
}
|
|
35169
35239
|
}
|
|
35170
35240
|
}) : forEach(typedArrays, function(typedArray) {
|
|
35171
35241
|
var arr = new g[typedArray]();
|
|
35172
35242
|
var fn = arr.slice || arr.set;
|
|
35173
|
-
if (fn)
|
|
35243
|
+
if (fn) {
|
|
35244
|
+
var bound = callBind(fn);
|
|
35245
|
+
cache['$' + typedArray] = bound;
|
|
35246
|
+
}
|
|
35174
35247
|
});
|
|
35175
35248
|
var tryTypedArrays = function(value) {
|
|
35176
35249
|
var found = false;
|
|
@@ -35237,18 +35310,18 @@ __webpack_require__.add({
|
|
|
35237
35310
|
watch: ()=>watch
|
|
35238
35311
|
});
|
|
35239
35312
|
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.7/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35240
|
-
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding");
|
|
35313
|
+
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?91dc");
|
|
35241
35314
|
const fs = _rspack_binding__rspack_import_1.__fs;
|
|
35242
35315
|
const volume = _rspack_binding__rspack_import_1.__volume;
|
|
35243
35316
|
const memfs = _napi_rs_wasm_runtime_fs__rspack_import_0.tO;
|
|
35244
35317
|
const { readFileSync, readdirSync, lstat, existsSync, readdir, watch } = fs;
|
|
35245
35318
|
const __rspack_default_export = fs;
|
|
35246
35319
|
},
|
|
35247
|
-
"@rspack/binding" (module) {
|
|
35320
|
+
"@rspack/binding?91dc" (module) {
|
|
35248
35321
|
module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
|
|
35249
35322
|
},
|
|
35250
|
-
"?
|
|
35251
|
-
"?
|
|
35323
|
+
"?7763" () {},
|
|
35324
|
+
"?5658" () {},
|
|
35252
35325
|
"?69f8" () {},
|
|
35253
35326
|
"?f42a" () {},
|
|
35254
35327
|
"?5f4e" () {},
|
|
@@ -38375,7 +38448,7 @@ __webpack_require__.add({
|
|
|
38375
38448
|
const getuid = ()=>process_1.default.getuid?.() ?? 0;
|
|
38376
38449
|
const getgid = ()=>process_1.default.getgid?.() ?? 0;
|
|
38377
38450
|
let Node$1 = class {
|
|
38378
|
-
constructor(ino, mode =
|
|
38451
|
+
constructor(ino, mode = 0o666){
|
|
38379
38452
|
this.changes = new fanout_1.FanOut();
|
|
38380
38453
|
this._uid = getuid();
|
|
38381
38454
|
this._gid = getgid();
|
|
@@ -38470,7 +38543,7 @@ __webpack_require__.add({
|
|
|
38470
38543
|
return (this.mode & S_IFMT) === S_IFCHR;
|
|
38471
38544
|
}
|
|
38472
38545
|
makeSymlink(symlink) {
|
|
38473
|
-
this.mode =
|
|
38546
|
+
this.mode = 0o666 | S_IFLNK;
|
|
38474
38547
|
this.symlink = symlink;
|
|
38475
38548
|
}
|
|
38476
38549
|
write(buf, off = 0, len = buf.length, pos = 0) {
|
|
@@ -38615,7 +38688,7 @@ __webpack_require__.add({
|
|
|
38615
38688
|
getNode() {
|
|
38616
38689
|
return this.node;
|
|
38617
38690
|
}
|
|
38618
|
-
createChild(name, node = this.vol.createNode(
|
|
38691
|
+
createChild(name, node = this.vol.createNode(0o666 | S_IFREG)) {
|
|
38619
38692
|
const link = new Link(this.vol, this, name);
|
|
38620
38693
|
link.setNode(node);
|
|
38621
38694
|
if (node.isDirectory()) {
|
|
@@ -42093,7 +42166,7 @@ __webpack_require__.add({
|
|
|
42093
42166
|
this.closeFile(file);
|
|
42094
42167
|
};
|
|
42095
42168
|
const root = this.createLink();
|
|
42096
|
-
root.setNode(this.createNode(
|
|
42169
|
+
root.setNode(this.createNode(0o777 | constants_1.constants.S_IFDIR));
|
|
42097
42170
|
root.setChild('.', root);
|
|
42098
42171
|
root.getNode().nlink++;
|
|
42099
42172
|
root.setChild('..', root);
|
|
@@ -42103,7 +42176,7 @@ __webpack_require__.add({
|
|
|
42103
42176
|
createLink(parent, name, isDirectory = false, mode) {
|
|
42104
42177
|
if (!parent) return new Link_1.Link(this, void 0, '');
|
|
42105
42178
|
if (!name) throw new Error('createLink: name cannot be empty');
|
|
42106
|
-
const finalPerm = mode ?? (isDirectory ?
|
|
42179
|
+
const finalPerm = mode ?? (isDirectory ? 0o777 : 0o666);
|
|
42107
42180
|
const hasFileType = mode && mode & constants_1.constants.S_IFMT;
|
|
42108
42181
|
const modeType = hasFileType ? mode & constants_1.constants.S_IFMT : isDirectory ? constants_1.constants.S_IFDIR : constants_1.constants.S_IFREG;
|
|
42109
42182
|
const finalMode = finalPerm & ~constants_1.constants.S_IFMT | modeType;
|
|
@@ -42283,7 +42356,7 @@ __webpack_require__.add({
|
|
|
42283
42356
|
this.releasedFds = [];
|
|
42284
42357
|
this.openFiles = 0;
|
|
42285
42358
|
this.root = this.createLink();
|
|
42286
|
-
this.root.setNode(this.createNode(
|
|
42359
|
+
this.root.setNode(this.createNode(0o777 | constants_1.constants.S_IFDIR));
|
|
42287
42360
|
}
|
|
42288
42361
|
mountSync(mountpoint, json) {
|
|
42289
42362
|
this.fromJSON(json, mountpoint);
|
|
@@ -42321,7 +42394,7 @@ __webpack_require__.add({
|
|
|
42321
42394
|
const dirNode = dirLink.getNode();
|
|
42322
42395
|
if (!dirNode.isDirectory()) throw (0, util_1.createError)("ENOTDIR", 'open', filename);
|
|
42323
42396
|
if (!dirNode.canExecute() || !dirNode.canWrite()) throw (0, util_1.createError)("EACCES", 'open', filename);
|
|
42324
|
-
modeNum ?? (modeNum =
|
|
42397
|
+
modeNum ?? (modeNum = 0o666);
|
|
42325
42398
|
link = this.createLink(dirLink, steps[steps.length - 1], false, modeNum);
|
|
42326
42399
|
} else throw err;
|
|
42327
42400
|
}
|
|
@@ -44274,7 +44347,7 @@ __webpack_require__.add({
|
|
|
44274
44347
|
break;
|
|
44275
44348
|
}
|
|
44276
44349
|
++c;
|
|
44277
|
-
}while (null !== (p = p.next))
|
|
44350
|
+
}while (null !== (p = p.next))
|
|
44278
44351
|
this.length -= c;
|
|
44279
44352
|
return ret;
|
|
44280
44353
|
}
|
|
@@ -44302,7 +44375,7 @@ __webpack_require__.add({
|
|
|
44302
44375
|
break;
|
|
44303
44376
|
}
|
|
44304
44377
|
++c;
|
|
44305
|
-
}while (null !== (p = p.next))
|
|
44378
|
+
}while (null !== (p = p.next))
|
|
44306
44379
|
this.length -= c;
|
|
44307
44380
|
return ret;
|
|
44308
44381
|
}
|
|
@@ -45838,7 +45911,7 @@ __webpack_require__.add({
|
|
|
45838
45911
|
buffered[i++] = null;
|
|
45839
45912
|
const len = objectMode ? 1 : chunk.length;
|
|
45840
45913
|
doWrite(stream, state, false, len, chunk, encoding, callback);
|
|
45841
|
-
}while (i < buffered.length && !state.writing)
|
|
45914
|
+
}while (i < buffered.length && !state.writing)
|
|
45842
45915
|
if (i === buffered.length) resetBuffer(state);
|
|
45843
45916
|
else if (i > 256) {
|
|
45844
45917
|
buffered.splice(0, i);
|
|
@@ -48202,7 +48275,7 @@ __webpack_require__.add({
|
|
|
48202
48275
|
({ done, value } = iteratorInfo[iteratorInfo.length - 1].next());
|
|
48203
48276
|
if (done) break;
|
|
48204
48277
|
[name, link] = value;
|
|
48205
|
-
}while ('.' === name || '..' === name)
|
|
48278
|
+
}while ('.' === name || '..' === name)
|
|
48206
48279
|
if (done) {
|
|
48207
48280
|
iteratorInfo.pop();
|
|
48208
48281
|
if (0 === iteratorInfo.length) break;
|
|
@@ -48211,7 +48284,7 @@ __webpack_require__.add({
|
|
|
48211
48284
|
if (this.options.recursive && link.children.size) iteratorInfo.push(link.children[Symbol.iterator]());
|
|
48212
48285
|
return Dirent_1.default.build(link, this.options.encoding);
|
|
48213
48286
|
}
|
|
48214
|
-
}while (!done)
|
|
48287
|
+
}while (!done)
|
|
48215
48288
|
return null;
|
|
48216
48289
|
}
|
|
48217
48290
|
close(callback) {
|
|
@@ -49108,7 +49181,7 @@ __webpack_require__.add({
|
|
|
49108
49181
|
};
|
|
49109
49182
|
this.mkdirSync = (path, options)=>{
|
|
49110
49183
|
const opts = (0, options_1.getMkdirOptions)(options);
|
|
49111
|
-
const modeNum = (0, util_2.modeToNumber)(opts.mode,
|
|
49184
|
+
const modeNum = (0, util_2.modeToNumber)(opts.mode, 0o777);
|
|
49112
49185
|
const filename = (0, util_2.pathToFilename)(path);
|
|
49113
49186
|
if (opts.recursive) return this._core.mkdirp(filename, modeNum);
|
|
49114
49187
|
this._core.mkdir(filename, modeNum);
|
|
@@ -49116,7 +49189,7 @@ __webpack_require__.add({
|
|
|
49116
49189
|
this.mkdir = (path, a, b)=>{
|
|
49117
49190
|
const opts = (0, options_1.getMkdirOptions)(a);
|
|
49118
49191
|
const callback = (0, util_2.validateCallback)('function' == typeof a ? a : b);
|
|
49119
|
-
const modeNum = (0, util_2.modeToNumber)(opts.mode,
|
|
49192
|
+
const modeNum = (0, util_2.modeToNumber)(opts.mode, 0o777);
|
|
49120
49193
|
const filename = (0, util_2.pathToFilename)(path);
|
|
49121
49194
|
if (opts.recursive) this.wrapAsync(this._core.mkdirp, [
|
|
49122
49195
|
filename,
|
|
@@ -49705,7 +49778,7 @@ __webpack_require__.add({
|
|
|
49705
49778
|
this.path = (0, util_2.pathToFilename)(path);
|
|
49706
49779
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
49707
49780
|
this.flags = void 0 === options.flags ? 'r' : options.flags;
|
|
49708
|
-
this.mode = void 0 === options.mode ?
|
|
49781
|
+
this.mode = void 0 === options.mode ? 0o666 : options.mode;
|
|
49709
49782
|
this.start = options.start;
|
|
49710
49783
|
this.end = options.end;
|
|
49711
49784
|
this.autoClose = void 0 === options.autoClose ? true : options.autoClose;
|
|
@@ -49801,7 +49874,7 @@ __webpack_require__.add({
|
|
|
49801
49874
|
this.path = (0, util_2.pathToFilename)(path);
|
|
49802
49875
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
49803
49876
|
this.flags = void 0 === options.flags ? 'w' : options.flags;
|
|
49804
|
-
this.mode = void 0 === options.mode ?
|
|
49877
|
+
this.mode = void 0 === options.mode ? 0o666 : options.mode;
|
|
49805
49878
|
this.start = options.start;
|
|
49806
49879
|
this.autoClose = void 0 === options.autoClose ? true : !!options.autoClose;
|
|
49807
49880
|
this.pos = void 0;
|
|
@@ -50217,29 +50290,29 @@ __webpack_require__.d(browserslistTargetHandler_namespaceObject, {
|
|
|
50217
50290
|
var exports_namespaceObject = {};
|
|
50218
50291
|
__webpack_require__.r(exports_namespaceObject);
|
|
50219
50292
|
__webpack_require__.d(exports_namespaceObject, {
|
|
50220
|
-
AsyncDependenciesBlock: ()=>
|
|
50293
|
+
AsyncDependenciesBlock: ()=>AsyncDependenciesBlock,
|
|
50221
50294
|
BannerPlugin: ()=>BannerPlugin,
|
|
50222
50295
|
CaseSensitivePlugin: ()=>CaseSensitivePlugin,
|
|
50223
50296
|
CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
|
|
50224
50297
|
Compilation: ()=>Compilation,
|
|
50225
50298
|
Compiler: ()=>Compiler,
|
|
50226
|
-
ConcatenatedModule: ()=>
|
|
50227
|
-
ContextModule: ()=>
|
|
50299
|
+
ConcatenatedModule: ()=>ConcatenatedModule,
|
|
50300
|
+
ContextModule: ()=>ContextModule,
|
|
50228
50301
|
ContextReplacementPlugin: ()=>ContextReplacementPlugin,
|
|
50229
50302
|
CopyRspackPlugin: ()=>CopyRspackPlugin,
|
|
50230
50303
|
CssExtractRspackPlugin: ()=>CssExtractRspackPlugin,
|
|
50231
50304
|
DefinePlugin: ()=>DefinePlugin,
|
|
50232
|
-
Dependency: ()=>
|
|
50305
|
+
Dependency: ()=>Dependency,
|
|
50233
50306
|
DllPlugin: ()=>DllPlugin,
|
|
50234
50307
|
DllReferencePlugin: ()=>DllReferencePlugin,
|
|
50235
50308
|
DynamicEntryPlugin: ()=>DynamicEntryPlugin,
|
|
50236
|
-
EntryDependency: ()=>
|
|
50309
|
+
EntryDependency: ()=>EntryDependency,
|
|
50237
50310
|
EntryOptionPlugin: ()=>lib_EntryOptionPlugin,
|
|
50238
50311
|
EntryPlugin: ()=>EntryPlugin,
|
|
50239
50312
|
EnvironmentPlugin: ()=>EnvironmentPlugin,
|
|
50240
50313
|
EvalDevToolModulePlugin: ()=>EvalDevToolModulePlugin,
|
|
50241
50314
|
EvalSourceMapDevToolPlugin: ()=>EvalSourceMapDevToolPlugin,
|
|
50242
|
-
ExternalModule: ()=>
|
|
50315
|
+
ExternalModule: ()=>ExternalModule,
|
|
50243
50316
|
ExternalsPlugin: ()=>ExternalsPlugin,
|
|
50244
50317
|
HotModuleReplacementPlugin: ()=>HotModuleReplacementPlugin,
|
|
50245
50318
|
HtmlRspackPlugin: ()=>HtmlRspackPlugin,
|
|
@@ -50247,12 +50320,12 @@ __webpack_require__.d(exports_namespaceObject, {
|
|
|
50247
50320
|
LightningCssMinimizerRspackPlugin: ()=>LightningCssMinimizerRspackPlugin,
|
|
50248
50321
|
LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
|
|
50249
50322
|
LoaderTargetPlugin: ()=>LoaderTargetPlugin,
|
|
50250
|
-
Module: ()=>
|
|
50323
|
+
Module: ()=>Module,
|
|
50251
50324
|
ModuleFilenameHelpers: ()=>ModuleFilenameHelpers_namespaceObject,
|
|
50252
50325
|
MultiCompiler: ()=>MultiCompiler,
|
|
50253
50326
|
MultiStats: ()=>MultiStats,
|
|
50254
50327
|
NoEmitOnErrorsPlugin: ()=>NoEmitOnErrorsPlugin,
|
|
50255
|
-
NormalModule: ()=>
|
|
50328
|
+
NormalModule: ()=>NormalModule,
|
|
50256
50329
|
NormalModuleReplacementPlugin: ()=>NormalModuleReplacementPlugin,
|
|
50257
50330
|
ProgressPlugin: ()=>ProgressPlugin,
|
|
50258
50331
|
ProvidePlugin: ()=>ProvidePlugin,
|
|
@@ -50280,7 +50353,7 @@ __webpack_require__.d(exports_namespaceObject, {
|
|
|
50280
50353
|
optimize: ()=>optimize,
|
|
50281
50354
|
rspackVersion: ()=>exports_rspackVersion,
|
|
50282
50355
|
sharing: ()=>sharing,
|
|
50283
|
-
sources: ()=>
|
|
50356
|
+
sources: ()=>webpack_sources_lib,
|
|
50284
50357
|
util: ()=>util,
|
|
50285
50358
|
version: ()=>exports_version,
|
|
50286
50359
|
wasm: ()=>exports_wasm,
|
|
@@ -50294,6 +50367,17 @@ __webpack_require__.d(ModuleFilenameHelpers_namespaceObject, {
|
|
|
50294
50367
|
matchObject: ()=>matchObject,
|
|
50295
50368
|
matchPart: ()=>matchPart
|
|
50296
50369
|
});
|
|
50370
|
+
var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
50371
|
+
function checkNodeVersion() {
|
|
50372
|
+
const { node, bun, deno } = process.versions;
|
|
50373
|
+
if (!node || bun || deno) return;
|
|
50374
|
+
const [majorStr, minorStr] = node.split('.');
|
|
50375
|
+
const major = parseInt(majorStr, 10);
|
|
50376
|
+
const minor = parseInt(minorStr || '0', 10);
|
|
50377
|
+
const supported = 20 === major && minor >= 19 || 22 === major && minor >= 12 || major > 22;
|
|
50378
|
+
if (!supported) console.error(`Unsupported Node.js version "${node}". Rspack requires Node.js 20.19+ or 22.12+. Please upgrade your Node.js version.\n`);
|
|
50379
|
+
}
|
|
50380
|
+
checkNodeVersion();
|
|
50297
50381
|
const loaderFlag = 'LOADER_EXECUTION';
|
|
50298
50382
|
const cutOffByFlag = (stack, flag)=>{
|
|
50299
50383
|
const stacks = stack.split('\n');
|
|
@@ -50312,8 +50396,8 @@ const cutOffMessage = (stack, name, message)=>{
|
|
|
50312
50396
|
const firstLine = stack.slice(0, nextLine);
|
|
50313
50397
|
return firstLine === `${name}: ${message}` ? stack.slice(nextLine + 1) : stack;
|
|
50314
50398
|
};
|
|
50315
|
-
const
|
|
50316
|
-
var
|
|
50399
|
+
const util_util = __webpack_require__("../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js");
|
|
50400
|
+
var util_util_default = /*#__PURE__*/ __webpack_require__.n(util_util);
|
|
50317
50401
|
class WebpackError extends Error {
|
|
50318
50402
|
loc;
|
|
50319
50403
|
file;
|
|
@@ -50322,7 +50406,7 @@ class WebpackError extends Error {
|
|
|
50322
50406
|
details;
|
|
50323
50407
|
hideStack;
|
|
50324
50408
|
}
|
|
50325
|
-
Object.defineProperty(WebpackError.prototype,
|
|
50409
|
+
Object.defineProperty(WebpackError.prototype, util_util.inspect.custom, {
|
|
50326
50410
|
value: function() {
|
|
50327
50411
|
return this.stack + (this.details ? `\n${this.details}` : '');
|
|
50328
50412
|
},
|
|
@@ -50330,7 +50414,7 @@ Object.defineProperty(WebpackError.prototype, util_0.inspect.custom, {
|
|
|
50330
50414
|
configurable: true
|
|
50331
50415
|
});
|
|
50332
50416
|
const lib_WebpackError = WebpackError;
|
|
50333
|
-
var
|
|
50417
|
+
var Logger_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
50334
50418
|
const LogType = Object.freeze({
|
|
50335
50419
|
error: 'error',
|
|
50336
50420
|
warn: 'warn',
|
|
@@ -50416,12 +50500,12 @@ class Logger {
|
|
|
50416
50500
|
}
|
|
50417
50501
|
time(label) {
|
|
50418
50502
|
this[TIMERS_SYMBOL] = this[TIMERS_SYMBOL] || new Map();
|
|
50419
|
-
this[TIMERS_SYMBOL].set(label,
|
|
50503
|
+
this[TIMERS_SYMBOL].set(label, Logger_process.hrtime());
|
|
50420
50504
|
}
|
|
50421
50505
|
timeLog(label) {
|
|
50422
50506
|
const prev = this[TIMERS_SYMBOL]?.get(label);
|
|
50423
50507
|
if (!prev) throw new Error(`No such label '${label}' for WebpackLogger.timeLog()`);
|
|
50424
|
-
const time =
|
|
50508
|
+
const time = Logger_process.hrtime(prev);
|
|
50425
50509
|
this[LOG_SYMBOL](LogType.time, [
|
|
50426
50510
|
label,
|
|
50427
50511
|
...time
|
|
@@ -50430,7 +50514,7 @@ class Logger {
|
|
|
50430
50514
|
timeEnd(label) {
|
|
50431
50515
|
const prev = this[TIMERS_SYMBOL]?.get(label);
|
|
50432
50516
|
if (!prev) throw new Error(`No such label '${label}' for WebpackLogger.timeEnd()`);
|
|
50433
|
-
const time =
|
|
50517
|
+
const time = Logger_process.hrtime(prev);
|
|
50434
50518
|
this[TIMERS_SYMBOL].delete(label);
|
|
50435
50519
|
this[LOG_SYMBOL](LogType.time, [
|
|
50436
50520
|
label,
|
|
@@ -50440,7 +50524,7 @@ class Logger {
|
|
|
50440
50524
|
timeAggregate(label) {
|
|
50441
50525
|
const prev = this[TIMERS_SYMBOL]?.get(label);
|
|
50442
50526
|
if (!prev) throw new Error(`No such label '${label}' for WebpackLogger.timeAggregate()`);
|
|
50443
|
-
const time =
|
|
50527
|
+
const time = Logger_process.hrtime(prev);
|
|
50444
50528
|
this[TIMERS_SYMBOL].delete(label);
|
|
50445
50529
|
this[TIMERS_AGGREGATES_SYMBOL] = this[TIMERS_AGGREGATES_SYMBOL] || new Map();
|
|
50446
50530
|
const current = this[TIMERS_AGGREGATES_SYMBOL].get(label);
|
|
@@ -51274,7 +51358,7 @@ class MergeCaller {
|
|
|
51274
51358
|
}
|
|
51275
51359
|
push(...data) {
|
|
51276
51360
|
if (0 === this.callArgs.length) queueMicrotask(this.finalCall);
|
|
51277
|
-
this.callArgs.push(
|
|
51361
|
+
for(let i = 0; i < data.length; i++)this.callArgs.push(data[i]);
|
|
51278
51362
|
}
|
|
51279
51363
|
}
|
|
51280
51364
|
function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
@@ -51325,12 +51409,12 @@ function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
|
51325
51409
|
}
|
|
51326
51410
|
};
|
|
51327
51411
|
}
|
|
51328
|
-
const
|
|
51412
|
+
const webpack_sources_lib = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/index.js");
|
|
51329
51413
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
51330
51414
|
class SourceAdapter {
|
|
51331
51415
|
static fromBinding(source) {
|
|
51332
|
-
if (!source.map) return new
|
|
51333
|
-
return new
|
|
51416
|
+
if (!source.map) return new webpack_sources_lib.RawSource(source.source);
|
|
51417
|
+
return new webpack_sources_lib.SourceMapSource(source.source, 'inmemory://from rust', source.map);
|
|
51334
51418
|
}
|
|
51335
51419
|
static toBinding(source) {
|
|
51336
51420
|
const content = source.source();
|
|
@@ -51348,44 +51432,35 @@ class SourceAdapter {
|
|
|
51348
51432
|
};
|
|
51349
51433
|
}
|
|
51350
51434
|
}
|
|
51351
|
-
|
|
51352
|
-
var AsyncDependenciesBlock = external_rspack_wasi_browser_js_.AsyncDependenciesBlock;
|
|
51353
|
-
var ConcatenatedModule = external_rspack_wasi_browser_js_.ConcatenatedModule;
|
|
51354
|
-
var ContextModule = external_rspack_wasi_browser_js_.ContextModule;
|
|
51355
|
-
var Dependency = external_rspack_wasi_browser_js_.Dependency;
|
|
51356
|
-
var EntryDependency = external_rspack_wasi_browser_js_.EntryDependency;
|
|
51357
|
-
var ExternalModule = external_rspack_wasi_browser_js_.ExternalModule;
|
|
51358
|
-
var Module = external_rspack_wasi_browser_js_.Module;
|
|
51359
|
-
var NormalModule = external_rspack_wasi_browser_js_.NormalModule;
|
|
51360
|
-
Object.defineProperty(external_rspack_wasi_browser_js_.Chunk.prototype, 'files', {
|
|
51435
|
+
Object.defineProperty(Chunk.prototype, 'files', {
|
|
51361
51436
|
enumerable: true,
|
|
51362
51437
|
configurable: true,
|
|
51363
51438
|
get () {
|
|
51364
51439
|
return new Set(this._files);
|
|
51365
51440
|
}
|
|
51366
51441
|
});
|
|
51367
|
-
Object.defineProperty(
|
|
51442
|
+
Object.defineProperty(Chunk.prototype, 'runtime', {
|
|
51368
51443
|
enumerable: true,
|
|
51369
51444
|
configurable: true,
|
|
51370
51445
|
get () {
|
|
51371
51446
|
return new Set(this._runtime);
|
|
51372
51447
|
}
|
|
51373
51448
|
});
|
|
51374
|
-
Object.defineProperty(
|
|
51449
|
+
Object.defineProperty(Chunk.prototype, 'auxiliaryFiles', {
|
|
51375
51450
|
enumerable: true,
|
|
51376
51451
|
configurable: true,
|
|
51377
51452
|
get () {
|
|
51378
51453
|
return new Set(this._auxiliaryFiles);
|
|
51379
51454
|
}
|
|
51380
51455
|
});
|
|
51381
|
-
Object.defineProperty(
|
|
51456
|
+
Object.defineProperty(Chunk.prototype, 'groupsIterable', {
|
|
51382
51457
|
enumerable: true,
|
|
51383
51458
|
configurable: true,
|
|
51384
51459
|
get () {
|
|
51385
51460
|
return new Set(this._groupsIterable);
|
|
51386
51461
|
}
|
|
51387
51462
|
});
|
|
51388
|
-
Object.defineProperty(
|
|
51463
|
+
Object.defineProperty(Chunk.prototype, 'getChunkMaps', {
|
|
51389
51464
|
enumerable: true,
|
|
51390
51465
|
configurable: true,
|
|
51391
51466
|
value (realHash) {
|
|
@@ -51410,7 +51485,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_.Chunk.prototype, 'getChun
|
|
|
51410
51485
|
};
|
|
51411
51486
|
}
|
|
51412
51487
|
});
|
|
51413
|
-
Object.defineProperty(
|
|
51488
|
+
Object.defineProperty(Chunk.prototype, util_util_default().inspect.custom, {
|
|
51414
51489
|
enumerable: true,
|
|
51415
51490
|
configurable: true,
|
|
51416
51491
|
value () {
|
|
@@ -51419,7 +51494,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_.Chunk.prototype, util_0_d
|
|
|
51419
51494
|
};
|
|
51420
51495
|
}
|
|
51421
51496
|
});
|
|
51422
|
-
Object.defineProperty(
|
|
51497
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'entries', {
|
|
51423
51498
|
enumerable: true,
|
|
51424
51499
|
configurable: true,
|
|
51425
51500
|
value () {
|
|
@@ -51448,42 +51523,42 @@ Object.defineProperty(external_rspack_wasi_browser_js_.Chunks.prototype, 'entrie
|
|
|
51448
51523
|
};
|
|
51449
51524
|
}
|
|
51450
51525
|
});
|
|
51451
|
-
Object.defineProperty(
|
|
51526
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'values', {
|
|
51452
51527
|
enumerable: true,
|
|
51453
51528
|
configurable: true,
|
|
51454
51529
|
value () {
|
|
51455
51530
|
return this._values().values();
|
|
51456
51531
|
}
|
|
51457
51532
|
});
|
|
51458
|
-
Object.defineProperty(
|
|
51533
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, Symbol.iterator, {
|
|
51459
51534
|
enumerable: true,
|
|
51460
51535
|
configurable: true,
|
|
51461
51536
|
value () {
|
|
51462
51537
|
return this.values();
|
|
51463
51538
|
}
|
|
51464
51539
|
});
|
|
51465
|
-
Object.defineProperty(
|
|
51540
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'keys', {
|
|
51466
51541
|
enumerable: true,
|
|
51467
51542
|
configurable: true,
|
|
51468
51543
|
value () {
|
|
51469
51544
|
return this.values();
|
|
51470
51545
|
}
|
|
51471
51546
|
});
|
|
51472
|
-
Object.defineProperty(
|
|
51547
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'forEach', {
|
|
51473
51548
|
enumerable: true,
|
|
51474
51549
|
configurable: true,
|
|
51475
51550
|
value (callbackfn, thisArg) {
|
|
51476
51551
|
for (const chunk of this._values())callbackfn.call(thisArg, chunk, chunk, this);
|
|
51477
51552
|
}
|
|
51478
51553
|
});
|
|
51479
|
-
Object.defineProperty(
|
|
51554
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'has', {
|
|
51480
51555
|
enumerable: true,
|
|
51481
51556
|
configurable: true,
|
|
51482
51557
|
value (value) {
|
|
51483
51558
|
return this._has(value);
|
|
51484
51559
|
}
|
|
51485
51560
|
});
|
|
51486
|
-
Object.defineProperty(
|
|
51561
|
+
Object.defineProperty(ChunkGraph.prototype, 'getOrderedChunkModulesIterable', {
|
|
51487
51562
|
enumerable: true,
|
|
51488
51563
|
configurable: true,
|
|
51489
51564
|
value (chunk, compareFn) {
|
|
@@ -51492,14 +51567,14 @@ Object.defineProperty(external_rspack_wasi_browser_js_.ChunkGraph.prototype, 'ge
|
|
|
51492
51567
|
return modules;
|
|
51493
51568
|
}
|
|
51494
51569
|
});
|
|
51495
|
-
Object.defineProperty(
|
|
51570
|
+
Object.defineProperty(ChunkGraph.prototype, 'getModuleChunksIterable', {
|
|
51496
51571
|
enumerable: true,
|
|
51497
51572
|
configurable: true,
|
|
51498
51573
|
value (module) {
|
|
51499
51574
|
return this.getModuleChunks(module);
|
|
51500
51575
|
}
|
|
51501
51576
|
});
|
|
51502
|
-
Object.defineProperty(
|
|
51577
|
+
Object.defineProperty(ChunkGraph.prototype, 'getOrderedChunkModulesIterable', {
|
|
51503
51578
|
enumerable: true,
|
|
51504
51579
|
configurable: true,
|
|
51505
51580
|
value (chunk, compareFn) {
|
|
@@ -51508,14 +51583,14 @@ Object.defineProperty(external_rspack_wasi_browser_js_.ChunkGraph.prototype, 'ge
|
|
|
51508
51583
|
return modules;
|
|
51509
51584
|
}
|
|
51510
51585
|
});
|
|
51511
|
-
Object.defineProperty(
|
|
51586
|
+
Object.defineProperty(ChunkGraph.prototype, 'getModuleHash', {
|
|
51512
51587
|
enumerable: true,
|
|
51513
51588
|
configurable: true,
|
|
51514
51589
|
value (module, runtime) {
|
|
51515
51590
|
return this._getModuleHash(module, toJsRuntimeSpec(runtime));
|
|
51516
51591
|
}
|
|
51517
51592
|
});
|
|
51518
|
-
Object.defineProperty(
|
|
51593
|
+
Object.defineProperty(rspack_wasi_browser.Sources.prototype, 'get', {
|
|
51519
51594
|
enumerable: true,
|
|
51520
51595
|
configurable: true,
|
|
51521
51596
|
value (sourceType) {
|
|
@@ -51528,7 +51603,7 @@ const $proxy = Symbol.for('proxy');
|
|
|
51528
51603
|
function createDiagnosticArray(adm) {
|
|
51529
51604
|
if ($proxy in adm) return adm[$proxy];
|
|
51530
51605
|
const array = [];
|
|
51531
|
-
array[
|
|
51606
|
+
array[util_util_default().inspect.custom] = ()=>adm.values();
|
|
51532
51607
|
const splice = function(index, deleteCount, ...newItems) {
|
|
51533
51608
|
switch(arguments.length){
|
|
51534
51609
|
case 0:
|
|
@@ -51630,7 +51705,7 @@ var _computedKey, _computedKey1, _computedKey2;
|
|
|
51630
51705
|
const checkCompilation = (compilation)=>{
|
|
51631
51706
|
if (!(compilation instanceof Compilation)) throw new TypeError('The \'compilation\' argument must be an instance of Compilation. This usually occurs when multiple versions of "@rspack/core" are used, or when the code in "@rspack/core" is executed multiple times.');
|
|
51632
51707
|
};
|
|
51633
|
-
_computedKey =
|
|
51708
|
+
_computedKey = rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL;
|
|
51634
51709
|
class Compilation {
|
|
51635
51710
|
#inner;
|
|
51636
51711
|
#shutdown;
|
|
@@ -51811,7 +51886,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
51811
51886
|
this.moduleGraph = ModuleGraph.__from_binding(inner.moduleGraph);
|
|
51812
51887
|
this.#addIncludeDispatcher = new AddEntryItemDispatcher(inner.addInclude.bind(inner));
|
|
51813
51888
|
this.#addEntryDispatcher = new AddEntryItemDispatcher(inner.addEntry.bind(inner));
|
|
51814
|
-
this[
|
|
51889
|
+
this[rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL] = new WeakMap();
|
|
51815
51890
|
}
|
|
51816
51891
|
get hash() {
|
|
51817
51892
|
return this.#inner.hash;
|
|
@@ -52350,16 +52425,16 @@ function base_create(name, resolve, affectedHooks) {
|
|
|
52350
52425
|
});
|
|
52351
52426
|
return Plugin;
|
|
52352
52427
|
}
|
|
52353
|
-
const INTERNAL_PLUGIN_NAMES = Object.keys(
|
|
52428
|
+
const INTERNAL_PLUGIN_NAMES = Object.keys(rspack_wasi_browser.BuiltinPluginName);
|
|
52354
52429
|
function createNativePlugin(name, resolve, affectedHooks) {
|
|
52355
52430
|
if (INTERNAL_PLUGIN_NAMES.includes(name)) throw new Error(`Cannot register native plugin with name '${name}', it conflicts with internal plugin names.`);
|
|
52356
52431
|
return base_create(name, resolve, affectedHooks);
|
|
52357
52432
|
}
|
|
52358
|
-
const APIPlugin = base_create(
|
|
52359
|
-
const ArrayPushCallbackChunkFormatPlugin = base_create(
|
|
52360
|
-
const AssetModulesPlugin = base_create(
|
|
52361
|
-
const AsyncWebAssemblyModulesPlugin = base_create(
|
|
52362
|
-
const BannerPlugin = base_create(
|
|
52433
|
+
const APIPlugin = base_create(BuiltinPluginName.APIPlugin, ()=>{});
|
|
52434
|
+
const ArrayPushCallbackChunkFormatPlugin = base_create(BuiltinPluginName.ArrayPushCallbackChunkFormatPlugin, ()=>{});
|
|
52435
|
+
const AssetModulesPlugin = base_create(BuiltinPluginName.AssetModulesPlugin, ()=>{}, 'compilation');
|
|
52436
|
+
const AsyncWebAssemblyModulesPlugin = base_create(BuiltinPluginName.AsyncWebAssemblyModulesPlugin, ()=>{}, 'compilation');
|
|
52437
|
+
const BannerPlugin = base_create(BuiltinPluginName.BannerPlugin, (args)=>{
|
|
52363
52438
|
if ('string' == typeof args || 'function' == typeof args) return {
|
|
52364
52439
|
banner: args
|
|
52365
52440
|
};
|
|
@@ -52374,15 +52449,15 @@ const BannerPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginN
|
|
|
52374
52449
|
exclude: args.exclude
|
|
52375
52450
|
};
|
|
52376
52451
|
});
|
|
52377
|
-
const BundlerInfoRspackPlugin = base_create(
|
|
52452
|
+
const BundlerInfoRspackPlugin = base_create(BuiltinPluginName.BundlerInfoRspackPlugin, (options)=>({
|
|
52378
52453
|
version: options.version || 'unknown',
|
|
52379
52454
|
bundler: options.bundler || 'rspack',
|
|
52380
52455
|
force: options.force ?? true
|
|
52381
52456
|
}));
|
|
52382
|
-
const CaseSensitivePlugin = base_create(
|
|
52383
|
-
const ChunkPrefetchPreloadPlugin = base_create(
|
|
52457
|
+
const CaseSensitivePlugin = base_create(BuiltinPluginName.CaseSensitivePlugin, ()=>{}, 'compilation');
|
|
52458
|
+
const ChunkPrefetchPreloadPlugin = base_create(BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
|
|
52384
52459
|
class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
52385
|
-
name =
|
|
52460
|
+
name = BuiltinPluginName.CircularDependencyRspackPlugin;
|
|
52386
52461
|
_options;
|
|
52387
52462
|
constructor(options){
|
|
52388
52463
|
super();
|
|
@@ -52414,8 +52489,8 @@ class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
|
52414
52489
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
52415
52490
|
}
|
|
52416
52491
|
}
|
|
52417
|
-
const CommonJsChunkFormatPlugin = base_create(
|
|
52418
|
-
const ContextReplacementPlugin = base_create(
|
|
52492
|
+
const CommonJsChunkFormatPlugin = base_create(BuiltinPluginName.CommonJsChunkFormatPlugin, ()=>{});
|
|
52493
|
+
const ContextReplacementPlugin = base_create(BuiltinPluginName.ContextReplacementPlugin, (resourceRegExp, newContentResource, newContentRecursive, newContentRegExp)=>{
|
|
52419
52494
|
const rawOptions = {
|
|
52420
52495
|
resourceRegExp
|
|
52421
52496
|
};
|
|
@@ -52440,7 +52515,7 @@ const ContextReplacementPlugin = base_create(external_rspack_wasi_browser_js_.Bu
|
|
|
52440
52515
|
}
|
|
52441
52516
|
return rawOptions;
|
|
52442
52517
|
});
|
|
52443
|
-
const CopyRspackPlugin = base_create(
|
|
52518
|
+
const CopyRspackPlugin = base_create(BuiltinPluginName.CopyRspackPlugin, (copy)=>{
|
|
52444
52519
|
const ret = {
|
|
52445
52520
|
patterns: []
|
|
52446
52521
|
};
|
|
@@ -52460,7 +52535,7 @@ const CopyRspackPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlu
|
|
|
52460
52535
|
});
|
|
52461
52536
|
return ret;
|
|
52462
52537
|
});
|
|
52463
|
-
const CssChunkingPlugin = base_create(
|
|
52538
|
+
const CssChunkingPlugin = base_create(rspack_wasi_browser.BuiltinPluginName.CssChunkingPlugin, function(options = {}) {
|
|
52464
52539
|
if (options.nextjs) return {
|
|
52465
52540
|
strict: options.strict,
|
|
52466
52541
|
minSize: options.minSize,
|
|
@@ -52476,7 +52551,7 @@ const CssChunkingPlugin = base_create(external_rspack_wasi_browser_js_["default"
|
|
|
52476
52551
|
}
|
|
52477
52552
|
return options;
|
|
52478
52553
|
});
|
|
52479
|
-
const CssModulesPlugin = base_create(
|
|
52554
|
+
const CssModulesPlugin = base_create(BuiltinPluginName.CssModulesPlugin, ()=>{}, 'compilation');
|
|
52480
52555
|
const path_browserify = __webpack_require__("../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js");
|
|
52481
52556
|
var path_browserify_default = /*#__PURE__*/ __webpack_require__.n(path_browserify);
|
|
52482
52557
|
const utils_PLUGIN_NAME = 'css-extract-rspack-plugin';
|
|
@@ -52497,7 +52572,7 @@ class CssExtractRspackPlugin {
|
|
|
52497
52572
|
}
|
|
52498
52573
|
if (compiler.options.output.pathinfo && void 0 === this.options.pathinfo) this.options.pathinfo = true;
|
|
52499
52574
|
compiler.__internal__registerBuiltinPlugin({
|
|
52500
|
-
name:
|
|
52575
|
+
name: BuiltinPluginName.CssExtractRspackPlugin,
|
|
52501
52576
|
options: this.normalizeOptions(this.options)
|
|
52502
52577
|
});
|
|
52503
52578
|
}
|
|
@@ -52533,8 +52608,8 @@ class CssExtractRspackPlugin {
|
|
|
52533
52608
|
return normalzedOptions;
|
|
52534
52609
|
}
|
|
52535
52610
|
}
|
|
52536
|
-
const DataUriPlugin = base_create(
|
|
52537
|
-
const DefinePlugin = base_create(
|
|
52611
|
+
const DataUriPlugin = base_create(BuiltinPluginName.DataUriPlugin, ()=>{}, 'compilation');
|
|
52612
|
+
const DefinePlugin = base_create(BuiltinPluginName.DefinePlugin, function(define1) {
|
|
52538
52613
|
const supportsBigIntLiteral = this.options.output.environment?.bigIntLiteral ?? false;
|
|
52539
52614
|
return normalizeValue(define1, supportsBigIntLiteral);
|
|
52540
52615
|
}, 'compilation');
|
|
@@ -52562,25 +52637,25 @@ const normalizeValue = (define1, supportsBigIntLiteral)=>{
|
|
|
52562
52637
|
return normalizeObject(define1);
|
|
52563
52638
|
};
|
|
52564
52639
|
class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
52565
|
-
name =
|
|
52640
|
+
name = BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
52566
52641
|
affectedHooks = 'compilation';
|
|
52567
52642
|
raw() {
|
|
52568
52643
|
return createBuiltinPlugin(this.name, void 0);
|
|
52569
52644
|
}
|
|
52570
52645
|
}
|
|
52571
52646
|
class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
52572
|
-
name =
|
|
52647
|
+
name = BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
52573
52648
|
affectedHooks = 'compilation';
|
|
52574
52649
|
raw() {
|
|
52575
52650
|
return createBuiltinPlugin(this.name, void 0);
|
|
52576
52651
|
}
|
|
52577
52652
|
}
|
|
52578
|
-
const DllEntryPlugin = base_create(
|
|
52653
|
+
const DllEntryPlugin = base_create(BuiltinPluginName.DllEntryPlugin, (context, entries, options)=>({
|
|
52579
52654
|
context,
|
|
52580
52655
|
entries,
|
|
52581
52656
|
name: options.name
|
|
52582
52657
|
}));
|
|
52583
|
-
const DllReferenceAgencyPlugin = base_create(
|
|
52658
|
+
const DllReferenceAgencyPlugin = base_create(BuiltinPluginName.DllReferenceAgencyPlugin, (options)=>options);
|
|
52584
52659
|
class EntryOptionPlugin {
|
|
52585
52660
|
apply(compiler) {
|
|
52586
52661
|
compiler.hooks.entryOption.tap('EntryOptionPlugin', (context, entry)=>{
|
|
@@ -52614,7 +52689,7 @@ class EntryOptionPlugin {
|
|
|
52614
52689
|
}
|
|
52615
52690
|
}
|
|
52616
52691
|
const lib_EntryOptionPlugin = EntryOptionPlugin;
|
|
52617
|
-
const OriginEntryPlugin = base_create(
|
|
52692
|
+
const OriginEntryPlugin = base_create(BuiltinPluginName.EntryPlugin, (context, entry, options = '')=>{
|
|
52618
52693
|
const entryOptions = 'string' == typeof options ? {
|
|
52619
52694
|
name: options
|
|
52620
52695
|
} : options;
|
|
@@ -52625,7 +52700,7 @@ const OriginEntryPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPl
|
|
|
52625
52700
|
};
|
|
52626
52701
|
}, 'make');
|
|
52627
52702
|
const EntryPlugin = OriginEntryPlugin;
|
|
52628
|
-
EntryPlugin.createDependency = (request)=>new
|
|
52703
|
+
EntryPlugin.createDependency = (request)=>new EntryDependency(request);
|
|
52629
52704
|
function getRawEntryOptions(entry) {
|
|
52630
52705
|
return {
|
|
52631
52706
|
name: entry.name,
|
|
@@ -52644,7 +52719,7 @@ function getRawEntryOptions(entry) {
|
|
|
52644
52719
|
class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
52645
52720
|
context;
|
|
52646
52721
|
entry;
|
|
52647
|
-
name =
|
|
52722
|
+
name = BuiltinPluginName.DynamicEntryPlugin;
|
|
52648
52723
|
affectedHooks = 'make';
|
|
52649
52724
|
constructor(context, entry){
|
|
52650
52725
|
super(), this.context = context, this.entry = entry;
|
|
@@ -52666,8 +52741,8 @@ class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
|
52666
52741
|
return createBuiltinPlugin(this.name, raw);
|
|
52667
52742
|
}
|
|
52668
52743
|
}
|
|
52669
|
-
const ElectronTargetPlugin = base_create(
|
|
52670
|
-
const EnableChunkLoadingPluginInner = base_create(
|
|
52744
|
+
const ElectronTargetPlugin = base_create(BuiltinPluginName.ElectronTargetPlugin, (context)=>context ?? 'none');
|
|
52745
|
+
const EnableChunkLoadingPluginInner = base_create(BuiltinPluginName.EnableChunkLoadingPlugin, (type)=>type);
|
|
52671
52746
|
const enabledTypes = new WeakMap();
|
|
52672
52747
|
const getEnabledTypes = (compiler)=>{
|
|
52673
52748
|
let set = enabledTypes.get(compiler);
|
|
@@ -52719,7 +52794,7 @@ const EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
|
52719
52794
|
};
|
|
52720
52795
|
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
52721
52796
|
type;
|
|
52722
|
-
name =
|
|
52797
|
+
name = BuiltinPluginName.EnableLibraryPlugin;
|
|
52723
52798
|
constructor(type){
|
|
52724
52799
|
super(), this.type = type;
|
|
52725
52800
|
}
|
|
@@ -52737,9 +52812,9 @@ class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
|
52737
52812
|
return createBuiltinPlugin(this.name, type);
|
|
52738
52813
|
}
|
|
52739
52814
|
}
|
|
52740
|
-
const EnableWasmLoadingPlugin = base_create(
|
|
52741
|
-
const EnsureChunkConditionsPlugin = base_create(
|
|
52742
|
-
const RemoveDuplicateModulesPlugin = base_create(
|
|
52815
|
+
const EnableWasmLoadingPlugin = base_create(BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type);
|
|
52816
|
+
const EnsureChunkConditionsPlugin = base_create(BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{});
|
|
52817
|
+
const RemoveDuplicateModulesPlugin = base_create(BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
52743
52818
|
class JsSplitChunkSizes {
|
|
52744
52819
|
static __to_binding(sizes) {
|
|
52745
52820
|
if ('number' == typeof sizes) return sizes;
|
|
@@ -52754,7 +52829,7 @@ class JsSplitChunkSizes {
|
|
|
52754
52829
|
}
|
|
52755
52830
|
class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
52756
52831
|
options;
|
|
52757
|
-
name =
|
|
52832
|
+
name = BuiltinPluginName.SplitChunksPlugin;
|
|
52758
52833
|
affectedHooks = 'thisCompilation';
|
|
52759
52834
|
constructor(options){
|
|
52760
52835
|
super(), this.options = options;
|
|
@@ -52855,7 +52930,7 @@ class EsmLibraryPlugin {
|
|
|
52855
52930
|
let err;
|
|
52856
52931
|
if (err = checkConfig(compiler.options)) throw new lib_WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
|
|
52857
52932
|
compiler.__internal__registerBuiltinPlugin({
|
|
52858
|
-
name:
|
|
52933
|
+
name: BuiltinPluginName.EsmLibraryPlugin,
|
|
52859
52934
|
options: {
|
|
52860
52935
|
preserveModules: this.options.preserveModules,
|
|
52861
52936
|
splitChunks: toRawSplitChunksOptions(this.options.splitChunks ?? false, compiler)
|
|
@@ -52867,8 +52942,8 @@ function checkConfig(config) {
|
|
|
52867
52942
|
if (config.optimization.concatenateModules) return 'You should disable `config.optimization.concatenateModules`';
|
|
52868
52943
|
if (false !== config.output.chunkFormat) return 'You should disable default chunkFormat by `config.output.chunkFormat = false`';
|
|
52869
52944
|
}
|
|
52870
|
-
const EvalDevToolModulePlugin = base_create(
|
|
52871
|
-
const EvalSourceMapDevToolPlugin = base_create(
|
|
52945
|
+
const EvalDevToolModulePlugin = base_create(BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation');
|
|
52946
|
+
const EvalSourceMapDevToolPlugin = base_create(BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
52872
52947
|
var util_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
52873
52948
|
function isNil(value) {
|
|
52874
52949
|
return null == value;
|
|
@@ -53265,6 +53340,7 @@ const getSwcLoaderOptions = (o, composeOptions)=>{
|
|
|
53265
53340
|
}
|
|
53266
53341
|
}
|
|
53267
53342
|
if (options.collectTypeScriptInfo) options.collectTypeScriptInfo = resolveCollectTypeScriptInfo(options.collectTypeScriptInfo);
|
|
53343
|
+
if (options.transformImport) options.transformImport = resolvePluginImport(options.transformImport);
|
|
53268
53344
|
const { rspackExperiments } = options;
|
|
53269
53345
|
if (rspackExperiments) {
|
|
53270
53346
|
if (rspackExperiments.import || rspackExperiments.pluginImport) rspackExperiments.import = resolvePluginImport(rspackExperiments.import || rspackExperiments.pluginImport);
|
|
@@ -53273,7 +53349,7 @@ const getSwcLoaderOptions = (o, composeOptions)=>{
|
|
|
53273
53349
|
return options;
|
|
53274
53350
|
};
|
|
53275
53351
|
const $assets = Symbol('assets');
|
|
53276
|
-
Object.defineProperty(
|
|
53352
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, util_util_default().inspect.custom, {
|
|
53277
53353
|
enumerable: true,
|
|
53278
53354
|
configurable: true,
|
|
53279
53355
|
value () {
|
|
@@ -53287,13 +53363,13 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].KnownBuildInfo
|
|
|
53287
53363
|
};
|
|
53288
53364
|
}
|
|
53289
53365
|
});
|
|
53290
|
-
Object.defineProperty(
|
|
53366
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'assets', {
|
|
53291
53367
|
enumerable: true,
|
|
53292
53368
|
configurable: true,
|
|
53293
53369
|
get () {
|
|
53294
|
-
if (this[
|
|
53370
|
+
if (this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL][$assets]) return this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL][$assets];
|
|
53295
53371
|
const assets = new Proxy(Object.create(null), {
|
|
53296
|
-
ownKeys: ()=>this[
|
|
53372
|
+
ownKeys: ()=>this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL].keys(),
|
|
53297
53373
|
getOwnPropertyDescriptor () {
|
|
53298
53374
|
return {
|
|
53299
53375
|
enumerable: true,
|
|
@@ -53301,7 +53377,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].KnownBuildInfo
|
|
|
53301
53377
|
};
|
|
53302
53378
|
}
|
|
53303
53379
|
});
|
|
53304
|
-
Object.defineProperty(this[
|
|
53380
|
+
Object.defineProperty(this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL], $assets, {
|
|
53305
53381
|
enumerable: false,
|
|
53306
53382
|
configurable: true,
|
|
53307
53383
|
value: assets
|
|
@@ -53309,32 +53385,32 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].KnownBuildInfo
|
|
|
53309
53385
|
return assets;
|
|
53310
53386
|
}
|
|
53311
53387
|
});
|
|
53312
|
-
Object.defineProperty(
|
|
53388
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'fileDependencies', {
|
|
53313
53389
|
enumerable: true,
|
|
53314
53390
|
configurable: true,
|
|
53315
53391
|
get () {
|
|
53316
|
-
return new Set(this[
|
|
53392
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_FILE_DEPENDENCIES_SYMBOL]);
|
|
53317
53393
|
}
|
|
53318
53394
|
});
|
|
53319
|
-
Object.defineProperty(
|
|
53395
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'contextDependencies', {
|
|
53320
53396
|
enumerable: true,
|
|
53321
53397
|
configurable: true,
|
|
53322
53398
|
get () {
|
|
53323
|
-
return new Set(this[
|
|
53399
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_CONTEXT_DEPENDENCIES_SYMBOL]);
|
|
53324
53400
|
}
|
|
53325
53401
|
});
|
|
53326
|
-
Object.defineProperty(
|
|
53402
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'missingDependencies', {
|
|
53327
53403
|
enumerable: true,
|
|
53328
53404
|
configurable: true,
|
|
53329
53405
|
get () {
|
|
53330
|
-
return new Set(this[
|
|
53406
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_MISSING_DEPENDENCIES_SYMBOL]);
|
|
53331
53407
|
}
|
|
53332
53408
|
});
|
|
53333
|
-
Object.defineProperty(
|
|
53409
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'buildDependencies', {
|
|
53334
53410
|
enumerable: true,
|
|
53335
53411
|
configurable: true,
|
|
53336
53412
|
get () {
|
|
53337
|
-
return new Set(this[
|
|
53413
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_BUILD_DEPENDENCIES_SYMBOL]);
|
|
53338
53414
|
}
|
|
53339
53415
|
});
|
|
53340
53416
|
const knownBuildInfoFields = new Set([
|
|
@@ -53345,16 +53421,16 @@ const knownBuildInfoFields = new Set([
|
|
|
53345
53421
|
'buildDependencies'
|
|
53346
53422
|
]);
|
|
53347
53423
|
const commitCustomFieldsToRust = (buildInfo)=>{
|
|
53348
|
-
if (Object.keys(buildInfo).some((key)=>!knownBuildInfoFields.has(key))) buildInfo[
|
|
53424
|
+
if (Object.keys(buildInfo).some((key)=>!knownBuildInfoFields.has(key))) buildInfo[rspack_wasi_browser.COMMIT_CUSTOM_FIELDS_SYMBOL]();
|
|
53349
53425
|
};
|
|
53350
|
-
Object.defineProperty(
|
|
53426
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule.prototype, 'identifier', {
|
|
53351
53427
|
enumerable: true,
|
|
53352
53428
|
configurable: true,
|
|
53353
53429
|
value () {
|
|
53354
|
-
return this[
|
|
53430
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
53355
53431
|
}
|
|
53356
53432
|
});
|
|
53357
|
-
Object.defineProperty(
|
|
53433
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule.prototype, 'originalSource', {
|
|
53358
53434
|
enumerable: true,
|
|
53359
53435
|
configurable: true,
|
|
53360
53436
|
value () {
|
|
@@ -53363,19 +53439,19 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].NormalModule.p
|
|
|
53363
53439
|
return null;
|
|
53364
53440
|
}
|
|
53365
53441
|
});
|
|
53366
|
-
Object.defineProperty(
|
|
53442
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule.prototype, 'emitFile', {
|
|
53367
53443
|
enumerable: true,
|
|
53368
53444
|
configurable: true,
|
|
53369
53445
|
value (filename, source, assetInfo) {
|
|
53370
53446
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
53371
53447
|
}
|
|
53372
53448
|
});
|
|
53373
|
-
Object.defineProperty(
|
|
53449
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule, 'getCompilationHooks', {
|
|
53374
53450
|
enumerable: true,
|
|
53375
53451
|
configurable: true,
|
|
53376
53452
|
value (compilation) {
|
|
53377
|
-
if (!(
|
|
53378
|
-
const compilationHooksMap = compilation[
|
|
53453
|
+
if (!(rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL in compilation)) throw new TypeError("The 'compilation' argument must be an instance of Compilation");
|
|
53454
|
+
const compilationHooksMap = compilation[rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL];
|
|
53379
53455
|
let hooks = compilationHooksMap.get(compilation);
|
|
53380
53456
|
if (void 0 === hooks) {
|
|
53381
53457
|
hooks = {
|
|
@@ -53887,8 +53963,8 @@ function convertArgs(args, raw) {
|
|
|
53887
53963
|
else if (raw && 'string' == typeof args[0]) args[0] = utils_Buffer.from(args[0], 'utf-8');
|
|
53888
53964
|
if (raw && args[0] instanceof Uint8Array && !utils_Buffer.isBuffer(args[0])) args[0] = utils_Buffer.from(args[0].buffer);
|
|
53889
53965
|
}
|
|
53890
|
-
const utils_loadLoader = (0,
|
|
53891
|
-
const utils_runSyncOrAsync = (0,
|
|
53966
|
+
const utils_loadLoader = (0, util_util.promisify)(loadLoader);
|
|
53967
|
+
const utils_runSyncOrAsync = (0, util_util.promisify)(function(fn, context, args, callback) {
|
|
53892
53968
|
let isSync = true;
|
|
53893
53969
|
let isDone = false;
|
|
53894
53970
|
let isError = false;
|
|
@@ -54088,7 +54164,7 @@ function getCurrentLoader(loaderContext, index = loaderContext.loaderIndex) {
|
|
|
54088
54164
|
}
|
|
54089
54165
|
async function runLoaders(compiler, context) {
|
|
54090
54166
|
const loaderState = context.loaderState;
|
|
54091
|
-
const pitch = loaderState ===
|
|
54167
|
+
const pitch = loaderState === JsLoaderState.Pitching;
|
|
54092
54168
|
const { resource } = context;
|
|
54093
54169
|
const uuid = trace_JavaScriptTracer.uuid();
|
|
54094
54170
|
trace_JavaScriptTracer.startAsync({
|
|
@@ -54286,7 +54362,7 @@ async function runLoaders(compiler, context) {
|
|
|
54286
54362
|
error.module = loaderContext._module;
|
|
54287
54363
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
54288
54364
|
error,
|
|
54289
|
-
severity:
|
|
54365
|
+
severity: JsRspackSeverity.Error
|
|
54290
54366
|
});
|
|
54291
54367
|
};
|
|
54292
54368
|
loaderContext.emitWarning = function(e) {
|
|
@@ -54297,15 +54373,15 @@ async function runLoaders(compiler, context) {
|
|
|
54297
54373
|
warning.module = loaderContext._module;
|
|
54298
54374
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
54299
54375
|
error: warning,
|
|
54300
|
-
severity:
|
|
54376
|
+
severity: JsRspackSeverity.Warn
|
|
54301
54377
|
});
|
|
54302
54378
|
};
|
|
54303
54379
|
loaderContext.emitFile = function(name, content, sourceMap, assetInfo) {
|
|
54304
54380
|
let source;
|
|
54305
54381
|
if (sourceMap) {
|
|
54306
|
-
if ('string' == typeof sourceMap && (loaderContext.sourceMap || compiler.options.devtool && isUseSimpleSourceMap(compiler.options.devtool))) source = new
|
|
54307
|
-
if (loaderContext.sourceMap) source = new
|
|
54308
|
-
} else source = new
|
|
54382
|
+
if ('string' == typeof sourceMap && (loaderContext.sourceMap || compiler.options.devtool && isUseSimpleSourceMap(compiler.options.devtool))) source = new webpack_sources_lib.OriginalSource(content, makePathsRelative(contextDirectory, sourceMap, compiler));
|
|
54383
|
+
if (loaderContext.sourceMap) source = new webpack_sources_lib.SourceMapSource(content, name, makePathsRelative(contextDirectory, sourceMap, compiler));
|
|
54384
|
+
} else source = new webpack_sources_lib.RawSource(content);
|
|
54309
54385
|
loaderContext._module.emitFile(name, source, assetInfo);
|
|
54310
54386
|
};
|
|
54311
54387
|
loaderContext.fs = compiler.inputFileSystem;
|
|
@@ -54315,7 +54391,7 @@ async function runLoaders(compiler, context) {
|
|
|
54315
54391
|
message: 'warning' === diagnostic.severity ? `ModuleWarning: ${diagnostic.message}` : `ModuleError: ${diagnostic.message}`,
|
|
54316
54392
|
moduleIdentifier: context._module.identifier()
|
|
54317
54393
|
});
|
|
54318
|
-
compiler._lastCompilation.__internal__pushDiagnostic(
|
|
54394
|
+
compiler._lastCompilation.__internal__pushDiagnostic(formatDiagnostic(d));
|
|
54319
54395
|
}
|
|
54320
54396
|
};
|
|
54321
54397
|
const getAbsolutify = memoize(()=>absolutify.bindCache(compiler.root));
|
|
@@ -54345,7 +54421,7 @@ async function runLoaders(compiler, context) {
|
|
|
54345
54421
|
let compilation = compiler._lastCompilation;
|
|
54346
54422
|
let step = 0;
|
|
54347
54423
|
while(compilation){
|
|
54348
|
-
|
|
54424
|
+
NormalModule.getCompilationHooks(compilation).loader.call(loaderContext, loaderContext._module);
|
|
54349
54425
|
compilation = compilation.compiler.parentCompilation;
|
|
54350
54426
|
step++;
|
|
54351
54427
|
if (step > 1000) throw Error('Too many nested child compiler, exceeded max limitation 1000');
|
|
@@ -54370,7 +54446,7 @@ async function runLoaders(compiler, context) {
|
|
|
54370
54446
|
context.__internal__parseMeta[key] = value;
|
|
54371
54447
|
};
|
|
54372
54448
|
const getWorkerLoaderContext = ()=>{
|
|
54373
|
-
const normalModule = loaderContext._module instanceof
|
|
54449
|
+
const normalModule = loaderContext._module instanceof NormalModule ? loaderContext._module : void 0;
|
|
54374
54450
|
const workerLoaderContext = {
|
|
54375
54451
|
hot: loaderContext.hot,
|
|
54376
54452
|
context: loaderContext.context,
|
|
@@ -54558,7 +54634,7 @@ async function runLoaders(compiler, context) {
|
|
|
54558
54634
|
const isomorphoicRun = async (fn, args)=>{
|
|
54559
54635
|
const currentLoaderObject = getCurrentLoader(loaderContext);
|
|
54560
54636
|
const parallelism = enableParallelism(currentLoaderObject);
|
|
54561
|
-
const pitch = loaderState ===
|
|
54637
|
+
const pitch = loaderState === JsLoaderState.Pitching;
|
|
54562
54638
|
const loaderName = extractLoaderName(currentLoaderObject.request);
|
|
54563
54639
|
let result;
|
|
54564
54640
|
trace_JavaScriptTracer.startAsync({
|
|
@@ -54577,7 +54653,7 @@ async function runLoaders(compiler, context) {
|
|
|
54577
54653
|
args
|
|
54578
54654
|
}, getWorkerLoaderHandlers(), 'object' == typeof currentLoaderObject?.parallel ? currentLoaderObject.parallel : void 0) || [];
|
|
54579
54655
|
else {
|
|
54580
|
-
if (loaderState ===
|
|
54656
|
+
if (loaderState === JsLoaderState.Normal) convertArgs(args, !!currentLoaderObject?.raw);
|
|
54581
54657
|
result = await utils_runSyncOrAsync(fn, loaderContext, args) || [];
|
|
54582
54658
|
}
|
|
54583
54659
|
trace_JavaScriptTracer.endAsync({
|
|
@@ -54594,7 +54670,7 @@ async function runLoaders(compiler, context) {
|
|
|
54594
54670
|
};
|
|
54595
54671
|
try {
|
|
54596
54672
|
switch(loaderState){
|
|
54597
|
-
case
|
|
54673
|
+
case JsLoaderState.Pitching:
|
|
54598
54674
|
while(loaderContext.loaderIndex < loaderContext.loaders.length){
|
|
54599
54675
|
const currentLoaderObject = loaderContext.loaders[loaderContext.loaderIndex];
|
|
54600
54676
|
const parallelism = enableParallelism(currentLoaderObject);
|
|
@@ -54622,7 +54698,7 @@ async function runLoaders(compiler, context) {
|
|
|
54622
54698
|
}
|
|
54623
54699
|
}
|
|
54624
54700
|
break;
|
|
54625
|
-
case
|
|
54701
|
+
case JsLoaderState.Normal:
|
|
54626
54702
|
{
|
|
54627
54703
|
let content = context.content;
|
|
54628
54704
|
let sourceMap = JsSourceMap.__from_binding(context.sourceMap);
|
|
@@ -54948,23 +55024,23 @@ const getRawModuleRule = (rule, path, options, upperType)=>{
|
|
|
54948
55024
|
};
|
|
54949
55025
|
function getRawRuleSetCondition(condition) {
|
|
54950
55026
|
if ('string' == typeof condition) return {
|
|
54951
|
-
type:
|
|
55027
|
+
type: RawRuleSetConditionType.string,
|
|
54952
55028
|
string: condition
|
|
54953
55029
|
};
|
|
54954
55030
|
if (condition instanceof RegExp) return {
|
|
54955
|
-
type:
|
|
55031
|
+
type: RawRuleSetConditionType.regexp,
|
|
54956
55032
|
regexp: condition
|
|
54957
55033
|
};
|
|
54958
55034
|
if ('function' == typeof condition) return {
|
|
54959
|
-
type:
|
|
55035
|
+
type: RawRuleSetConditionType.func,
|
|
54960
55036
|
func: condition
|
|
54961
55037
|
};
|
|
54962
55038
|
if (Array.isArray(condition)) return {
|
|
54963
|
-
type:
|
|
55039
|
+
type: RawRuleSetConditionType.array,
|
|
54964
55040
|
array: condition.map((i)=>getRawRuleSetCondition(i))
|
|
54965
55041
|
};
|
|
54966
55042
|
if ('object' == typeof condition && null !== condition) return {
|
|
54967
|
-
type:
|
|
55043
|
+
type: RawRuleSetConditionType.logical,
|
|
54968
55044
|
logical: [
|
|
54969
55045
|
getRawRuleSetLogicalConditions(condition)
|
|
54970
55046
|
]
|
|
@@ -55199,7 +55275,7 @@ class ExternalsPlugin extends RspackBuiltinPlugin {
|
|
|
55199
55275
|
type;
|
|
55200
55276
|
externals;
|
|
55201
55277
|
placeInInitial;
|
|
55202
|
-
name =
|
|
55278
|
+
name = BuiltinPluginName.ExternalsPlugin;
|
|
55203
55279
|
#resolveRequestCache = new Map();
|
|
55204
55280
|
constructor(type, externals, placeInInitial){
|
|
55205
55281
|
super(), this.type = type, this.externals = externals, this.placeInInitial = placeInInitial;
|
|
@@ -55300,12 +55376,12 @@ function getRawExternalItemValue(value) {
|
|
|
55300
55376
|
]));
|
|
55301
55377
|
return value;
|
|
55302
55378
|
}
|
|
55303
|
-
const FetchCompileAsyncWasmPlugin = base_create(
|
|
55304
|
-
const FileUriPlugin = base_create(
|
|
55305
|
-
const FlagDependencyExportsPlugin = base_create(
|
|
55379
|
+
const FetchCompileAsyncWasmPlugin = base_create(BuiltinPluginName.FetchCompileAsyncWasmPlugin, ()=>{}, 'thisCompilation');
|
|
55380
|
+
const FileUriPlugin = base_create(BuiltinPluginName.FileUriPlugin, ()=>{}, 'compilation');
|
|
55381
|
+
const FlagDependencyExportsPlugin = base_create(BuiltinPluginName.FlagDependencyExportsPlugin, ()=>{}, 'compilation');
|
|
55306
55382
|
class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
55307
55383
|
global;
|
|
55308
|
-
name =
|
|
55384
|
+
name = BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
55309
55385
|
affectedHooks = 'compilation';
|
|
55310
55386
|
constructor(global){
|
|
55311
55387
|
super(), this.global = global;
|
|
@@ -55315,13 +55391,13 @@ class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
|
55315
55391
|
}
|
|
55316
55392
|
}
|
|
55317
55393
|
class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
55318
|
-
name =
|
|
55394
|
+
name = BuiltinPluginName.HotModuleReplacementPlugin;
|
|
55319
55395
|
raw(compiler) {
|
|
55320
55396
|
if (void 0 === compiler.options.output.strictModuleErrorHandling) compiler.options.output.strictModuleErrorHandling = true;
|
|
55321
55397
|
return createBuiltinPlugin(this.name, void 0);
|
|
55322
55398
|
}
|
|
55323
55399
|
}
|
|
55324
|
-
const HttpExternalsRspackPlugin = base_create(
|
|
55400
|
+
const HttpExternalsRspackPlugin = base_create(BuiltinPluginName.HttpExternalsRspackPlugin, (css, webAsync)=>({
|
|
55325
55401
|
css,
|
|
55326
55402
|
webAsync
|
|
55327
55403
|
}));
|
|
@@ -55343,7 +55419,7 @@ const defaultHttpClientForBrowser = async (url, headers)=>{
|
|
|
55343
55419
|
};
|
|
55344
55420
|
class HttpUriPlugin extends RspackBuiltinPlugin {
|
|
55345
55421
|
options;
|
|
55346
|
-
name =
|
|
55422
|
+
name = BuiltinPluginName.HttpUriPlugin;
|
|
55347
55423
|
affectedHooks = 'compilation';
|
|
55348
55424
|
constructor(options){
|
|
55349
55425
|
super(), this.options = options;
|
|
@@ -55414,7 +55490,7 @@ const cleanPluginHooks = (compilation)=>{
|
|
|
55414
55490
|
const fs_0 = __webpack_require__("./src/browser/fs.ts");
|
|
55415
55491
|
var plugin_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
55416
55492
|
let HTML_PLUGIN_UID = 0;
|
|
55417
|
-
const HtmlRspackPluginImpl = base_create(
|
|
55493
|
+
const HtmlRspackPluginImpl = base_create(BuiltinPluginName.HtmlRspackPlugin, function(c = {}) {
|
|
55418
55494
|
const uid = HTML_PLUGIN_UID++;
|
|
55419
55495
|
const meta = {};
|
|
55420
55496
|
for(const key in c.meta){
|
|
@@ -55572,12 +55648,12 @@ HtmlRspackPlugin.createHtmlTagObject = (tagName, attributes, innerHTML)=>({
|
|
|
55572
55648
|
});
|
|
55573
55649
|
HtmlRspackPlugin.getCompilationHooks = getPluginHooks;
|
|
55574
55650
|
HtmlRspackPlugin.version = 5;
|
|
55575
|
-
const IgnorePlugin = base_create(
|
|
55576
|
-
const InferAsyncModulesPlugin = base_create(
|
|
55577
|
-
const InlineExportsPlugin = base_create(
|
|
55651
|
+
const IgnorePlugin = base_create(BuiltinPluginName.IgnorePlugin, (options)=>options);
|
|
55652
|
+
const InferAsyncModulesPlugin = base_create(BuiltinPluginName.InferAsyncModulesPlugin, ()=>{}, 'compilation');
|
|
55653
|
+
const InlineExportsPlugin = base_create(BuiltinPluginName.InlineExportsPlugin, ()=>{}, 'compilation');
|
|
55578
55654
|
const JavascriptModulesPlugin_compilationHooksMap = new WeakMap();
|
|
55579
55655
|
class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
55580
|
-
name =
|
|
55656
|
+
name = BuiltinPluginName.JavascriptModulesPlugin;
|
|
55581
55657
|
affectedHooks = 'compilation';
|
|
55582
55658
|
raw() {
|
|
55583
55659
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -55597,9 +55673,9 @@ class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
|
55597
55673
|
return hooks;
|
|
55598
55674
|
}
|
|
55599
55675
|
}
|
|
55600
|
-
const JsLoaderRspackPlugin = base_create(
|
|
55601
|
-
const JsonModulesPlugin = base_create(
|
|
55602
|
-
const LibManifestPlugin = base_create(
|
|
55676
|
+
const JsLoaderRspackPlugin = base_create(BuiltinPluginName.JsLoaderRspackPlugin, (compiler)=>runLoaders.bind(null, compiler), 'thisCompilation');
|
|
55677
|
+
const JsonModulesPlugin = base_create(BuiltinPluginName.JsonModulesPlugin, ()=>{}, 'compilation');
|
|
55678
|
+
const LibManifestPlugin = base_create(BuiltinPluginName.LibManifestPlugin, (options)=>{
|
|
55603
55679
|
const { context, entryOnly, format, name, path, type } = options;
|
|
55604
55680
|
return {
|
|
55605
55681
|
context,
|
|
@@ -55610,7 +55686,7 @@ const LibManifestPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPl
|
|
|
55610
55686
|
type
|
|
55611
55687
|
};
|
|
55612
55688
|
});
|
|
55613
|
-
const LightningCssMinimizerRspackPlugin = base_create(
|
|
55689
|
+
const LightningCssMinimizerRspackPlugin = base_create(BuiltinPluginName.LightningCssMinimizerRspackPlugin, function(options) {
|
|
55614
55690
|
const { include, exclude, nonStandard, pseudoClasses, drafts } = options?.minimizerOptions ?? {};
|
|
55615
55691
|
let targets = [
|
|
55616
55692
|
'fully supports es6'
|
|
@@ -55643,13 +55719,13 @@ const LightningCssMinimizerRspackPlugin = base_create(external_rspack_wasi_brows
|
|
|
55643
55719
|
}
|
|
55644
55720
|
};
|
|
55645
55721
|
});
|
|
55646
|
-
const LimitChunkCountPlugin = base_create(
|
|
55722
|
+
const LimitChunkCountPlugin = base_create(BuiltinPluginName.LimitChunkCountPlugin, (options)=>options);
|
|
55647
55723
|
const lazyCompilationMiddleware = ()=>{
|
|
55648
55724
|
throw new Error('lazy compilation middleware is not supported in browser');
|
|
55649
55725
|
};
|
|
55650
55726
|
class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
55651
55727
|
deterministic;
|
|
55652
|
-
name =
|
|
55728
|
+
name = BuiltinPluginName.MangleExportsPlugin;
|
|
55653
55729
|
affectedHooks = 'compilation';
|
|
55654
55730
|
constructor(deterministic){
|
|
55655
55731
|
super(), this.deterministic = deterministic;
|
|
@@ -55658,45 +55734,45 @@ class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
|
55658
55734
|
return createBuiltinPlugin(this.name, this.deterministic);
|
|
55659
55735
|
}
|
|
55660
55736
|
}
|
|
55661
|
-
const MergeDuplicateChunksPlugin = base_create(
|
|
55662
|
-
const ModuleChunkFormatPlugin = base_create(
|
|
55737
|
+
const MergeDuplicateChunksPlugin = base_create(BuiltinPluginName.MergeDuplicateChunksPlugin, ()=>{});
|
|
55738
|
+
const ModuleChunkFormatPlugin = base_create(BuiltinPluginName.ModuleChunkFormatPlugin, ()=>{});
|
|
55663
55739
|
class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
55664
|
-
name =
|
|
55740
|
+
name = BuiltinPluginName.ModuleConcatenationPlugin;
|
|
55665
55741
|
affectedHooks = 'compilation';
|
|
55666
55742
|
raw() {
|
|
55667
55743
|
return createBuiltinPlugin(this.name, void 0);
|
|
55668
55744
|
}
|
|
55669
55745
|
}
|
|
55670
|
-
const ModuleInfoHeaderPlugin = base_create(
|
|
55671
|
-
const NamedChunkIdsPlugin = base_create(
|
|
55672
|
-
const NamedModuleIdsPlugin = base_create(
|
|
55746
|
+
const ModuleInfoHeaderPlugin = base_create(BuiltinPluginName.ModuleInfoHeaderPlugin, (verbose)=>verbose, 'compilation');
|
|
55747
|
+
const NamedChunkIdsPlugin = base_create(BuiltinPluginName.NamedChunkIdsPlugin, ()=>{}, 'compilation');
|
|
55748
|
+
const NamedModuleIdsPlugin = base_create(BuiltinPluginName.NamedModuleIdsPlugin, ()=>{}, 'compilation');
|
|
55673
55749
|
class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
55674
|
-
name =
|
|
55750
|
+
name = BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
55675
55751
|
affectedHooks = 'compilation';
|
|
55676
55752
|
raw() {
|
|
55677
55753
|
return createBuiltinPlugin(this.name, void 0);
|
|
55678
55754
|
}
|
|
55679
55755
|
}
|
|
55680
55756
|
class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
55681
|
-
name =
|
|
55757
|
+
name = BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
55682
55758
|
affectedHooks = 'compilation';
|
|
55683
55759
|
raw() {
|
|
55684
55760
|
return createBuiltinPlugin(this.name, void 0);
|
|
55685
55761
|
}
|
|
55686
55762
|
}
|
|
55687
|
-
const NodeTargetPlugin = base_create(
|
|
55688
|
-
const NoEmitOnErrorsPlugin = base_create(
|
|
55689
|
-
const NormalModuleReplacementPlugin = base_create(
|
|
55763
|
+
const NodeTargetPlugin = base_create(BuiltinPluginName.NodeTargetPlugin, ()=>void 0);
|
|
55764
|
+
const NoEmitOnErrorsPlugin = base_create(BuiltinPluginName.NoEmitOnErrorsPlugin, ()=>void 0);
|
|
55765
|
+
const NormalModuleReplacementPlugin = base_create(BuiltinPluginName.NormalModuleReplacementPlugin, (resourceRegExp, newResource)=>({
|
|
55690
55766
|
resourceRegExp,
|
|
55691
55767
|
newResource: 'function' == typeof newResource ? (data)=>{
|
|
55692
55768
|
newResource(data);
|
|
55693
55769
|
return data;
|
|
55694
55770
|
} : newResource
|
|
55695
55771
|
}));
|
|
55696
|
-
const OccurrenceChunkIdsPlugin = base_create(
|
|
55772
|
+
const OccurrenceChunkIdsPlugin = base_create(BuiltinPluginName.OccurrenceChunkIdsPlugin, (options)=>({
|
|
55697
55773
|
...options
|
|
55698
55774
|
}), 'compilation');
|
|
55699
|
-
const ProgressPlugin = base_create(
|
|
55775
|
+
const ProgressPlugin = base_create(BuiltinPluginName.ProgressPlugin, (progress = {})=>{
|
|
55700
55776
|
if ('function' == typeof progress) return {
|
|
55701
55777
|
handler: (percentage, msg, info)=>{
|
|
55702
55778
|
progress(percentage, msg, info);
|
|
@@ -55704,7 +55780,7 @@ const ProgressPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlugi
|
|
|
55704
55780
|
};
|
|
55705
55781
|
return progress;
|
|
55706
55782
|
});
|
|
55707
|
-
const ProvidePlugin = base_create(
|
|
55783
|
+
const ProvidePlugin = base_create(BuiltinPluginName.ProvidePlugin, (provide)=>{
|
|
55708
55784
|
const entries = Object.entries(provide).map(([key, value])=>{
|
|
55709
55785
|
if ('string' == typeof value) value = [
|
|
55710
55786
|
value
|
|
@@ -55716,9 +55792,9 @@ const ProvidePlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlugin
|
|
|
55716
55792
|
});
|
|
55717
55793
|
return Object.fromEntries(entries);
|
|
55718
55794
|
}, 'compilation');
|
|
55719
|
-
const RealContentHashPlugin = base_create(
|
|
55720
|
-
const RemoveEmptyChunksPlugin = base_create(
|
|
55721
|
-
const RsdoctorPluginImpl = base_create(
|
|
55795
|
+
const RealContentHashPlugin = base_create(BuiltinPluginName.RealContentHashPlugin, ()=>{}, 'compilation');
|
|
55796
|
+
const RemoveEmptyChunksPlugin = base_create(BuiltinPluginName.RemoveEmptyChunksPlugin, ()=>{}, 'compilation');
|
|
55797
|
+
const RsdoctorPluginImpl = base_create(BuiltinPluginName.RsdoctorPlugin, function(c = {
|
|
55722
55798
|
moduleGraphFeatures: true,
|
|
55723
55799
|
chunkGraphFeatures: true
|
|
55724
55800
|
}) {
|
|
@@ -55756,35 +55832,35 @@ RsdoctorPlugin.getCompilationHooks = (compilation)=>{
|
|
|
55756
55832
|
return hooks;
|
|
55757
55833
|
};
|
|
55758
55834
|
const createRsdoctorPluginHooksRegisters = (getCompiler, createTap)=>({
|
|
55759
|
-
registerRsdoctorPluginModuleGraphTaps: createTap(
|
|
55835
|
+
registerRsdoctorPluginModuleGraphTaps: createTap(RegisterJsTapKind.RsdoctorPluginModuleGraph, function() {
|
|
55760
55836
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).moduleGraph;
|
|
55761
55837
|
}, function(queried) {
|
|
55762
55838
|
return async function(data) {
|
|
55763
55839
|
return queried.promise(data);
|
|
55764
55840
|
};
|
|
55765
55841
|
}),
|
|
55766
|
-
registerRsdoctorPluginChunkGraphTaps: createTap(
|
|
55842
|
+
registerRsdoctorPluginChunkGraphTaps: createTap(RegisterJsTapKind.RsdoctorPluginChunkGraph, function() {
|
|
55767
55843
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).chunkGraph;
|
|
55768
55844
|
}, function(queried) {
|
|
55769
55845
|
return async function(data) {
|
|
55770
55846
|
return queried.promise(data);
|
|
55771
55847
|
};
|
|
55772
55848
|
}),
|
|
55773
|
-
registerRsdoctorPluginModuleIdsTaps: createTap(
|
|
55849
|
+
registerRsdoctorPluginModuleIdsTaps: createTap(RegisterJsTapKind.RsdoctorPluginModuleIds, function() {
|
|
55774
55850
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).moduleIds;
|
|
55775
55851
|
}, function(queried) {
|
|
55776
55852
|
return async function(data) {
|
|
55777
55853
|
return queried.promise(data);
|
|
55778
55854
|
};
|
|
55779
55855
|
}),
|
|
55780
|
-
registerRsdoctorPluginModuleSourcesTaps: createTap(
|
|
55856
|
+
registerRsdoctorPluginModuleSourcesTaps: createTap(RegisterJsTapKind.RsdoctorPluginModuleSources, function() {
|
|
55781
55857
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).moduleSources;
|
|
55782
55858
|
}, function(queried) {
|
|
55783
55859
|
return async function(data) {
|
|
55784
55860
|
return queried.promise(data);
|
|
55785
55861
|
};
|
|
55786
55862
|
}),
|
|
55787
|
-
registerRsdoctorPluginAssetsTaps: createTap(
|
|
55863
|
+
registerRsdoctorPluginAssetsTaps: createTap(RegisterJsTapKind.RsdoctorPluginAssets, function() {
|
|
55788
55864
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).assets;
|
|
55789
55865
|
}, function(queried) {
|
|
55790
55866
|
return async function(data) {
|
|
@@ -55792,10 +55868,10 @@ const createRsdoctorPluginHooksRegisters = (getCompiler, createTap)=>({
|
|
|
55792
55868
|
};
|
|
55793
55869
|
})
|
|
55794
55870
|
});
|
|
55795
|
-
const RslibPlugin = base_create(
|
|
55796
|
-
const RstestPlugin = base_create(
|
|
55797
|
-
const RuntimeChunkPlugin = base_create(
|
|
55798
|
-
const RuntimePluginImpl = base_create(
|
|
55871
|
+
const RslibPlugin = base_create(BuiltinPluginName.RslibPlugin, (rslib)=>rslib);
|
|
55872
|
+
const RstestPlugin = base_create(BuiltinPluginName.RstestPlugin, (rstest)=>rstest);
|
|
55873
|
+
const RuntimeChunkPlugin = base_create(BuiltinPluginName.RuntimeChunkPlugin, (options)=>options, 'thisCompilation');
|
|
55874
|
+
const RuntimePluginImpl = base_create(rspack_wasi_browser.BuiltinPluginName.RuntimePlugin, ()=>{}, 'compilation');
|
|
55799
55875
|
const RuntimePlugin = RuntimePluginImpl;
|
|
55800
55876
|
const RuntimePlugin_compilationHooksMap = new WeakMap();
|
|
55801
55877
|
RuntimePlugin.getCompilationHooks = (compilation)=>{
|
|
@@ -55825,28 +55901,28 @@ RuntimePlugin.getCompilationHooks = (compilation)=>{
|
|
|
55825
55901
|
return hooks;
|
|
55826
55902
|
};
|
|
55827
55903
|
const createRuntimePluginHooksRegisters = (getCompiler, createTap)=>({
|
|
55828
|
-
registerRuntimePluginCreateScriptTaps: createTap(
|
|
55904
|
+
registerRuntimePluginCreateScriptTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginCreateScript, function() {
|
|
55829
55905
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).createScript;
|
|
55830
55906
|
}, function(queried) {
|
|
55831
55907
|
return function(data) {
|
|
55832
55908
|
return queried.call(data.code, data.chunk);
|
|
55833
55909
|
};
|
|
55834
55910
|
}),
|
|
55835
|
-
registerRuntimePluginCreateLinkTaps: createTap(
|
|
55911
|
+
registerRuntimePluginCreateLinkTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginCreateLink, function() {
|
|
55836
55912
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).createLink;
|
|
55837
55913
|
}, function(queried) {
|
|
55838
55914
|
return function(data) {
|
|
55839
55915
|
return queried.call(data.code, data.chunk);
|
|
55840
55916
|
};
|
|
55841
55917
|
}),
|
|
55842
|
-
registerRuntimePluginLinkPreloadTaps: createTap(
|
|
55918
|
+
registerRuntimePluginLinkPreloadTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginLinkPreload, function() {
|
|
55843
55919
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).linkPreload;
|
|
55844
55920
|
}, function(queried) {
|
|
55845
55921
|
return function(data) {
|
|
55846
55922
|
return queried.call(data.code, data.chunk);
|
|
55847
55923
|
};
|
|
55848
55924
|
}),
|
|
55849
|
-
registerRuntimePluginLinkPrefetchTaps: createTap(
|
|
55925
|
+
registerRuntimePluginLinkPrefetchTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginLinkPrefetch, function() {
|
|
55850
55926
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).linkPrefetch;
|
|
55851
55927
|
}, function(queried) {
|
|
55852
55928
|
return function(data) {
|
|
@@ -55868,7 +55944,7 @@ class Coordinator {
|
|
|
55868
55944
|
configurable: false,
|
|
55869
55945
|
writable: false,
|
|
55870
55946
|
value: ()=>{
|
|
55871
|
-
if (!this.#binding) this.#binding = new
|
|
55947
|
+
if (!this.#binding) this.#binding = new JsCoordinator(()=>{
|
|
55872
55948
|
if (!this.#serverCompiler) throw new Error("[RscPlugin] Coordinator.getOrInitBinding() called before the server compiler was attached. Call coordinator.applyServerCompiler(serverCompiler) first.");
|
|
55873
55949
|
return this.#serverCompiler[GET_COMPILER_ID]();
|
|
55874
55950
|
});
|
|
@@ -55926,9 +56002,13 @@ class RscServerPlugin extends RspackBuiltinPlugin {
|
|
|
55926
56002
|
}
|
|
55927
56003
|
raw(compiler) {
|
|
55928
56004
|
this.#options.coordinator.applyServerCompiler(compiler);
|
|
56005
|
+
const { coordinator, onServerComponentChanges } = this.#options;
|
|
56006
|
+
let onManifest;
|
|
56007
|
+
if (this.#options.onManifest) onManifest = (json)=>Promise.resolve(this.#options.onManifest(JSON.parse(json)));
|
|
55929
56008
|
return createBuiltinPlugin(this.name, {
|
|
55930
|
-
coordinator:
|
|
55931
|
-
onServerComponentChanges
|
|
56009
|
+
coordinator: coordinator[GET_OR_INIT_BINDING](),
|
|
56010
|
+
onServerComponentChanges,
|
|
56011
|
+
onManifest
|
|
55932
56012
|
});
|
|
55933
56013
|
}
|
|
55934
56014
|
}
|
|
@@ -55958,20 +56038,20 @@ const rsc = {
|
|
|
55958
56038
|
ssr: 'server-side-rendering'
|
|
55959
56039
|
}
|
|
55960
56040
|
};
|
|
55961
|
-
const SideEffectsFlagPlugin = base_create(
|
|
55962
|
-
const SizeLimitsPlugin = base_create(
|
|
56041
|
+
const SideEffectsFlagPlugin = base_create(BuiltinPluginName.SideEffectsFlagPlugin, ()=>{}, 'compilation');
|
|
56042
|
+
const SizeLimitsPlugin = base_create(BuiltinPluginName.SizeLimitsPlugin, (options)=>{
|
|
55963
56043
|
const hints = false === options.hints ? void 0 : options.hints;
|
|
55964
56044
|
return {
|
|
55965
56045
|
...options,
|
|
55966
56046
|
hints
|
|
55967
56047
|
};
|
|
55968
56048
|
});
|
|
55969
|
-
const SourceMapDevToolPlugin = base_create(
|
|
56049
|
+
const SourceMapDevToolPlugin = base_create(BuiltinPluginName.SourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
55970
56050
|
var SubresourceIntegrityPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
55971
56051
|
const SubresourceIntegrityPlugin_PLUGIN_NAME = 'SubresourceIntegrityPlugin';
|
|
55972
56052
|
const NATIVE_HTML_PLUGIN = 'HtmlRspackPlugin';
|
|
55973
56053
|
const HTTP_PROTOCOL_REGEX = /^https?:/;
|
|
55974
|
-
const NativeSubresourceIntegrityPlugin = base_create(
|
|
56054
|
+
const NativeSubresourceIntegrityPlugin = base_create(BuiltinPluginName.SubresourceIntegrityPlugin, function(options) {
|
|
55975
56055
|
let htmlPlugin = 'Disabled';
|
|
55976
56056
|
if (options.htmlPlugin === NATIVE_HTML_PLUGIN) htmlPlugin = 'Native';
|
|
55977
56057
|
else if ('string' == typeof options.htmlPlugin) htmlPlugin = 'JavaScript';
|
|
@@ -56129,33 +56209,45 @@ function SwcJsMinimizerPlugin_isObject(value) {
|
|
|
56129
56209
|
}
|
|
56130
56210
|
function getRawExtractCommentsOptions(extractComments) {
|
|
56131
56211
|
const conditionStr = (condition)=>{
|
|
56132
|
-
if (void 0 === condition || true === condition) return
|
|
56212
|
+
if (void 0 === condition || true === condition) return {
|
|
56213
|
+
source: '@preserve|@lic|@cc_on|^\\**!',
|
|
56214
|
+
flags: ''
|
|
56215
|
+
};
|
|
56133
56216
|
if (false === condition) throw Error('unreachable');
|
|
56134
|
-
return
|
|
56217
|
+
return {
|
|
56218
|
+
source: condition.source,
|
|
56219
|
+
flags: condition.flags
|
|
56220
|
+
};
|
|
56135
56221
|
};
|
|
56136
56222
|
if ('boolean' == typeof extractComments) {
|
|
56137
56223
|
if (!extractComments) return;
|
|
56224
|
+
const { source, flags } = conditionStr(extractComments);
|
|
56138
56225
|
const res = {
|
|
56139
|
-
condition:
|
|
56226
|
+
condition: source,
|
|
56227
|
+
conditionFlags: flags
|
|
56140
56228
|
};
|
|
56141
56229
|
return res;
|
|
56142
56230
|
}
|
|
56143
56231
|
if (extractComments instanceof RegExp) {
|
|
56232
|
+
const { source, flags } = conditionStr(extractComments);
|
|
56144
56233
|
const res = {
|
|
56145
|
-
condition:
|
|
56234
|
+
condition: source,
|
|
56235
|
+
conditionFlags: flags
|
|
56146
56236
|
};
|
|
56147
56237
|
return res;
|
|
56148
56238
|
}
|
|
56149
56239
|
if (SwcJsMinimizerPlugin_isObject(extractComments)) {
|
|
56150
56240
|
if (false === extractComments.condition) return;
|
|
56241
|
+
const { source, flags } = conditionStr(extractComments.condition);
|
|
56151
56242
|
const res = {
|
|
56152
|
-
condition:
|
|
56243
|
+
condition: source,
|
|
56244
|
+
conditionFlags: flags,
|
|
56153
56245
|
banner: extractComments.banner
|
|
56154
56246
|
};
|
|
56155
56247
|
return res;
|
|
56156
56248
|
}
|
|
56157
56249
|
}
|
|
56158
|
-
const SwcJsMinimizerRspackPlugin = base_create(
|
|
56250
|
+
const SwcJsMinimizerRspackPlugin = base_create(BuiltinPluginName.SwcJsMinimizerRspackPlugin, function(options) {
|
|
56159
56251
|
let compress = options?.minimizerOptions?.compress ?? true;
|
|
56160
56252
|
const mangle = options?.minimizerOptions?.mangle ?? true;
|
|
56161
56253
|
const ecma = options?.minimizerOptions?.ecma ?? (this.target?.esVersion && this.target.esVersion > 2022 ? 2022 : this.target.esVersion) ?? 5;
|
|
@@ -56185,9 +56277,9 @@ const SwcJsMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_.
|
|
|
56185
56277
|
}
|
|
56186
56278
|
};
|
|
56187
56279
|
}, 'compilation');
|
|
56188
|
-
const URLPlugin = base_create(
|
|
56280
|
+
const URLPlugin = base_create(BuiltinPluginName.URLPlugin, ()=>{}, 'compilation');
|
|
56189
56281
|
class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
|
|
56190
|
-
name =
|
|
56282
|
+
name = BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
56191
56283
|
raw(compiler) {
|
|
56192
56284
|
compiler.options.output.chunkLoading = "import-scripts";
|
|
56193
56285
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -56198,7 +56290,8 @@ class WorkerPlugin extends RspackBuiltinPlugin {
|
|
|
56198
56290
|
wasmLoading;
|
|
56199
56291
|
module;
|
|
56200
56292
|
workerPublicPath;
|
|
56201
|
-
name =
|
|
56293
|
+
name = BuiltinPluginName.WorkerPlugin;
|
|
56294
|
+
affectedHooks = 'compilation';
|
|
56202
56295
|
constructor(chunkLoading, wasmLoading, module, workerPublicPath){
|
|
56203
56296
|
super(), this.chunkLoading = chunkLoading, this.wasmLoading = wasmLoading, this.module = module, this.workerPublicPath = workerPublicPath;
|
|
56204
56297
|
}
|
|
@@ -56640,7 +56733,7 @@ function eachParent(file, callback) {
|
|
|
56640
56733
|
do {
|
|
56641
56734
|
const result = callback(loc);
|
|
56642
56735
|
if (void 0 !== result) return result;
|
|
56643
|
-
}while (loc !== (loc = path_browserify.dirname(loc)))
|
|
56736
|
+
}while (loc !== (loc = path_browserify.dirname(loc)))
|
|
56644
56737
|
}
|
|
56645
56738
|
function findConfigFile(from) {
|
|
56646
56739
|
return eachParent(from, (dir)=>{
|
|
@@ -57241,7 +57334,7 @@ const TARGETS = [
|
|
|
57241
57334
|
/^browserslist(?::(.+))?$/,
|
|
57242
57335
|
(rest, context)=>{
|
|
57243
57336
|
const inlineQuery = rest ? rest.trim() : null;
|
|
57244
|
-
const browsers =
|
|
57337
|
+
const browsers = rspack_wasi_browser.loadBrowserslist(inlineQuery, context);
|
|
57245
57338
|
if (!browsers || !inlineQuery && !hasBrowserslistConfig(context) && !target_process.env.BROWSERSLIST) throw new Error(`No browserslist config found to handle the 'browserslist' target.
|
|
57246
57339
|
See https://github.com/browserslist/browserslist#queries for possible ways to provide a config.
|
|
57247
57340
|
The recommended way is to add a 'browserslist' key to your package.json and list supported browsers (resp. node.js versions).
|
|
@@ -57573,7 +57666,6 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
57573
57666
|
production
|
|
57574
57667
|
});
|
|
57575
57668
|
options.resolve = cleverMerge(getResolveDefaults({
|
|
57576
|
-
context: options.context,
|
|
57577
57669
|
targetProperties,
|
|
57578
57670
|
mode: options.mode
|
|
57579
57671
|
}), options.resolve);
|
|
@@ -57735,7 +57827,7 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
57735
57827
|
type: "javascript/auto"
|
|
57736
57828
|
},
|
|
57737
57829
|
{
|
|
57738
|
-
test: /\.json
|
|
57830
|
+
test: /\.json$/,
|
|
57739
57831
|
type: 'json'
|
|
57740
57832
|
},
|
|
57741
57833
|
{
|
|
@@ -57743,22 +57835,22 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
57743
57835
|
type: 'json'
|
|
57744
57836
|
},
|
|
57745
57837
|
{
|
|
57746
|
-
test: /\.mjs
|
|
57838
|
+
test: /\.mjs$/,
|
|
57747
57839
|
...esm
|
|
57748
57840
|
},
|
|
57749
57841
|
{
|
|
57750
|
-
test: /\.js
|
|
57842
|
+
test: /\.js$/,
|
|
57751
57843
|
descriptionData: {
|
|
57752
57844
|
type: 'module'
|
|
57753
57845
|
},
|
|
57754
57846
|
...esm
|
|
57755
57847
|
},
|
|
57756
57848
|
{
|
|
57757
|
-
test: /\.cjs
|
|
57849
|
+
test: /\.cjs$/,
|
|
57758
57850
|
...commonjs
|
|
57759
57851
|
},
|
|
57760
57852
|
{
|
|
57761
|
-
test: /\.js
|
|
57853
|
+
test: /\.js$/,
|
|
57762
57854
|
descriptionData: {
|
|
57763
57855
|
type: 'commonjs'
|
|
57764
57856
|
},
|
|
@@ -57789,7 +57881,7 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
57789
57881
|
]
|
|
57790
57882
|
};
|
|
57791
57883
|
rules.push({
|
|
57792
|
-
test: /\.wasm
|
|
57884
|
+
test: /\.wasm$/,
|
|
57793
57885
|
...wasm
|
|
57794
57886
|
});
|
|
57795
57887
|
rules.push({
|
|
@@ -58035,7 +58127,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
58035
58127
|
});
|
|
58036
58128
|
D(output, 'bundlerInfo', {});
|
|
58037
58129
|
if ('object' == typeof output.bundlerInfo) {
|
|
58038
|
-
D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
58130
|
+
D(output.bundlerInfo, 'version', "2.0.0-beta.7");
|
|
58039
58131
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
58040
58132
|
D(output.bundlerInfo, 'force', !output.library);
|
|
58041
58133
|
}
|
|
@@ -58088,7 +58180,6 @@ const applyPerformanceDefaults = (performance, { production })=>{
|
|
|
58088
58180
|
F(performance, 'hints', ()=>production ? 'warning' : false);
|
|
58089
58181
|
};
|
|
58090
58182
|
const applyOptimizationDefaults = (optimization, { production, development })=>{
|
|
58091
|
-
D(optimization, 'removeAvailableModules', true);
|
|
58092
58183
|
D(optimization, 'removeEmptyChunks', true);
|
|
58093
58184
|
D(optimization, 'mergeDuplicateChunks', true);
|
|
58094
58185
|
F(optimization, 'moduleIds', ()=>{
|
|
@@ -58148,7 +58239,7 @@ const applyOptimizationDefaults = (optimization, { production, development })=>{
|
|
|
58148
58239
|
F(cacheGroups, 'defaultVendors', ()=>({
|
|
58149
58240
|
idHint: 'vendors',
|
|
58150
58241
|
reuseExistingChunk: true,
|
|
58151
|
-
test: /[\\/]node_modules[\\/]
|
|
58242
|
+
test: /[\\/]node_modules[\\/]/,
|
|
58152
58243
|
priority: -10
|
|
58153
58244
|
}));
|
|
58154
58245
|
}
|
|
@@ -58177,7 +58268,7 @@ const getResolveLoaderDefaults = ()=>{
|
|
|
58177
58268
|
};
|
|
58178
58269
|
return resolveOptions;
|
|
58179
58270
|
};
|
|
58180
|
-
const getResolveDefaults = ({
|
|
58271
|
+
const getResolveDefaults = ({ targetProperties, mode })=>{
|
|
58181
58272
|
const conditions = [
|
|
58182
58273
|
'webpack'
|
|
58183
58274
|
];
|
|
@@ -58191,8 +58282,7 @@ const getResolveDefaults = ({ context, targetProperties, mode })=>{
|
|
|
58191
58282
|
}
|
|
58192
58283
|
const jsExtensions = [
|
|
58193
58284
|
'.js',
|
|
58194
|
-
'.json'
|
|
58195
|
-
'.wasm'
|
|
58285
|
+
'.json'
|
|
58196
58286
|
];
|
|
58197
58287
|
const tp = targetProperties;
|
|
58198
58288
|
const browserField = tp && tp.web && (!tp.node || tp.electron && tp.electronRenderer);
|
|
@@ -58245,9 +58335,7 @@ const getResolveDefaults = ({ context, targetProperties, mode })=>{
|
|
|
58245
58335
|
exportsFields: [
|
|
58246
58336
|
'exports'
|
|
58247
58337
|
],
|
|
58248
|
-
roots: [
|
|
58249
|
-
context
|
|
58250
|
-
],
|
|
58338
|
+
roots: [],
|
|
58251
58339
|
mainFields: [
|
|
58252
58340
|
'main'
|
|
58253
58341
|
],
|
|
@@ -58271,17 +58359,16 @@ const getResolveDefaults = ({ context, targetProperties, mode })=>{
|
|
|
58271
58359
|
unknown: cjsDeps()
|
|
58272
58360
|
}
|
|
58273
58361
|
};
|
|
58274
|
-
const styleConditions = [];
|
|
58275
|
-
styleConditions.push('webpack');
|
|
58276
|
-
styleConditions.push('development' === mode ? 'development' : 'production');
|
|
58277
|
-
styleConditions.push('style');
|
|
58278
58362
|
resolveOptions.byDependency['css-import'] = {
|
|
58279
58363
|
mainFiles: [],
|
|
58280
58364
|
mainFields: [
|
|
58281
58365
|
'style',
|
|
58282
58366
|
'...'
|
|
58283
58367
|
],
|
|
58284
|
-
conditionNames:
|
|
58368
|
+
conditionNames: [
|
|
58369
|
+
'development' === mode ? 'development' : 'production',
|
|
58370
|
+
'style'
|
|
58371
|
+
],
|
|
58285
58372
|
extensions: [
|
|
58286
58373
|
'.css'
|
|
58287
58374
|
],
|
|
@@ -59075,13 +59162,13 @@ class ThreadsafeInputNodeFS {
|
|
|
59075
59162
|
Object.assign(this, NOOP_FILESYSTEM);
|
|
59076
59163
|
if (!fs) return;
|
|
59077
59164
|
this.readDir = memoizeFn(()=>{
|
|
59078
|
-
const readDirFn =
|
|
59165
|
+
const readDirFn = util_util_default().promisify(fs.readdir.bind(fs));
|
|
59079
59166
|
return async (filePath)=>{
|
|
59080
59167
|
const res = await readDirFn(filePath);
|
|
59081
59168
|
return res;
|
|
59082
59169
|
};
|
|
59083
59170
|
});
|
|
59084
|
-
this.readFile = memoizeFn(()=>
|
|
59171
|
+
this.readFile = memoizeFn(()=>util_util_default().promisify(fs.readFile.bind(fs)));
|
|
59085
59172
|
this.stat = memoizeFn(()=>(name)=>new Promise((resolve, reject)=>{
|
|
59086
59173
|
fs.stat(name, (err, stats)=>{
|
|
59087
59174
|
if (err) return reject(err);
|
|
@@ -59132,34 +59219,34 @@ class ThreadsafeOutputNodeFS {
|
|
|
59132
59219
|
constructor(fs){
|
|
59133
59220
|
Object.assign(this, NOOP_FILESYSTEM);
|
|
59134
59221
|
if (!fs) return;
|
|
59135
|
-
this.writeFile = memoizeFn(()=>
|
|
59136
|
-
this.removeFile = memoizeFn(()=>
|
|
59137
|
-
this.mkdir = memoizeFn(()=>
|
|
59138
|
-
this.mkdirp = memoizeFn(()=>
|
|
59139
|
-
this.removeDirAll = memoizeFn(()=>
|
|
59222
|
+
this.writeFile = memoizeFn(()=>util_util_default().promisify(fs.writeFile.bind(fs)));
|
|
59223
|
+
this.removeFile = memoizeFn(()=>util_util_default().promisify(fs.unlink.bind(fs)));
|
|
59224
|
+
this.mkdir = memoizeFn(()=>util_util_default().promisify(fs.mkdir.bind(fs)));
|
|
59225
|
+
this.mkdirp = memoizeFn(()=>util_util_default().promisify(mkdirp.bind(null, fs)));
|
|
59226
|
+
this.removeDirAll = memoizeFn(()=>util_util_default().promisify(rmrf.bind(null, fs)));
|
|
59140
59227
|
this.readDir = memoizeFn(()=>{
|
|
59141
|
-
const readDirFn =
|
|
59228
|
+
const readDirFn = util_util_default().promisify(fs.readdir.bind(fs));
|
|
59142
59229
|
return async (filePath)=>{
|
|
59143
59230
|
const res = await readDirFn(filePath);
|
|
59144
59231
|
return res;
|
|
59145
59232
|
};
|
|
59146
59233
|
});
|
|
59147
|
-
this.readFile = memoizeFn(()=>
|
|
59234
|
+
this.readFile = memoizeFn(()=>util_util_default().promisify(fs.readFile.bind(fs)));
|
|
59148
59235
|
this.stat = memoizeFn(()=>{
|
|
59149
|
-
const statFn =
|
|
59236
|
+
const statFn = util_util_default().promisify(fs.stat.bind(fs));
|
|
59150
59237
|
return async (filePath)=>{
|
|
59151
59238
|
const res = await statFn(filePath);
|
|
59152
59239
|
return res && __to_binding_stat(res);
|
|
59153
59240
|
};
|
|
59154
59241
|
});
|
|
59155
59242
|
this.lstat = memoizeFn(()=>{
|
|
59156
|
-
const statFn =
|
|
59243
|
+
const statFn = util_util_default().promisify((fs.lstat || fs.stat).bind(fs));
|
|
59157
59244
|
return async (filePath)=>{
|
|
59158
59245
|
const res = await statFn(filePath);
|
|
59159
59246
|
return res && __to_binding_stat(res);
|
|
59160
59247
|
};
|
|
59161
59248
|
});
|
|
59162
|
-
this.chmod = memoizeFn(()=>
|
|
59249
|
+
this.chmod = memoizeFn(()=>util_util_default().promisify(fs.chmod.bind(fs)));
|
|
59163
59250
|
}
|
|
59164
59251
|
static __to_binding(fs) {
|
|
59165
59252
|
return new this(fs);
|
|
@@ -59169,17 +59256,17 @@ class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
|
|
|
59169
59256
|
constructor(fs){
|
|
59170
59257
|
super(fs);
|
|
59171
59258
|
if (!fs) return;
|
|
59172
|
-
this.open = memoizeFn(()=>
|
|
59173
|
-
this.rename = memoizeFn(()=>
|
|
59174
|
-
this.close = memoizeFn(()=>
|
|
59259
|
+
this.open = memoizeFn(()=>util_util_default().promisify(fs.open.bind(fs)));
|
|
59260
|
+
this.rename = memoizeFn(()=>util_util_default().promisify(fs.rename.bind(fs)));
|
|
59261
|
+
this.close = memoizeFn(()=>util_util_default().promisify(fs.close.bind(fs)));
|
|
59175
59262
|
this.write = memoizeFn(()=>{
|
|
59176
|
-
const writeFn =
|
|
59263
|
+
const writeFn = util_util_default().promisify(fs.write.bind(fs));
|
|
59177
59264
|
return async (fd, content, position)=>writeFn(fd, content, {
|
|
59178
59265
|
position
|
|
59179
59266
|
});
|
|
59180
59267
|
});
|
|
59181
59268
|
this.writeAll = memoizeFn(()=>{
|
|
59182
|
-
const writeFn =
|
|
59269
|
+
const writeFn = util_util_default().promisify(fs.writeFile.bind(fs));
|
|
59183
59270
|
return async (fd, content)=>writeFn(fd, content);
|
|
59184
59271
|
});
|
|
59185
59272
|
this.read = memoizeFn(()=>{
|
|
@@ -59594,7 +59681,7 @@ class ResolverFactory {
|
|
|
59594
59681
|
return resolver_factory.#binding;
|
|
59595
59682
|
}
|
|
59596
59683
|
constructor(pnp, resolveOptions, loaderResolveOptions){
|
|
59597
|
-
this.#binding = new
|
|
59684
|
+
this.#binding = new rspack_wasi_browser.JsResolverFactory(pnp, getRawResolve(resolveOptions), getRawResolve(loaderResolveOptions));
|
|
59598
59685
|
}
|
|
59599
59686
|
#create(type, resolveOptionsWithDepType) {
|
|
59600
59687
|
const { dependencyType, resolveToContext, ...resolve } = resolveOptionsWithDepType;
|
|
@@ -59697,7 +59784,7 @@ class MultiStats {
|
|
|
59697
59784
|
return obj;
|
|
59698
59785
|
});
|
|
59699
59786
|
if (childOptions.version) {
|
|
59700
|
-
obj.rspackVersion = "2.0.0-beta.
|
|
59787
|
+
obj.rspackVersion = "2.0.0-beta.7";
|
|
59701
59788
|
obj.version = "5.75.0";
|
|
59702
59789
|
}
|
|
59703
59790
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -60308,7 +60395,7 @@ class NativeWatchFileSystem {
|
|
|
60308
60395
|
pollInterval: 'boolean' == typeof options.poll ? 0 : options.poll,
|
|
60309
60396
|
ignored: toJsWatcherIgnored(options.ignored)
|
|
60310
60397
|
};
|
|
60311
|
-
const nativeWatcher = new
|
|
60398
|
+
const nativeWatcher = new rspack_wasi_browser.NativeWatcher(nativeWatcherOptions);
|
|
60312
60399
|
this.#inner = nativeWatcher;
|
|
60313
60400
|
return nativeWatcher;
|
|
60314
60401
|
}
|
|
@@ -60384,7 +60471,7 @@ class NodeWatchFileSystem {
|
|
|
60384
60471
|
pause: ()=>{
|
|
60385
60472
|
if (this.watcher) this.watcher.pause();
|
|
60386
60473
|
},
|
|
60387
|
-
getAggregatedRemovals:
|
|
60474
|
+
getAggregatedRemovals: util_util_default().deprecate(()=>{
|
|
60388
60475
|
const items = this.watcher?.aggregatedRemovals;
|
|
60389
60476
|
if (items && this.inputFileSystem?.purge) {
|
|
60390
60477
|
const fs = this.inputFileSystem;
|
|
@@ -60392,7 +60479,7 @@ class NodeWatchFileSystem {
|
|
|
60392
60479
|
}
|
|
60393
60480
|
return items ?? new Set();
|
|
60394
60481
|
}, "Watcher.getAggregatedRemovals is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_GET_AGGREGATED_REMOVALS'),
|
|
60395
|
-
getAggregatedChanges:
|
|
60482
|
+
getAggregatedChanges: util_util_default().deprecate(()=>{
|
|
60396
60483
|
const items = this.watcher?.aggregatedChanges;
|
|
60397
60484
|
if (items && this.inputFileSystem?.purge) {
|
|
60398
60485
|
const fs = this.inputFileSystem;
|
|
@@ -60400,8 +60487,8 @@ class NodeWatchFileSystem {
|
|
|
60400
60487
|
}
|
|
60401
60488
|
return items ?? new Set();
|
|
60402
60489
|
}, "Watcher.getAggregatedChanges is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_GET_AGGREGATED_CHANGES'),
|
|
60403
|
-
getFileTimeInfoEntries:
|
|
60404
|
-
getContextTimeInfoEntries:
|
|
60490
|
+
getFileTimeInfoEntries: util_util_default().deprecate(()=>fetchTimeInfo().fileTimeInfoEntries, "Watcher.getFileTimeInfoEntries is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_FILE_TIME_INFO_ENTRIES'),
|
|
60491
|
+
getContextTimeInfoEntries: util_util_default().deprecate(()=>fetchTimeInfo().contextTimeInfoEntries, "Watcher.getContextTimeInfoEntries is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_CONTEXT_TIME_INFO_ENTRIES'),
|
|
60405
60492
|
getInfo: ()=>{
|
|
60406
60493
|
const removals = this.watcher?.aggregatedRemovals ?? new Set();
|
|
60407
60494
|
const changes = this.watcher?.aggregatedChanges ?? new Set();
|
|
@@ -60497,7 +60584,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
60497
60584
|
const writeColored = (prefix, colorPrefix, colorSuffix)=>(...args)=>{
|
|
60498
60585
|
if (currentCollapsed > 0) return;
|
|
60499
60586
|
clearStatusMessage();
|
|
60500
|
-
const str = indent(
|
|
60587
|
+
const str = indent(util_util.format(...args), prefix, colorPrefix, colorSuffix);
|
|
60501
60588
|
stream.write(`${str}\n`);
|
|
60502
60589
|
writeStatusMessage();
|
|
60503
60590
|
};
|
|
@@ -60557,7 +60644,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
60557
60644
|
}
|
|
60558
60645
|
};
|
|
60559
60646
|
}
|
|
60560
|
-
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.
|
|
60647
|
+
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
60561
60648
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
60562
60649
|
class NodeEnvironmentPlugin {
|
|
60563
60650
|
options;
|
|
@@ -60639,7 +60726,7 @@ class IgnoreWarningsPlugin {
|
|
|
60639
60726
|
compilation.hooks.processWarnings.tap(this.name, (warnings)=>warnings.filter((warning)=>{
|
|
60640
60727
|
const plainWarning = warning.message ? {
|
|
60641
60728
|
...warning,
|
|
60642
|
-
message:
|
|
60729
|
+
message: util_util_default().stripVTControlCharacters(warning.message)
|
|
60643
60730
|
} : warning;
|
|
60644
60731
|
return !this._ignorePattern.some((ignore)=>ignore(plainWarning, compilation));
|
|
60645
60732
|
}));
|
|
@@ -61354,7 +61441,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61354
61441
|
const [label, first, second] = entry.args;
|
|
61355
61442
|
if ('number' == typeof first && 'number' == typeof second) message = `${label}: ${1000 * first + second / 1000000} ms`;
|
|
61356
61443
|
}
|
|
61357
|
-
if (!message) message = entry.args?.length ?
|
|
61444
|
+
if (!message) message = entry.args?.length ? util_util.format(entry.args[0], ...entry.args.slice(1)) : '';
|
|
61358
61445
|
const newEntry = {
|
|
61359
61446
|
type,
|
|
61360
61447
|
message: message || '',
|
|
@@ -61383,7 +61470,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61383
61470
|
},
|
|
61384
61471
|
version: (object)=>{
|
|
61385
61472
|
object.version = "5.75.0";
|
|
61386
|
-
object.rspackVersion = "2.0.0-beta.
|
|
61473
|
+
object.rspackVersion = "2.0.0-beta.7";
|
|
61387
61474
|
},
|
|
61388
61475
|
env: (object, _compilation, _context, { _env })=>{
|
|
61389
61476
|
object.env = _env;
|
|
@@ -63170,7 +63257,7 @@ function rspack_rspack(options, callback) {
|
|
|
63170
63257
|
const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
63171
63258
|
const getOptions = (uid)=>getPluginOptions(getCompiler().__internal__get_compilation(), uid);
|
|
63172
63259
|
return {
|
|
63173
|
-
registerHtmlPluginBeforeAssetTagGenerationTaps: createTap(
|
|
63260
|
+
registerHtmlPluginBeforeAssetTagGenerationTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginBeforeAssetTagGeneration, function() {
|
|
63174
63261
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeAssetTagGeneration;
|
|
63175
63262
|
}, function(queried) {
|
|
63176
63263
|
return async function(data) {
|
|
@@ -63186,7 +63273,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63186
63273
|
return res;
|
|
63187
63274
|
};
|
|
63188
63275
|
}),
|
|
63189
|
-
registerHtmlPluginAlterAssetTagsTaps: createTap(
|
|
63276
|
+
registerHtmlPluginAlterAssetTagsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAlterAssetTags, function() {
|
|
63190
63277
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTags;
|
|
63191
63278
|
}, function(queried) {
|
|
63192
63279
|
return async function(data) {
|
|
@@ -63202,7 +63289,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63202
63289
|
return res;
|
|
63203
63290
|
};
|
|
63204
63291
|
}),
|
|
63205
|
-
registerHtmlPluginAlterAssetTagGroupsTaps: createTap(
|
|
63292
|
+
registerHtmlPluginAlterAssetTagGroupsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAlterAssetTagGroups, function() {
|
|
63206
63293
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTagGroups;
|
|
63207
63294
|
}, function(queried) {
|
|
63208
63295
|
return async function(data) {
|
|
@@ -63218,7 +63305,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63218
63305
|
return res;
|
|
63219
63306
|
};
|
|
63220
63307
|
}),
|
|
63221
|
-
registerHtmlPluginAfterTemplateExecutionTaps: createTap(
|
|
63308
|
+
registerHtmlPluginAfterTemplateExecutionTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAfterTemplateExecution, function() {
|
|
63222
63309
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterTemplateExecution;
|
|
63223
63310
|
}, function(queried) {
|
|
63224
63311
|
return async function(data) {
|
|
@@ -63233,7 +63320,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63233
63320
|
return res;
|
|
63234
63321
|
};
|
|
63235
63322
|
}),
|
|
63236
|
-
registerHtmlPluginBeforeEmitTaps: createTap(
|
|
63323
|
+
registerHtmlPluginBeforeEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginBeforeEmit, function() {
|
|
63237
63324
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeEmit;
|
|
63238
63325
|
}, function(queried) {
|
|
63239
63326
|
return async function(data) {
|
|
@@ -63249,7 +63336,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63249
63336
|
return res;
|
|
63250
63337
|
};
|
|
63251
63338
|
}),
|
|
63252
|
-
registerHtmlPluginAfterEmitTaps: createTap(
|
|
63339
|
+
registerHtmlPluginAfterEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAfterEmit, function() {
|
|
63253
63340
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterEmit;
|
|
63254
63341
|
}, function(queried) {
|
|
63255
63342
|
return async function(data) {
|
|
@@ -63278,7 +63365,7 @@ class CodeGenerationResult {
|
|
|
63278
63365
|
}
|
|
63279
63366
|
}
|
|
63280
63367
|
const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>({
|
|
63281
|
-
registerCompilationAdditionalTreeRuntimeRequirementsTaps: createTap(
|
|
63368
|
+
registerCompilationAdditionalTreeRuntimeRequirementsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAdditionalTreeRuntimeRequirements, function() {
|
|
63282
63369
|
return getCompiler().__internal__get_compilation().hooks.additionalTreeRuntimeRequirements;
|
|
63283
63370
|
}, function(queried) {
|
|
63284
63371
|
return function({ chunk, runtimeRequirements }) {
|
|
@@ -63289,7 +63376,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63289
63376
|
};
|
|
63290
63377
|
};
|
|
63291
63378
|
}),
|
|
63292
|
-
registerCompilationRuntimeRequirementInTreeTaps: createMapTap(
|
|
63379
|
+
registerCompilationRuntimeRequirementInTreeTaps: createMapTap(rspack_wasi_browser.RegisterJsTapKind.CompilationRuntimeRequirementInTree, function() {
|
|
63293
63380
|
return getCompiler().__internal__get_compilation().hooks.runtimeRequirementInTree;
|
|
63294
63381
|
}, function(queried) {
|
|
63295
63382
|
return function({ chunk, allRuntimeRequirements, runtimeRequirements }) {
|
|
@@ -63311,7 +63398,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63311
63398
|
};
|
|
63312
63399
|
};
|
|
63313
63400
|
}),
|
|
63314
|
-
registerCompilationRuntimeModuleTaps: createTap(
|
|
63401
|
+
registerCompilationRuntimeModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationRuntimeModule, function() {
|
|
63315
63402
|
return getCompiler().__internal__get_compilation().hooks.runtimeModule;
|
|
63316
63403
|
}, function(queried) {
|
|
63317
63404
|
return function({ module, chunk }) {
|
|
@@ -63324,28 +63411,28 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63324
63411
|
if (newSource && newSource !== originSource) return module;
|
|
63325
63412
|
};
|
|
63326
63413
|
}),
|
|
63327
|
-
registerCompilationBuildModuleTaps: createTap(
|
|
63414
|
+
registerCompilationBuildModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationBuildModule, function() {
|
|
63328
63415
|
return getCompiler().__internal__get_compilation().hooks.buildModule;
|
|
63329
63416
|
}, function(queried) {
|
|
63330
63417
|
return function(module) {
|
|
63331
63418
|
return queried.call(module);
|
|
63332
63419
|
};
|
|
63333
63420
|
}),
|
|
63334
|
-
registerCompilationStillValidModuleTaps: createTap(
|
|
63421
|
+
registerCompilationStillValidModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationStillValidModule, function() {
|
|
63335
63422
|
return getCompiler().__internal__get_compilation().hooks.stillValidModule;
|
|
63336
63423
|
}, function(queried) {
|
|
63337
63424
|
return function(module) {
|
|
63338
63425
|
return queried.call(module);
|
|
63339
63426
|
};
|
|
63340
63427
|
}),
|
|
63341
|
-
registerCompilationSucceedModuleTaps: createTap(
|
|
63428
|
+
registerCompilationSucceedModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationSucceedModule, function() {
|
|
63342
63429
|
return getCompiler().__internal__get_compilation().hooks.succeedModule;
|
|
63343
63430
|
}, function(queried) {
|
|
63344
63431
|
return function(module) {
|
|
63345
63432
|
return queried.call(module);
|
|
63346
63433
|
};
|
|
63347
63434
|
}),
|
|
63348
|
-
registerCompilationExecuteModuleTaps: createTap(
|
|
63435
|
+
registerCompilationExecuteModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationExecuteModule, function() {
|
|
63349
63436
|
return getCompiler().__internal__get_compilation().hooks.executeModule;
|
|
63350
63437
|
}, function(queried) {
|
|
63351
63438
|
return function({ entry, id, codegenResults, runtimeModules }) {
|
|
@@ -63391,42 +63478,42 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63391
63478
|
}
|
|
63392
63479
|
};
|
|
63393
63480
|
}),
|
|
63394
|
-
registerCompilationFinishModulesTaps: createTap(
|
|
63481
|
+
registerCompilationFinishModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationFinishModules, function() {
|
|
63395
63482
|
return getCompiler().__internal__get_compilation().hooks.finishModules;
|
|
63396
63483
|
}, function(queried) {
|
|
63397
63484
|
return async function() {
|
|
63398
63485
|
return queried.promise(getCompiler().__internal__get_compilation().modules);
|
|
63399
63486
|
};
|
|
63400
63487
|
}),
|
|
63401
|
-
registerCompilationOptimizeModulesTaps: createTap(
|
|
63488
|
+
registerCompilationOptimizeModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationOptimizeModules, function() {
|
|
63402
63489
|
return getCompiler().__internal__get_compilation().hooks.optimizeModules;
|
|
63403
63490
|
}, function(queried) {
|
|
63404
63491
|
return function() {
|
|
63405
63492
|
return queried.call(getCompiler().__internal__get_compilation().modules.values());
|
|
63406
63493
|
};
|
|
63407
63494
|
}),
|
|
63408
|
-
registerCompilationAfterOptimizeModulesTaps: createTap(
|
|
63495
|
+
registerCompilationAfterOptimizeModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAfterOptimizeModules, function() {
|
|
63409
63496
|
return getCompiler().__internal__get_compilation().hooks.afterOptimizeModules;
|
|
63410
63497
|
}, function(queried) {
|
|
63411
63498
|
return function() {
|
|
63412
63499
|
queried.call(getCompiler().__internal__get_compilation().modules.values());
|
|
63413
63500
|
};
|
|
63414
63501
|
}),
|
|
63415
|
-
registerCompilationOptimizeTreeTaps: createTap(
|
|
63502
|
+
registerCompilationOptimizeTreeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationOptimizeTree, function() {
|
|
63416
63503
|
return getCompiler().__internal__get_compilation().hooks.optimizeTree;
|
|
63417
63504
|
}, function(queried) {
|
|
63418
63505
|
return async function() {
|
|
63419
63506
|
return queried.promise(getCompiler().__internal__get_compilation().chunks, getCompiler().__internal__get_compilation().modules);
|
|
63420
63507
|
};
|
|
63421
63508
|
}),
|
|
63422
|
-
registerCompilationOptimizeChunkModulesTaps: createTap(
|
|
63509
|
+
registerCompilationOptimizeChunkModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationOptimizeChunkModules, function() {
|
|
63423
63510
|
return getCompiler().__internal__get_compilation().hooks.optimizeChunkModules;
|
|
63424
63511
|
}, function(queried) {
|
|
63425
63512
|
return async function() {
|
|
63426
63513
|
return queried.promise(getCompiler().__internal__get_compilation().chunks, getCompiler().__internal__get_compilation().modules);
|
|
63427
63514
|
};
|
|
63428
63515
|
}),
|
|
63429
|
-
registerCompilationBeforeModuleIdsTaps: createTap(
|
|
63516
|
+
registerCompilationBeforeModuleIdsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationBeforeModuleIds, function() {
|
|
63430
63517
|
return getCompiler().__internal__get_compilation().hooks.beforeModuleIds;
|
|
63431
63518
|
}, function(queried) {
|
|
63432
63519
|
return function(arg) {
|
|
@@ -63461,7 +63548,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63461
63548
|
};
|
|
63462
63549
|
};
|
|
63463
63550
|
}),
|
|
63464
|
-
registerCompilationChunkHashTaps: createTap(
|
|
63551
|
+
registerCompilationChunkHashTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationChunkHash, function() {
|
|
63465
63552
|
return getCompiler().__internal__get_compilation().hooks.chunkHash;
|
|
63466
63553
|
}, function(queried) {
|
|
63467
63554
|
return function(chunk) {
|
|
@@ -63473,35 +63560,35 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63473
63560
|
return 'string' == typeof digestResult ? compilation_Buffer.from(digestResult) : digestResult;
|
|
63474
63561
|
};
|
|
63475
63562
|
}),
|
|
63476
|
-
registerCompilationChunkAssetTaps: createTap(
|
|
63563
|
+
registerCompilationChunkAssetTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationChunkAsset, function() {
|
|
63477
63564
|
return getCompiler().__internal__get_compilation().hooks.chunkAsset;
|
|
63478
63565
|
}, function(queried) {
|
|
63479
63566
|
return function({ chunk, filename }) {
|
|
63480
63567
|
return queried.call(chunk, filename);
|
|
63481
63568
|
};
|
|
63482
63569
|
}),
|
|
63483
|
-
registerCompilationProcessAssetsTaps: createTap(
|
|
63570
|
+
registerCompilationProcessAssetsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationProcessAssets, function() {
|
|
63484
63571
|
return getCompiler().__internal__get_compilation().hooks.processAssets;
|
|
63485
63572
|
}, function(queried) {
|
|
63486
63573
|
return async function() {
|
|
63487
63574
|
return queried.promise(getCompiler().__internal__get_compilation().assets);
|
|
63488
63575
|
};
|
|
63489
63576
|
}),
|
|
63490
|
-
registerCompilationAfterProcessAssetsTaps: createTap(
|
|
63577
|
+
registerCompilationAfterProcessAssetsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAfterProcessAssets, function() {
|
|
63491
63578
|
return getCompiler().__internal__get_compilation().hooks.afterProcessAssets;
|
|
63492
63579
|
}, function(queried) {
|
|
63493
63580
|
return function() {
|
|
63494
63581
|
return queried.call(getCompiler().__internal__get_compilation().assets);
|
|
63495
63582
|
};
|
|
63496
63583
|
}),
|
|
63497
|
-
registerCompilationSealTaps: createTap(
|
|
63584
|
+
registerCompilationSealTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationSeal, function() {
|
|
63498
63585
|
return getCompiler().__internal__get_compilation().hooks.seal;
|
|
63499
63586
|
}, function(queried) {
|
|
63500
63587
|
return function() {
|
|
63501
63588
|
return queried.call();
|
|
63502
63589
|
};
|
|
63503
63590
|
}),
|
|
63504
|
-
registerCompilationAfterSealTaps: createTap(
|
|
63591
|
+
registerCompilationAfterSealTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAfterSeal, function() {
|
|
63505
63592
|
return getCompiler().__internal__get_compilation().hooks.afterSeal;
|
|
63506
63593
|
}, function(queried) {
|
|
63507
63594
|
return async function() {
|
|
@@ -63510,7 +63597,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63510
63597
|
})
|
|
63511
63598
|
});
|
|
63512
63599
|
const createCompilerHooksRegisters = (getCompiler, createTap)=>({
|
|
63513
|
-
registerCompilerThisCompilationTaps: createTap(
|
|
63600
|
+
registerCompilerThisCompilationTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerThisCompilation, function() {
|
|
63514
63601
|
return getCompiler().hooks.thisCompilation;
|
|
63515
63602
|
}, function(queried) {
|
|
63516
63603
|
return function(native) {
|
|
@@ -63518,49 +63605,49 @@ const createCompilerHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63518
63605
|
return queried.call(getCompiler().__internal__get_compilation(), getCompiler().__internal__get_compilation_params());
|
|
63519
63606
|
};
|
|
63520
63607
|
}),
|
|
63521
|
-
registerCompilerCompilationTaps: createTap(
|
|
63608
|
+
registerCompilerCompilationTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerCompilation, function() {
|
|
63522
63609
|
return getCompiler().hooks.compilation;
|
|
63523
63610
|
}, function(queried) {
|
|
63524
63611
|
return function() {
|
|
63525
63612
|
return queried.call(getCompiler().__internal__get_compilation(), getCompiler().__internal__get_compilation_params());
|
|
63526
63613
|
};
|
|
63527
63614
|
}),
|
|
63528
|
-
registerCompilerMakeTaps: createTap(
|
|
63615
|
+
registerCompilerMakeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerMake, function() {
|
|
63529
63616
|
return getCompiler().hooks.make;
|
|
63530
63617
|
}, function(queried) {
|
|
63531
63618
|
return async function() {
|
|
63532
63619
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63533
63620
|
};
|
|
63534
63621
|
}),
|
|
63535
|
-
registerCompilerFinishMakeTaps: createTap(
|
|
63622
|
+
registerCompilerFinishMakeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerFinishMake, function() {
|
|
63536
63623
|
return getCompiler().hooks.finishMake;
|
|
63537
63624
|
}, function(queried) {
|
|
63538
63625
|
return async function() {
|
|
63539
63626
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63540
63627
|
};
|
|
63541
63628
|
}),
|
|
63542
|
-
registerCompilerShouldEmitTaps: createTap(
|
|
63629
|
+
registerCompilerShouldEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerShouldEmit, function() {
|
|
63543
63630
|
return getCompiler().hooks.shouldEmit;
|
|
63544
63631
|
}, function(queried) {
|
|
63545
63632
|
return function() {
|
|
63546
63633
|
return queried.call(getCompiler().__internal__get_compilation());
|
|
63547
63634
|
};
|
|
63548
63635
|
}),
|
|
63549
|
-
registerCompilerEmitTaps: createTap(
|
|
63636
|
+
registerCompilerEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerEmit, function() {
|
|
63550
63637
|
return getCompiler().hooks.emit;
|
|
63551
63638
|
}, function(queried) {
|
|
63552
63639
|
return async function() {
|
|
63553
63640
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63554
63641
|
};
|
|
63555
63642
|
}),
|
|
63556
|
-
registerCompilerAfterEmitTaps: createTap(
|
|
63643
|
+
registerCompilerAfterEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerAfterEmit, function() {
|
|
63557
63644
|
return getCompiler().hooks.afterEmit;
|
|
63558
63645
|
}, function(queried) {
|
|
63559
63646
|
return async function() {
|
|
63560
63647
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63561
63648
|
};
|
|
63562
63649
|
}),
|
|
63563
|
-
registerCompilerAssetEmittedTaps: createTap(
|
|
63650
|
+
registerCompilerAssetEmittedTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerAssetEmitted, function() {
|
|
63564
63651
|
return getCompiler().hooks.assetEmitted;
|
|
63565
63652
|
}, function(queried) {
|
|
63566
63653
|
return async function({ filename, targetPath, outputPath }) {
|
|
@@ -63695,14 +63782,14 @@ class ContextModuleFactoryAfterResolveData {
|
|
|
63695
63782
|
});
|
|
63696
63783
|
}
|
|
63697
63784
|
}
|
|
63698
|
-
Object.defineProperty(
|
|
63785
|
+
Object.defineProperty(rspack_wasi_browser.Module.prototype, 'identifier', {
|
|
63699
63786
|
enumerable: true,
|
|
63700
63787
|
configurable: true,
|
|
63701
63788
|
value () {
|
|
63702
|
-
return this[
|
|
63789
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
63703
63790
|
}
|
|
63704
63791
|
});
|
|
63705
|
-
Object.defineProperty(
|
|
63792
|
+
Object.defineProperty(rspack_wasi_browser.Module.prototype, 'originalSource', {
|
|
63706
63793
|
enumerable: true,
|
|
63707
63794
|
configurable: true,
|
|
63708
63795
|
value () {
|
|
@@ -63711,7 +63798,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].Module.prototy
|
|
|
63711
63798
|
return null;
|
|
63712
63799
|
}
|
|
63713
63800
|
});
|
|
63714
|
-
Object.defineProperty(
|
|
63801
|
+
Object.defineProperty(rspack_wasi_browser.Module.prototype, 'emitFile', {
|
|
63715
63802
|
enumerable: true,
|
|
63716
63803
|
configurable: true,
|
|
63717
63804
|
value (filename, source, assetInfo) {
|
|
@@ -63719,7 +63806,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].Module.prototy
|
|
|
63719
63806
|
}
|
|
63720
63807
|
});
|
|
63721
63808
|
const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
63722
|
-
registerContextModuleFactoryBeforeResolveTaps: createTap(
|
|
63809
|
+
registerContextModuleFactoryBeforeResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.ContextModuleFactoryBeforeResolve, function() {
|
|
63723
63810
|
return getCompiler().__internal__get_compilation_params().contextModuleFactory.hooks.beforeResolve;
|
|
63724
63811
|
}, function(queried) {
|
|
63725
63812
|
return async function(bindingData) {
|
|
@@ -63728,7 +63815,7 @@ const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63728
63815
|
return result ? ContextModuleFactoryBeforeResolveData.__to_binding(result) : false;
|
|
63729
63816
|
};
|
|
63730
63817
|
}),
|
|
63731
|
-
registerContextModuleFactoryAfterResolveTaps: createTap(
|
|
63818
|
+
registerContextModuleFactoryAfterResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.ContextModuleFactoryAfterResolve, function() {
|
|
63732
63819
|
return getCompiler().__internal__get_compilation_params().contextModuleFactory.hooks.afterResolve;
|
|
63733
63820
|
}, function(queried) {
|
|
63734
63821
|
return async function(bindingData) {
|
|
@@ -63740,7 +63827,7 @@ const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63740
63827
|
});
|
|
63741
63828
|
var javascriptModules_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
63742
63829
|
const createJavaScriptModulesHooksRegisters = (getCompiler, createTap)=>({
|
|
63743
|
-
registerJavascriptModulesChunkHashTaps: createTap(
|
|
63830
|
+
registerJavascriptModulesChunkHashTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.JavascriptModulesChunkHash, function() {
|
|
63744
63831
|
return JavascriptModulesPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).chunkHash;
|
|
63745
63832
|
}, function(queried) {
|
|
63746
63833
|
return function(chunk) {
|
|
@@ -63754,7 +63841,7 @@ const createJavaScriptModulesHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63754
63841
|
})
|
|
63755
63842
|
});
|
|
63756
63843
|
const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createMapTap)=>({
|
|
63757
|
-
registerNormalModuleFactoryBeforeResolveTaps: createTap(
|
|
63844
|
+
registerNormalModuleFactoryBeforeResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryBeforeResolve, function() {
|
|
63758
63845
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.beforeResolve;
|
|
63759
63846
|
}, function(queried) {
|
|
63760
63847
|
return async function(resolveData) {
|
|
@@ -63765,7 +63852,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63765
63852
|
];
|
|
63766
63853
|
};
|
|
63767
63854
|
}),
|
|
63768
|
-
registerNormalModuleFactoryFactorizeTaps: createTap(
|
|
63855
|
+
registerNormalModuleFactoryFactorizeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryFactorize, function() {
|
|
63769
63856
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.factorize;
|
|
63770
63857
|
}, function(queried) {
|
|
63771
63858
|
return async function(resolveData) {
|
|
@@ -63773,7 +63860,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63773
63860
|
return resolveData;
|
|
63774
63861
|
};
|
|
63775
63862
|
}),
|
|
63776
|
-
registerNormalModuleFactoryResolveTaps: createTap(
|
|
63863
|
+
registerNormalModuleFactoryResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryResolve, function() {
|
|
63777
63864
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.resolve;
|
|
63778
63865
|
}, function(queried) {
|
|
63779
63866
|
return async function(resolveData) {
|
|
@@ -63781,7 +63868,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63781
63868
|
return resolveData;
|
|
63782
63869
|
};
|
|
63783
63870
|
}),
|
|
63784
|
-
registerNormalModuleFactoryResolveForSchemeTaps: createMapTap(
|
|
63871
|
+
registerNormalModuleFactoryResolveForSchemeTaps: createMapTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryResolveForScheme, function() {
|
|
63785
63872
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.resolveForScheme;
|
|
63786
63873
|
}, function(queried) {
|
|
63787
63874
|
return async function(args) {
|
|
@@ -63792,7 +63879,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63792
63879
|
];
|
|
63793
63880
|
};
|
|
63794
63881
|
}),
|
|
63795
|
-
registerNormalModuleFactoryAfterResolveTaps: createTap(
|
|
63882
|
+
registerNormalModuleFactoryAfterResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryAfterResolve, function() {
|
|
63796
63883
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.afterResolve;
|
|
63797
63884
|
}, function(queried) {
|
|
63798
63885
|
return async function(resolveData) {
|
|
@@ -63803,7 +63890,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63803
63890
|
];
|
|
63804
63891
|
};
|
|
63805
63892
|
}),
|
|
63806
|
-
registerNormalModuleFactoryCreateModuleTaps: createTap(
|
|
63893
|
+
registerNormalModuleFactoryCreateModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryCreateModule, function() {
|
|
63807
63894
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.createModule;
|
|
63808
63895
|
}, function(queried) {
|
|
63809
63896
|
return async function(args) {
|
|
@@ -64622,7 +64709,7 @@ class Compiler {
|
|
|
64622
64709
|
const rawOptions = getRawOptions(options, this);
|
|
64623
64710
|
rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
64624
64711
|
rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
64625
|
-
const instanceBinding = __webpack_require__("@rspack/binding");
|
|
64712
|
+
const instanceBinding = __webpack_require__("@rspack/binding?91dc");
|
|
64626
64713
|
this.#registers = this.#createHooksRegisters();
|
|
64627
64714
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
64628
64715
|
try {
|
|
@@ -64760,14 +64847,14 @@ class Compiler {
|
|
|
64760
64847
|
return this.#moduleExecutionResultsMap;
|
|
64761
64848
|
}
|
|
64762
64849
|
}
|
|
64763
|
-
Object.defineProperty(
|
|
64850
|
+
Object.defineProperty(rspack_wasi_browser.ConcatenatedModule.prototype, 'identifier', {
|
|
64764
64851
|
enumerable: true,
|
|
64765
64852
|
configurable: true,
|
|
64766
64853
|
value () {
|
|
64767
|
-
return this[
|
|
64854
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
64768
64855
|
}
|
|
64769
64856
|
});
|
|
64770
|
-
Object.defineProperty(
|
|
64857
|
+
Object.defineProperty(rspack_wasi_browser.ConcatenatedModule.prototype, 'originalSource', {
|
|
64771
64858
|
enumerable: true,
|
|
64772
64859
|
configurable: true,
|
|
64773
64860
|
value () {
|
|
@@ -64776,21 +64863,21 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].ConcatenatedMo
|
|
|
64776
64863
|
return null;
|
|
64777
64864
|
}
|
|
64778
64865
|
});
|
|
64779
|
-
Object.defineProperty(
|
|
64866
|
+
Object.defineProperty(rspack_wasi_browser.ConcatenatedModule.prototype, 'emitFile', {
|
|
64780
64867
|
enumerable: true,
|
|
64781
64868
|
configurable: true,
|
|
64782
64869
|
value (filename, source, assetInfo) {
|
|
64783
64870
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
64784
64871
|
}
|
|
64785
64872
|
});
|
|
64786
|
-
Object.defineProperty(
|
|
64873
|
+
Object.defineProperty(rspack_wasi_browser.ContextModule.prototype, 'identifier', {
|
|
64787
64874
|
enumerable: true,
|
|
64788
64875
|
configurable: true,
|
|
64789
64876
|
value () {
|
|
64790
|
-
return this[
|
|
64877
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
64791
64878
|
}
|
|
64792
64879
|
});
|
|
64793
|
-
Object.defineProperty(
|
|
64880
|
+
Object.defineProperty(rspack_wasi_browser.ContextModule.prototype, 'originalSource', {
|
|
64794
64881
|
enumerable: true,
|
|
64795
64882
|
configurable: true,
|
|
64796
64883
|
value () {
|
|
@@ -64799,21 +64886,21 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].ContextModule.
|
|
|
64799
64886
|
return null;
|
|
64800
64887
|
}
|
|
64801
64888
|
});
|
|
64802
|
-
Object.defineProperty(
|
|
64889
|
+
Object.defineProperty(rspack_wasi_browser.ContextModule.prototype, 'emitFile', {
|
|
64803
64890
|
enumerable: true,
|
|
64804
64891
|
configurable: true,
|
|
64805
64892
|
value (filename, source, assetInfo) {
|
|
64806
64893
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
64807
64894
|
}
|
|
64808
64895
|
});
|
|
64809
|
-
Object.defineProperty(
|
|
64896
|
+
Object.defineProperty(rspack_wasi_browser.ExternalModule.prototype, 'identifier', {
|
|
64810
64897
|
enumerable: true,
|
|
64811
64898
|
configurable: true,
|
|
64812
64899
|
value () {
|
|
64813
|
-
return this[
|
|
64900
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
64814
64901
|
}
|
|
64815
64902
|
});
|
|
64816
|
-
Object.defineProperty(
|
|
64903
|
+
Object.defineProperty(rspack_wasi_browser.ExternalModule.prototype, 'originalSource', {
|
|
64817
64904
|
enumerable: true,
|
|
64818
64905
|
configurable: true,
|
|
64819
64906
|
value () {
|
|
@@ -64822,7 +64909,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].ExternalModule
|
|
|
64822
64909
|
return null;
|
|
64823
64910
|
}
|
|
64824
64911
|
});
|
|
64825
|
-
Object.defineProperty(
|
|
64912
|
+
Object.defineProperty(rspack_wasi_browser.ExternalModule.prototype, 'emitFile', {
|
|
64826
64913
|
enumerable: true,
|
|
64827
64914
|
configurable: true,
|
|
64828
64915
|
value (filename, source, assetInfo) {
|
|
@@ -64850,7 +64937,7 @@ const matchObject = (obj, str)=>{
|
|
|
64850
64937
|
}
|
|
64851
64938
|
return true;
|
|
64852
64939
|
};
|
|
64853
|
-
const FlagAllModulesAsUsedPlugin = base_create(
|
|
64940
|
+
const FlagAllModulesAsUsedPlugin = base_create(BuiltinPluginName.FlagAllModulesAsUsedPlugin, (explanation)=>({
|
|
64854
64941
|
explanation
|
|
64855
64942
|
}));
|
|
64856
64943
|
class DllPlugin {
|
|
@@ -64974,7 +65061,7 @@ class LoaderOptionsPlugin {
|
|
|
64974
65061
|
apply(compiler) {
|
|
64975
65062
|
const options = this.options;
|
|
64976
65063
|
compiler.hooks.compilation.tap('LoaderOptionsPlugin', (compilation)=>{
|
|
64977
|
-
|
|
65064
|
+
NormalModule.getCompilationHooks(compilation).loader.tap('LoaderOptionsPlugin', (context)=>{
|
|
64978
65065
|
const resource = context.resourcePath;
|
|
64979
65066
|
if (!resource) return;
|
|
64980
65067
|
if (matchObject(options, resource)) {
|
|
@@ -64991,7 +65078,7 @@ class LoaderTargetPlugin {
|
|
|
64991
65078
|
}
|
|
64992
65079
|
apply(compiler) {
|
|
64993
65080
|
compiler.hooks.compilation.tap('LoaderTargetPlugin', (compilation)=>{
|
|
64994
|
-
|
|
65081
|
+
NormalModule.getCompilationHooks(compilation).loader.tap('LoaderTargetPlugin', (loaderContext)=>{
|
|
64995
65082
|
loaderContext.target = this.target;
|
|
64996
65083
|
});
|
|
64997
65084
|
});
|
|
@@ -65042,7 +65129,7 @@ function setSingleton(compiler) {
|
|
|
65042
65129
|
}
|
|
65043
65130
|
class ShareRuntimePlugin extends RspackBuiltinPlugin {
|
|
65044
65131
|
enhanced;
|
|
65045
|
-
name =
|
|
65132
|
+
name = BuiltinPluginName.ShareRuntimePlugin;
|
|
65046
65133
|
constructor(enhanced = false){
|
|
65047
65134
|
super(), this.enhanced = enhanced;
|
|
65048
65135
|
}
|
|
@@ -65098,7 +65185,7 @@ function normalizeConsumeShareOptions(consumes, shareScope) {
|
|
|
65098
65185
|
}));
|
|
65099
65186
|
}
|
|
65100
65187
|
class ConsumeSharedPlugin extends RspackBuiltinPlugin {
|
|
65101
|
-
name =
|
|
65188
|
+
name = BuiltinPluginName.ConsumeSharedPlugin;
|
|
65102
65189
|
_options;
|
|
65103
65190
|
constructor(options){
|
|
65104
65191
|
super();
|
|
@@ -65149,7 +65236,7 @@ function normalizeProvideShareOptions(options, shareScope, enhanced) {
|
|
|
65149
65236
|
});
|
|
65150
65237
|
}
|
|
65151
65238
|
class ProvideSharedPlugin extends RspackBuiltinPlugin {
|
|
65152
|
-
name =
|
|
65239
|
+
name = BuiltinPluginName.ProvideSharedPlugin;
|
|
65153
65240
|
_provides;
|
|
65154
65241
|
_enhanced;
|
|
65155
65242
|
constructor(options){
|
|
@@ -65166,6 +65253,9 @@ class ProvideSharedPlugin extends RspackBuiltinPlugin {
|
|
|
65166
65253
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
65167
65254
|
}
|
|
65168
65255
|
}
|
|
65256
|
+
function validateShareScope(shareScope, enhanced, pluginName) {
|
|
65257
|
+
if (Array.isArray(shareScope) && shareScope.length > 1 && !enhanced) throw new Error(`[${pluginName}] shareScope as an array with multiple entries requires enhanced=true, got: ${JSON.stringify(shareScope)}`);
|
|
65258
|
+
}
|
|
65169
65259
|
function normalizeSharedOptions(shared) {
|
|
65170
65260
|
return parseOptions(shared, (item, key)=>{
|
|
65171
65261
|
if ('string' != typeof item) throw new Error('Unexpected array in shared');
|
|
@@ -65386,7 +65476,7 @@ function normalizeManifestOptions(mfConfig) {
|
|
|
65386
65476
|
};
|
|
65387
65477
|
}
|
|
65388
65478
|
class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
65389
|
-
name =
|
|
65479
|
+
name = BuiltinPluginName.ModuleFederationManifestPlugin;
|
|
65390
65480
|
rawOpts;
|
|
65391
65481
|
constructor(opts){
|
|
65392
65482
|
super();
|
|
@@ -65414,7 +65504,7 @@ class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
|
65414
65504
|
}
|
|
65415
65505
|
const SHARE_ENTRY_ASSET = 'collect-shared-entries.json';
|
|
65416
65506
|
class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
65417
|
-
name =
|
|
65507
|
+
name = BuiltinPluginName.CollectSharedEntryPlugin;
|
|
65418
65508
|
sharedOptions;
|
|
65419
65509
|
_collectedEntries;
|
|
65420
65510
|
constructor(options){
|
|
@@ -65461,7 +65551,7 @@ function assert(condition, msg) {
|
|
|
65461
65551
|
}
|
|
65462
65552
|
const HOT_UPDATE_SUFFIX = '.hot-update';
|
|
65463
65553
|
class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
65464
|
-
name =
|
|
65554
|
+
name = BuiltinPluginName.SharedContainerPlugin;
|
|
65465
65555
|
filename = '';
|
|
65466
65556
|
_options;
|
|
65467
65557
|
_shareName;
|
|
@@ -65519,7 +65609,7 @@ class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
|
65519
65609
|
}
|
|
65520
65610
|
}
|
|
65521
65611
|
class SharedUsedExportsOptimizerPlugin extends RspackBuiltinPlugin {
|
|
65522
|
-
name =
|
|
65612
|
+
name = BuiltinPluginName.SharedUsedExportsOptimizerPlugin;
|
|
65523
65613
|
sharedOptions;
|
|
65524
65614
|
injectTreeShakingUsedExports;
|
|
65525
65615
|
manifestOptions;
|
|
@@ -65844,7 +65934,7 @@ class TreeShakingSharedPlugin {
|
|
|
65844
65934
|
return this._independentSharePlugin?.buildAssets || {};
|
|
65845
65935
|
}
|
|
65846
65936
|
}
|
|
65847
|
-
const ModuleFederationRuntimePlugin = base_create(
|
|
65937
|
+
const ModuleFederationRuntimePlugin = base_create(BuiltinPluginName.ModuleFederationRuntimePlugin, (options = {})=>options);
|
|
65848
65938
|
class ModuleFederationPlugin {
|
|
65849
65939
|
_options;
|
|
65850
65940
|
_treeShakingSharedPlugin;
|
|
@@ -65946,7 +66036,7 @@ function getRemoteInfos(options) {
|
|
|
65946
66036
|
external: Array.isArray(item) ? item : [
|
|
65947
66037
|
item
|
|
65948
66038
|
],
|
|
65949
|
-
shareScope: options.shareScope
|
|
66039
|
+
shareScope: options.shareScope ?? 'default'
|
|
65950
66040
|
}), (item)=>({
|
|
65951
66041
|
external: Array.isArray(item.external) ? item.external : [
|
|
65952
66042
|
item.external
|
|
@@ -66027,13 +66117,16 @@ function getDefaultEntryRuntime(paths, options, compiler, treeShakingShareFallba
|
|
|
66027
66117
|
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${encodeURIComponent(content)}`;
|
|
66028
66118
|
}
|
|
66029
66119
|
class ContainerPlugin extends RspackBuiltinPlugin {
|
|
66030
|
-
name =
|
|
66120
|
+
name = BuiltinPluginName.ContainerPlugin;
|
|
66031
66121
|
_options;
|
|
66032
66122
|
constructor(options){
|
|
66033
66123
|
super();
|
|
66124
|
+
const shareScope = options.shareScope || 'default';
|
|
66125
|
+
const enhanced = options.enhanced ?? false;
|
|
66126
|
+
validateShareScope(shareScope, enhanced, 'ContainerPlugin');
|
|
66034
66127
|
this._options = {
|
|
66035
66128
|
name: options.name,
|
|
66036
|
-
shareScope
|
|
66129
|
+
shareScope,
|
|
66037
66130
|
library: options.library || {
|
|
66038
66131
|
type: 'global',
|
|
66039
66132
|
name: options.name
|
|
@@ -66051,7 +66144,7 @@ class ContainerPlugin extends RspackBuiltinPlugin {
|
|
|
66051
66144
|
],
|
|
66052
66145
|
name: item.name || void 0
|
|
66053
66146
|
})),
|
|
66054
|
-
enhanced
|
|
66147
|
+
enhanced
|
|
66055
66148
|
};
|
|
66056
66149
|
}
|
|
66057
66150
|
raw(compiler) {
|
|
@@ -66074,24 +66167,28 @@ class ContainerPlugin extends RspackBuiltinPlugin {
|
|
|
66074
66167
|
}
|
|
66075
66168
|
}
|
|
66076
66169
|
class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
66077
|
-
name =
|
|
66170
|
+
name = BuiltinPluginName.ContainerReferencePlugin;
|
|
66078
66171
|
_options;
|
|
66079
66172
|
constructor(options){
|
|
66080
66173
|
super();
|
|
66174
|
+
const enhanced = options.enhanced ?? false;
|
|
66175
|
+
if (options.shareScope) validateShareScope(options.shareScope, enhanced, 'ContainerReferencePlugin');
|
|
66176
|
+
const remotes = parseOptions(options.remotes, (item)=>({
|
|
66177
|
+
external: Array.isArray(item) ? item : [
|
|
66178
|
+
item
|
|
66179
|
+
],
|
|
66180
|
+
shareScope: options.shareScope || 'default'
|
|
66181
|
+
}), (item)=>({
|
|
66182
|
+
external: Array.isArray(item.external) ? item.external : [
|
|
66183
|
+
item.external
|
|
66184
|
+
],
|
|
66185
|
+
shareScope: item.shareScope || options.shareScope || 'default'
|
|
66186
|
+
}));
|
|
66187
|
+
for (const [, config] of remotes)validateShareScope(config.shareScope, enhanced, 'ContainerReferencePlugin');
|
|
66081
66188
|
this._options = {
|
|
66082
66189
|
remoteType: options.remoteType,
|
|
66083
|
-
remotes
|
|
66084
|
-
|
|
66085
|
-
item
|
|
66086
|
-
],
|
|
66087
|
-
shareScope: options.shareScope || 'default'
|
|
66088
|
-
}), (item)=>({
|
|
66089
|
-
external: Array.isArray(item.external) ? item.external : [
|
|
66090
|
-
item.external
|
|
66091
|
-
],
|
|
66092
|
-
shareScope: item.shareScope || options.shareScope || 'default'
|
|
66093
|
-
})),
|
|
66094
|
-
enhanced: options.enhanced ?? false
|
|
66190
|
+
remotes,
|
|
66191
|
+
enhanced
|
|
66095
66192
|
};
|
|
66096
66193
|
}
|
|
66097
66194
|
raw(compiler) {
|
|
@@ -66163,21 +66260,21 @@ class ModuleFederationPluginV1 {
|
|
|
66163
66260
|
}
|
|
66164
66261
|
async function minify(source, options) {
|
|
66165
66262
|
const _options = JSON.stringify(options || {});
|
|
66166
|
-
return
|
|
66263
|
+
return rspack_wasi_browser.minify(source, _options);
|
|
66167
66264
|
}
|
|
66168
66265
|
function minifySync(source, options) {
|
|
66169
66266
|
const _options = JSON.stringify(options || {});
|
|
66170
|
-
return
|
|
66267
|
+
return rspack_wasi_browser.minifySync(source, _options);
|
|
66171
66268
|
}
|
|
66172
66269
|
async function transform(source, options) {
|
|
66173
66270
|
const _options = JSON.stringify(options || {});
|
|
66174
|
-
return
|
|
66271
|
+
return rspack_wasi_browser.transform(source, _options);
|
|
66175
66272
|
}
|
|
66176
66273
|
function transformSync(source, options) {
|
|
66177
66274
|
const _options = JSON.stringify(options || {});
|
|
66178
|
-
return
|
|
66275
|
+
return rspack_wasi_browser.transformSync(source, _options);
|
|
66179
66276
|
}
|
|
66180
|
-
const exports_rspackVersion = "2.0.0-beta.
|
|
66277
|
+
const exports_rspackVersion = "2.0.0-beta.7";
|
|
66181
66278
|
const exports_version = "5.75.0";
|
|
66182
66279
|
const exports_WebpackError = Error;
|
|
66183
66280
|
const exports_config = {
|
|
@@ -66235,13 +66332,13 @@ const exports_experiments = {
|
|
|
66235
66332
|
globalTrace: {
|
|
66236
66333
|
async register (filter, layer, output) {
|
|
66237
66334
|
await trace_JavaScriptTracer.initJavaScriptTrace(layer, output);
|
|
66238
|
-
|
|
66335
|
+
registerGlobalTrace(filter, layer, output);
|
|
66239
66336
|
trace_JavaScriptTracer.initCpuProfiler();
|
|
66240
66337
|
},
|
|
66241
66338
|
async cleanup () {
|
|
66242
66339
|
await trace_JavaScriptTracer.cleanupJavaScriptTrace();
|
|
66243
|
-
|
|
66244
|
-
|
|
66340
|
+
syncTraceEvent(trace_JavaScriptTracer.events);
|
|
66341
|
+
cleanupGlobalTrace();
|
|
66245
66342
|
}
|
|
66246
66343
|
},
|
|
66247
66344
|
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
|
|
@@ -66255,10 +66352,10 @@ const exports_experiments = {
|
|
|
66255
66352
|
transformSync: transformSync
|
|
66256
66353
|
},
|
|
66257
66354
|
resolver: {
|
|
66258
|
-
ResolverFactory:
|
|
66259
|
-
EnforceExtension:
|
|
66260
|
-
async:
|
|
66261
|
-
sync:
|
|
66355
|
+
ResolverFactory: external_rspack_wasi_browser_js_ResolverFactory,
|
|
66356
|
+
EnforceExtension: EnforceExtension,
|
|
66357
|
+
async: external_rspack_wasi_browser_js_async,
|
|
66358
|
+
sync: sync
|
|
66262
66359
|
},
|
|
66263
66360
|
CssChunkingPlugin: CssChunkingPlugin,
|
|
66264
66361
|
createNativePlugin: createNativePlugin,
|
|
@@ -66411,7 +66508,7 @@ class BrowserRequirePlugin {
|
|
|
66411
66508
|
if (module) return module;
|
|
66412
66509
|
}
|
|
66413
66510
|
if (!execute) throw Error(`You should provide 'execute' option if there's no mapping for module '${id}'`);
|
|
66414
|
-
const { path: loaderPath } =
|
|
66511
|
+
const { path: loaderPath } = sync('', id);
|
|
66415
66512
|
if (!loaderPath) throw new Error(`Cannot find loader of ${id}`);
|
|
66416
66513
|
const data = fs_0["default"].readFileSync(loaderPath);
|
|
66417
66514
|
const code = data?.toString() || '';
|
|
@@ -66419,7 +66516,7 @@ class BrowserRequirePlugin {
|
|
|
66419
66516
|
exports: {}
|
|
66420
66517
|
};
|
|
66421
66518
|
const exports = module.exports;
|
|
66422
|
-
const cjs = (
|
|
66519
|
+
const cjs = external_rspack_wasi_browser_js_transformSync(code, JSON.stringify({
|
|
66423
66520
|
module: {
|
|
66424
66521
|
type: 'commonjs'
|
|
66425
66522
|
}
|
|
@@ -66438,4 +66535,4 @@ const builtinMemFs = {
|
|
|
66438
66535
|
volume: fs_0.volume,
|
|
66439
66536
|
memfs: fs_0.memfs
|
|
66440
66537
|
};
|
|
66441
|
-
export { AsyncDependenciesBlock, BannerPlugin, BrowserHttpImportEsmPlugin, BrowserRequirePlugin, CaseSensitivePlugin, CircularDependencyRspackPlugin, Compilation, Compiler, ConcatenatedModule, ContextModule, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, DefaultRuntimeGlobals as RuntimeGlobals, DefinePlugin, Dependency, DllPlugin, DllReferencePlugin, DynamicEntryPlugin, EntryDependency, EntryPlugin, EnvironmentPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, ExternalModule, ExternalsPlugin, HotModuleReplacementPlugin, HtmlRspackPlugin, IgnorePlugin, LightningCssMinimizerRspackPlugin, LoaderOptionsPlugin, LoaderTargetPlugin, Module, ModuleFilenameHelpers_namespaceObject as ModuleFilenameHelpers, MultiCompiler, MultiStats, NoEmitOnErrorsPlugin, NormalModule, NormalModuleReplacementPlugin, ProgressPlugin, ProvidePlugin, RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply, RuntimeModule, RuntimePlugin, SourceMapDevToolPlugin, Stats, SubresourceIntegrityPlugin, SwcJsMinimizerRspackPlugin, Template, ValidationError, builtinMemFs, container, electron, exports_WebpackError as WebpackError, exports_config as config, exports_experiments as experiments, exports_library as library, exports_node as node, exports_rspackVersion as rspackVersion, exports_version as version, exports_wasm as wasm, javascript, lazyCompilationMiddleware,
|
|
66538
|
+
export { AsyncDependenciesBlock, BannerPlugin, BrowserHttpImportEsmPlugin, BrowserRequirePlugin, CaseSensitivePlugin, CircularDependencyRspackPlugin, Compilation, Compiler, ConcatenatedModule, ContextModule, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, DefaultRuntimeGlobals as RuntimeGlobals, DefinePlugin, Dependency, DllPlugin, DllReferencePlugin, DynamicEntryPlugin, EntryDependency, EntryPlugin, EnvironmentPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, ExternalModule, ExternalsPlugin, HotModuleReplacementPlugin, HtmlRspackPlugin, IgnorePlugin, LightningCssMinimizerRspackPlugin, LoaderOptionsPlugin, LoaderTargetPlugin, Module, ModuleFilenameHelpers_namespaceObject as ModuleFilenameHelpers, MultiCompiler, MultiStats, NoEmitOnErrorsPlugin, NormalModule, NormalModuleReplacementPlugin, ProgressPlugin, ProvidePlugin, RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply, RuntimeModule, RuntimePlugin, SourceMapDevToolPlugin, Stats, SubresourceIntegrityPlugin, SwcJsMinimizerRspackPlugin, Template, ValidationError, builtinMemFs, container, electron, exports_WebpackError as WebpackError, exports_config as config, exports_experiments as experiments, exports_library as library, exports_node as node, exports_rspackVersion as rspackVersion, exports_version as version, exports_wasm as wasm, javascript, lazyCompilationMiddleware, lib_EntryOptionPlugin as EntryOptionPlugin, optimize, sharing, src_rspack_0 as "module.exports", src_rspack_0 as rspack, statsFactoryUtils_StatsErrorCode as StatsErrorCode, util, web, webpack_sources_lib as sources, webworker };
|