@rspack/browser 2.1.1 → 2.1.3
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/Compilation.d.ts +7 -7
- package/dist/config/types.d.ts +23 -1
- package/dist/exports.d.ts +4 -2
- package/dist/index.js +188 -193
- package/dist/napi-binding.d.ts +5 -2
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/util/hash/md4.d.ts +1 -1
- package/dist/util/hash/xxhash64.d.ts +1 -1
- package/dist/wasi-worker-browser.mjs +60 -48
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8626,7 +8626,7 @@ __webpack_require__.add({
|
|
|
8626
8626
|
module.exports = modes;
|
|
8627
8627
|
},
|
|
8628
8628
|
37481 (__unused_rspack_module, exports, __webpack_require__) {
|
|
8629
|
-
var Buffer = __webpack_require__(
|
|
8629
|
+
var Buffer = __webpack_require__(31493).h;
|
|
8630
8630
|
var xor = __webpack_require__(10460);
|
|
8631
8631
|
function getBlock(self1) {
|
|
8632
8632
|
self1._prev = self1._cipher.encryptBlock(self1._prev);
|
|
@@ -9143,7 +9143,7 @@ __webpack_require__.add({
|
|
|
9143
9143
|
module.exports = verify;
|
|
9144
9144
|
},
|
|
9145
9145
|
46025 (__unused_rspack_module, exports, __webpack_require__) {
|
|
9146
|
-
var Buffer = __webpack_require__(
|
|
9146
|
+
var Buffer = __webpack_require__(31493).h;
|
|
9147
9147
|
var process = __webpack_require__(85409);
|
|
9148
9148
|
var assert = __webpack_require__(46732);
|
|
9149
9149
|
var Zstream = __webpack_require__(84179);
|
|
@@ -9818,7 +9818,7 @@ __webpack_require__.add({
|
|
|
9818
9818
|
util.inherits(Unzip, Zlib);
|
|
9819
9819
|
},
|
|
9820
9820
|
10460 (module, __unused_rspack_exports, __webpack_require__) {
|
|
9821
|
-
var Buffer = __webpack_require__(
|
|
9821
|
+
var Buffer = __webpack_require__(31493).h;
|
|
9822
9822
|
module.exports = function(a, b) {
|
|
9823
9823
|
var length = Math.min(a.length, b.length);
|
|
9824
9824
|
var buffer = new Buffer(length);
|
|
@@ -11184,7 +11184,7 @@ __webpack_require__.add({
|
|
|
11184
11184
|
}
|
|
11185
11185
|
},
|
|
11186
11186
|
29520 (module, __unused_rspack_exports, __webpack_require__) {
|
|
11187
|
-
var Buffer = __webpack_require__(
|
|
11187
|
+
var Buffer = __webpack_require__(31493).h;
|
|
11188
11188
|
var elliptic = __webpack_require__(23071);
|
|
11189
11189
|
var BN = __webpack_require__(5630);
|
|
11190
11190
|
module.exports = function(curve) {
|
|
@@ -11400,10 +11400,10 @@ __webpack_require__.add({
|
|
|
11400
11400
|
module.exports = Hmac;
|
|
11401
11401
|
},
|
|
11402
11402
|
24215 (__unused_rspack_module, exports, __webpack_require__) {
|
|
11403
|
-
var
|
|
11404
|
-
|
|
11403
|
+
var __rspack_unused_export;
|
|
11404
|
+
__rspack_unused_export = __rspack_unused_export = __rspack_unused_export = __webpack_require__(82869);
|
|
11405
11405
|
exports.createHash = __webpack_require__(18955);
|
|
11406
|
-
|
|
11406
|
+
__rspack_unused_export = __webpack_require__(33053);
|
|
11407
11407
|
var algos = __webpack_require__(92761);
|
|
11408
11408
|
var algoKeys = Object.keys(algos);
|
|
11409
11409
|
[
|
|
@@ -11416,39 +11416,39 @@ __webpack_require__.add({
|
|
|
11416
11416
|
'rmd160'
|
|
11417
11417
|
].concat(algoKeys);
|
|
11418
11418
|
var p = __webpack_require__(46375);
|
|
11419
|
-
|
|
11420
|
-
|
|
11419
|
+
__rspack_unused_export = p.pbkdf2;
|
|
11420
|
+
__rspack_unused_export = p.pbkdf2Sync;
|
|
11421
11421
|
var aes = __webpack_require__(18350);
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11422
|
+
__rspack_unused_export = aes.Cipher;
|
|
11423
|
+
__rspack_unused_export = aes.createCipher;
|
|
11424
|
+
__rspack_unused_export = aes.Cipheriv;
|
|
11425
|
+
__rspack_unused_export = aes.createCipheriv;
|
|
11426
|
+
__rspack_unused_export = aes.Decipher;
|
|
11427
|
+
__rspack_unused_export = aes.createDecipher;
|
|
11428
|
+
__rspack_unused_export = aes.Decipheriv;
|
|
11429
|
+
__rspack_unused_export = aes.createDecipheriv;
|
|
11430
|
+
__rspack_unused_export = aes.getCiphers;
|
|
11431
|
+
__rspack_unused_export = aes.listCiphers;
|
|
11432
11432
|
var dh = __webpack_require__(58216);
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11433
|
+
__rspack_unused_export = dh.DiffieHellmanGroup;
|
|
11434
|
+
__rspack_unused_export = dh.createDiffieHellmanGroup;
|
|
11435
|
+
__rspack_unused_export = dh.getDiffieHellman;
|
|
11436
|
+
__rspack_unused_export = dh.createDiffieHellman;
|
|
11437
|
+
__rspack_unused_export = dh.DiffieHellman;
|
|
11438
11438
|
var sign = __webpack_require__(80206);
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11439
|
+
__rspack_unused_export = sign.createSign;
|
|
11440
|
+
__rspack_unused_export = sign.Sign;
|
|
11441
|
+
__rspack_unused_export = sign.createVerify;
|
|
11442
|
+
__rspack_unused_export = sign.Verify;
|
|
11443
11443
|
__webpack_require__(29520);
|
|
11444
11444
|
var publicEncrypt = __webpack_require__(32211);
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11445
|
+
__rspack_unused_export = publicEncrypt.publicEncrypt;
|
|
11446
|
+
__rspack_unused_export = publicEncrypt.privateEncrypt;
|
|
11447
|
+
__rspack_unused_export = publicEncrypt.publicDecrypt;
|
|
11448
|
+
__rspack_unused_export = publicEncrypt.privateDecrypt;
|
|
11449
11449
|
var rf = __webpack_require__(44925);
|
|
11450
|
-
|
|
11451
|
-
|
|
11450
|
+
__rspack_unused_export = rf.randomFill;
|
|
11451
|
+
__rspack_unused_export = rf.randomFillSync;
|
|
11452
11452
|
},
|
|
11453
11453
|
20022 (module, __unused_rspack_exports, __webpack_require__) {
|
|
11454
11454
|
var $defineProperty = __webpack_require__(39886);
|
|
@@ -12569,8 +12569,8 @@ __webpack_require__.add({
|
|
|
12569
12569
|
};
|
|
12570
12570
|
},
|
|
12571
12571
|
58216 (__unused_rspack_module, exports, __webpack_require__) {
|
|
12572
|
-
var Buffer = __webpack_require__(
|
|
12573
|
-
var generatePrime = __webpack_require__(
|
|
12572
|
+
var Buffer = __webpack_require__(31493).h;
|
|
12573
|
+
var generatePrime = __webpack_require__(25122);
|
|
12574
12574
|
var primes = __webpack_require__(37821);
|
|
12575
12575
|
var DH = __webpack_require__(29242);
|
|
12576
12576
|
function getDiffieHellman(mod) {
|
|
@@ -12599,7 +12599,7 @@ __webpack_require__.add({
|
|
|
12599
12599
|
exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman;
|
|
12600
12600
|
},
|
|
12601
12601
|
29242 (module, __unused_rspack_exports, __webpack_require__) {
|
|
12602
|
-
var Buffer = __webpack_require__(
|
|
12602
|
+
var Buffer = __webpack_require__(31493).h;
|
|
12603
12603
|
var BN = __webpack_require__(5630);
|
|
12604
12604
|
var MillerRabin = __webpack_require__(74442);
|
|
12605
12605
|
var millerRabin = new MillerRabin();
|
|
@@ -12608,7 +12608,7 @@ __webpack_require__.add({
|
|
|
12608
12608
|
var TEN = new BN(10);
|
|
12609
12609
|
var THREE = new BN(3);
|
|
12610
12610
|
var SEVEN = new BN(7);
|
|
12611
|
-
var primes = __webpack_require__(
|
|
12611
|
+
var primes = __webpack_require__(25122);
|
|
12612
12612
|
var randomBytes = __webpack_require__(82869);
|
|
12613
12613
|
module.exports = DH;
|
|
12614
12614
|
function setPublicKey(pub, enc) {
|
|
@@ -12721,7 +12721,7 @@ __webpack_require__.add({
|
|
|
12721
12721
|
return buf.toString(enc);
|
|
12722
12722
|
}
|
|
12723
12723
|
},
|
|
12724
|
-
|
|
12724
|
+
25122 (module, __unused_rspack_exports, __webpack_require__) {
|
|
12725
12725
|
var randomBytes = __webpack_require__(82869);
|
|
12726
12726
|
module.exports = findPrime;
|
|
12727
12727
|
findPrime.simpleSieve = simpleSieve;
|
|
@@ -15724,9 +15724,9 @@ __webpack_require__.add({
|
|
|
15724
15724
|
}
|
|
15725
15725
|
utils.intFromLE = intFromLE;
|
|
15726
15726
|
},
|
|
15727
|
-
|
|
15728
|
-
var Buffer = __webpack_require__(
|
|
15729
|
-
const { nextTick } = __webpack_require__(
|
|
15727
|
+
16229 (module, __unused_rspack_exports, __webpack_require__) {
|
|
15728
|
+
var Buffer = __webpack_require__(31493).h;
|
|
15729
|
+
const { nextTick } = __webpack_require__(46417);
|
|
15730
15730
|
const dirname = (path)=>{
|
|
15731
15731
|
let idx = path.length - 1;
|
|
15732
15732
|
while(idx >= 0){
|
|
@@ -16053,7 +16053,7 @@ __webpack_require__.add({
|
|
|
16053
16053
|
}
|
|
16054
16054
|
};
|
|
16055
16055
|
},
|
|
16056
|
-
|
|
16056
|
+
46417 (module) {
|
|
16057
16057
|
module.exports = {
|
|
16058
16058
|
versions: {},
|
|
16059
16059
|
nextTick (fn) {
|
|
@@ -17031,7 +17031,7 @@ __webpack_require__.add({
|
|
|
17031
17031
|
},
|
|
17032
17032
|
70627 (module, __unused_rspack_exports, __webpack_require__) {
|
|
17033
17033
|
var process = __webpack_require__(85409);
|
|
17034
|
-
var fs = __webpack_require__(
|
|
17034
|
+
var fs = __webpack_require__(88028);
|
|
17035
17035
|
var polyfills = __webpack_require__(58254);
|
|
17036
17036
|
var legacy = __webpack_require__(60111);
|
|
17037
17037
|
var clone = __webpack_require__(58359);
|
|
@@ -25853,9 +25853,9 @@ __webpack_require__.add({
|
|
|
25853
25853
|
};
|
|
25854
25854
|
},
|
|
25855
25855
|
84827 (__unused_rspack_module, exports, __webpack_require__) {
|
|
25856
|
-
var
|
|
25857
|
-
|
|
25858
|
-
|
|
25856
|
+
var __rspack_unused_export;
|
|
25857
|
+
__rspack_unused_export = exports.qg = __webpack_require__(82245);
|
|
25858
|
+
__rspack_unused_export = __webpack_require__(50429);
|
|
25859
25859
|
},
|
|
25860
25860
|
82869 (module, __unused_rspack_exports, __webpack_require__) {
|
|
25861
25861
|
var process = __webpack_require__(85409);
|
|
@@ -30981,7 +30981,7 @@ __webpack_require__.add({
|
|
|
30981
30981
|
xhr = null;
|
|
30982
30982
|
},
|
|
30983
30983
|
3040 (module, __unused_rspack_exports, __webpack_require__) {
|
|
30984
|
-
var Buffer = __webpack_require__(
|
|
30984
|
+
var Buffer = __webpack_require__(31493).h;
|
|
30985
30985
|
var process = __webpack_require__(85409);
|
|
30986
30986
|
var capability = __webpack_require__(89771);
|
|
30987
30987
|
var inherits = __webpack_require__(91193);
|
|
@@ -31233,7 +31233,7 @@ __webpack_require__.add({
|
|
|
31233
31233
|
},
|
|
31234
31234
|
40506 (__unused_rspack_module, exports, __webpack_require__) {
|
|
31235
31235
|
var process = __webpack_require__(85409);
|
|
31236
|
-
var Buffer = __webpack_require__(
|
|
31236
|
+
var Buffer = __webpack_require__(31493).h;
|
|
31237
31237
|
var capability = __webpack_require__(89771);
|
|
31238
31238
|
var inherits = __webpack_require__(91193);
|
|
31239
31239
|
var stream = __webpack_require__(51094);
|
|
@@ -33690,7 +33690,7 @@ __webpack_require__.add({
|
|
|
33690
33690
|
},
|
|
33691
33691
|
7097 (module, __unused_rspack_exports, __webpack_require__) {
|
|
33692
33692
|
var process = __webpack_require__(85409);
|
|
33693
|
-
const fs = __webpack_require__(
|
|
33693
|
+
const fs = __webpack_require__(88028);
|
|
33694
33694
|
const path = __webpack_require__(13078);
|
|
33695
33695
|
const EXPECTED_ERRORS = new Set([
|
|
33696
33696
|
"EINVAL",
|
|
@@ -34309,7 +34309,7 @@ __webpack_require__.add({
|
|
|
34309
34309
|
2071 (module, __unused_rspack_exports, __webpack_require__) {
|
|
34310
34310
|
var process = __webpack_require__(85409);
|
|
34311
34311
|
const { EventEmitter } = __webpack_require__(80381);
|
|
34312
|
-
const fs = __webpack_require__(
|
|
34312
|
+
const fs = __webpack_require__(88028);
|
|
34313
34313
|
const path = __webpack_require__(13078);
|
|
34314
34314
|
const reducePlan = __webpack_require__(92322);
|
|
34315
34315
|
const IS_OSX = "darwin" === __webpack_require__(35207).iD();
|
|
@@ -34554,7 +34554,7 @@ __webpack_require__.add({
|
|
|
34554
34554
|
};
|
|
34555
34555
|
},
|
|
34556
34556
|
45250 (module, __unused_rspack_exports, __webpack_require__) {
|
|
34557
|
-
var Buffer = __webpack_require__(
|
|
34557
|
+
var Buffer = __webpack_require__(31493).h;
|
|
34558
34558
|
const Source = __webpack_require__(16604);
|
|
34559
34559
|
const streamAndGetSourceAndMap = __webpack_require__(57404);
|
|
34560
34560
|
const streamChunksOfRawSource = __webpack_require__(16689);
|
|
@@ -34845,7 +34845,7 @@ __webpack_require__.add({
|
|
|
34845
34845
|
module.exports = CompatSource;
|
|
34846
34846
|
},
|
|
34847
34847
|
40884 (module, __unused_rspack_exports, __webpack_require__) {
|
|
34848
|
-
var Buffer = __webpack_require__(
|
|
34848
|
+
var Buffer = __webpack_require__(31493).h;
|
|
34849
34849
|
const RawSource = __webpack_require__(82386);
|
|
34850
34850
|
const Source = __webpack_require__(16604);
|
|
34851
34851
|
const { getMap, getSourceAndMap } = __webpack_require__(34681);
|
|
@@ -35069,7 +35069,7 @@ __webpack_require__.add({
|
|
|
35069
35069
|
module.exports = ConcatSource;
|
|
35070
35070
|
},
|
|
35071
35071
|
65963 (module, __unused_rspack_exports, __webpack_require__) {
|
|
35072
|
-
var Buffer = __webpack_require__(
|
|
35072
|
+
var Buffer = __webpack_require__(31493).h;
|
|
35073
35073
|
const Source = __webpack_require__(16604);
|
|
35074
35074
|
const { getMap, getSourceAndMap } = __webpack_require__(34681);
|
|
35075
35075
|
const getGeneratedSourceInfo = __webpack_require__(68811);
|
|
@@ -35196,7 +35196,7 @@ __webpack_require__.add({
|
|
|
35196
35196
|
module.exports = OriginalSource;
|
|
35197
35197
|
},
|
|
35198
35198
|
55424 (module, __unused_rspack_exports, __webpack_require__) {
|
|
35199
|
-
var Buffer = __webpack_require__(
|
|
35199
|
+
var Buffer = __webpack_require__(31493).h;
|
|
35200
35200
|
const RawSource = __webpack_require__(82386);
|
|
35201
35201
|
const Source = __webpack_require__(16604);
|
|
35202
35202
|
const { getMap, getSourceAndMap } = __webpack_require__(34681);
|
|
@@ -35267,7 +35267,7 @@ __webpack_require__.add({
|
|
|
35267
35267
|
module.exports = PrefixSource;
|
|
35268
35268
|
},
|
|
35269
35269
|
82386 (module, __unused_rspack_exports, __webpack_require__) {
|
|
35270
|
-
var Buffer = __webpack_require__(
|
|
35270
|
+
var Buffer = __webpack_require__(31493).h;
|
|
35271
35271
|
const Source = __webpack_require__(16604);
|
|
35272
35272
|
const streamChunksOfRawSource = __webpack_require__(16689);
|
|
35273
35273
|
const { internString, isDualStringBufferCachingEnabled } = __webpack_require__(5895);
|
|
@@ -35667,7 +35667,7 @@ __webpack_require__.add({
|
|
|
35667
35667
|
module.exports = SizeOnlySource;
|
|
35668
35668
|
},
|
|
35669
35669
|
16604 (module, __unused_rspack_exports, __webpack_require__) {
|
|
35670
|
-
var Buffer = __webpack_require__(
|
|
35670
|
+
var Buffer = __webpack_require__(31493).h;
|
|
35671
35671
|
class Source {
|
|
35672
35672
|
source() {
|
|
35673
35673
|
throw new Error("Abstract");
|
|
@@ -35702,7 +35702,7 @@ __webpack_require__.add({
|
|
|
35702
35702
|
module.exports = Source;
|
|
35703
35703
|
},
|
|
35704
35704
|
17061 (module, __unused_rspack_exports, __webpack_require__) {
|
|
35705
|
-
var Buffer = __webpack_require__(
|
|
35705
|
+
var Buffer = __webpack_require__(31493).h;
|
|
35706
35706
|
const Source = __webpack_require__(16604);
|
|
35707
35707
|
const { getMap, getSourceAndMap } = __webpack_require__(34681);
|
|
35708
35708
|
const streamChunksOfCombinedSourceMap = __webpack_require__(50226);
|
|
@@ -36848,16 +36848,16 @@ __webpack_require__.add({
|
|
|
36848
36848
|
return target;
|
|
36849
36849
|
}
|
|
36850
36850
|
},
|
|
36851
|
-
|
|
36852
|
-
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__(
|
|
36851
|
+
31493 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
36852
|
+
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__(50860);
|
|
36853
36853
|
__webpack_require__.d(__webpack_exports__, {
|
|
36854
36854
|
h: ()=>_napi_rs_wasm_runtime_fs__rspack_import_0.hp
|
|
36855
36855
|
});
|
|
36856
36856
|
},
|
|
36857
|
-
|
|
36857
|
+
88028 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
36858
36858
|
__webpack_require__.r(__webpack_exports__);
|
|
36859
|
-
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__(
|
|
36860
|
-
var _rspack_binding__rspack_import_1 = __webpack_require__(
|
|
36859
|
+
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__(50860);
|
|
36860
|
+
var _rspack_binding__rspack_import_1 = __webpack_require__(34817);
|
|
36861
36861
|
const fs = _rspack_binding__rspack_import_1.__fs;
|
|
36862
36862
|
const volume = _rspack_binding__rspack_import_1.__volume;
|
|
36863
36863
|
const memfs = _napi_rs_wasm_runtime_fs__rspack_import_0.tO;
|
|
@@ -36876,7 +36876,7 @@ __webpack_require__.add({
|
|
|
36876
36876
|
watch: watch
|
|
36877
36877
|
});
|
|
36878
36878
|
},
|
|
36879
|
-
|
|
36879
|
+
34817 (module) {
|
|
36880
36880
|
module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
|
|
36881
36881
|
},
|
|
36882
36882
|
39699 () {},
|
|
@@ -36896,7 +36896,7 @@ __webpack_require__.add({
|
|
|
36896
36896
|
return out;
|
|
36897
36897
|
};
|
|
36898
36898
|
},
|
|
36899
|
-
|
|
36899
|
+
50860 (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36900
36900
|
function _mergeNamespaces(n, m) {
|
|
36901
36901
|
m.forEach(function(e) {
|
|
36902
36902
|
e && 'string' != typeof e && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
@@ -55623,6 +55623,70 @@ function checkNodeVersion() {
|
|
|
55623
55623
|
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`);
|
|
55624
55624
|
}
|
|
55625
55625
|
checkNodeVersion();
|
|
55626
|
+
const util_util = __webpack_require__("1344");
|
|
55627
|
+
var util_util_default = /*#__PURE__*/ __webpack_require__.n(util_util);
|
|
55628
|
+
Object.defineProperty(Chunk.prototype, 'files', {
|
|
55629
|
+
enumerable: true,
|
|
55630
|
+
configurable: true,
|
|
55631
|
+
get () {
|
|
55632
|
+
return new Set(this._files);
|
|
55633
|
+
}
|
|
55634
|
+
});
|
|
55635
|
+
Object.defineProperty(Chunk.prototype, 'runtime', {
|
|
55636
|
+
enumerable: true,
|
|
55637
|
+
configurable: true,
|
|
55638
|
+
get () {
|
|
55639
|
+
return new Set(this._runtime);
|
|
55640
|
+
}
|
|
55641
|
+
});
|
|
55642
|
+
Object.defineProperty(Chunk.prototype, 'auxiliaryFiles', {
|
|
55643
|
+
enumerable: true,
|
|
55644
|
+
configurable: true,
|
|
55645
|
+
get () {
|
|
55646
|
+
return new Set(this._auxiliaryFiles);
|
|
55647
|
+
}
|
|
55648
|
+
});
|
|
55649
|
+
Object.defineProperty(Chunk.prototype, 'groupsIterable', {
|
|
55650
|
+
enumerable: true,
|
|
55651
|
+
configurable: true,
|
|
55652
|
+
get () {
|
|
55653
|
+
return new Set(this._groupsIterable);
|
|
55654
|
+
}
|
|
55655
|
+
});
|
|
55656
|
+
Object.defineProperty(Chunk.prototype, 'getChunkMaps', {
|
|
55657
|
+
enumerable: true,
|
|
55658
|
+
configurable: true,
|
|
55659
|
+
value (realHash) {
|
|
55660
|
+
const chunkHashMap = {};
|
|
55661
|
+
const chunkContentHashMap = {};
|
|
55662
|
+
const chunkNameMap = {};
|
|
55663
|
+
for (const chunk of this.getAllAsyncChunks()){
|
|
55664
|
+
const id = chunk.id;
|
|
55665
|
+
if (void 0 === id) continue;
|
|
55666
|
+
const chunkHash = realHash ? chunk.hash : chunk.renderedHash;
|
|
55667
|
+
if (chunkHash) chunkHashMap[id] = chunkHash;
|
|
55668
|
+
for (const key of Object.keys(chunk.contentHash)){
|
|
55669
|
+
if (!chunkContentHashMap[key]) chunkContentHashMap[key] = {};
|
|
55670
|
+
chunkContentHashMap[key][id] = chunk.contentHash[key];
|
|
55671
|
+
}
|
|
55672
|
+
if (chunk.name) chunkNameMap[id] = chunk.name;
|
|
55673
|
+
}
|
|
55674
|
+
return {
|
|
55675
|
+
hash: chunkHashMap,
|
|
55676
|
+
contentHash: chunkContentHashMap,
|
|
55677
|
+
name: chunkNameMap
|
|
55678
|
+
};
|
|
55679
|
+
}
|
|
55680
|
+
});
|
|
55681
|
+
Object.defineProperty(Chunk.prototype, util_util_default().inspect.custom, {
|
|
55682
|
+
enumerable: true,
|
|
55683
|
+
configurable: true,
|
|
55684
|
+
value () {
|
|
55685
|
+
return {
|
|
55686
|
+
...this
|
|
55687
|
+
};
|
|
55688
|
+
}
|
|
55689
|
+
});
|
|
55626
55690
|
const loaderFlag = 'LOADER_EXECUTION';
|
|
55627
55691
|
const cutOffByFlag = (stack, flag)=>{
|
|
55628
55692
|
const stacks = stack.split('\n');
|
|
@@ -55641,8 +55705,6 @@ const cutOffMessage = (stack, name, message)=>{
|
|
|
55641
55705
|
const firstLine = stack.slice(0, nextLine);
|
|
55642
55706
|
return firstLine === `${name}: ${message}` ? stack.slice(nextLine + 1) : stack;
|
|
55643
55707
|
};
|
|
55644
|
-
const util_util = __webpack_require__("1344");
|
|
55645
|
-
var util_util_default = /*#__PURE__*/ __webpack_require__.n(util_util);
|
|
55646
55708
|
class WebpackError_WebpackError extends Error {
|
|
55647
55709
|
loc;
|
|
55648
55710
|
file;
|
|
@@ -56657,7 +56719,7 @@ function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
|
56657
56719
|
};
|
|
56658
56720
|
}
|
|
56659
56721
|
const webpack_sources_lib = __webpack_require__("72105");
|
|
56660
|
-
var Buffer = __webpack_require__(
|
|
56722
|
+
var Buffer = __webpack_require__(31493).h;
|
|
56661
56723
|
class SourceAdapter {
|
|
56662
56724
|
static fromBinding(source) {
|
|
56663
56725
|
if (!source.map) return new webpack_sources_lib.RawSource(source.source);
|
|
@@ -56679,68 +56741,6 @@ class SourceAdapter {
|
|
|
56679
56741
|
};
|
|
56680
56742
|
}
|
|
56681
56743
|
}
|
|
56682
|
-
Object.defineProperty(Chunk.prototype, 'files', {
|
|
56683
|
-
enumerable: true,
|
|
56684
|
-
configurable: true,
|
|
56685
|
-
get () {
|
|
56686
|
-
return new Set(this._files);
|
|
56687
|
-
}
|
|
56688
|
-
});
|
|
56689
|
-
Object.defineProperty(Chunk.prototype, 'runtime', {
|
|
56690
|
-
enumerable: true,
|
|
56691
|
-
configurable: true,
|
|
56692
|
-
get () {
|
|
56693
|
-
return new Set(this._runtime);
|
|
56694
|
-
}
|
|
56695
|
-
});
|
|
56696
|
-
Object.defineProperty(Chunk.prototype, 'auxiliaryFiles', {
|
|
56697
|
-
enumerable: true,
|
|
56698
|
-
configurable: true,
|
|
56699
|
-
get () {
|
|
56700
|
-
return new Set(this._auxiliaryFiles);
|
|
56701
|
-
}
|
|
56702
|
-
});
|
|
56703
|
-
Object.defineProperty(Chunk.prototype, 'groupsIterable', {
|
|
56704
|
-
enumerable: true,
|
|
56705
|
-
configurable: true,
|
|
56706
|
-
get () {
|
|
56707
|
-
return new Set(this._groupsIterable);
|
|
56708
|
-
}
|
|
56709
|
-
});
|
|
56710
|
-
Object.defineProperty(Chunk.prototype, 'getChunkMaps', {
|
|
56711
|
-
enumerable: true,
|
|
56712
|
-
configurable: true,
|
|
56713
|
-
value (realHash) {
|
|
56714
|
-
const chunkHashMap = {};
|
|
56715
|
-
const chunkContentHashMap = {};
|
|
56716
|
-
const chunkNameMap = {};
|
|
56717
|
-
for (const chunk of this.getAllAsyncChunks()){
|
|
56718
|
-
const id = chunk.id;
|
|
56719
|
-
if (void 0 === id) continue;
|
|
56720
|
-
const chunkHash = realHash ? chunk.hash : chunk.renderedHash;
|
|
56721
|
-
if (chunkHash) chunkHashMap[id] = chunkHash;
|
|
56722
|
-
for (const key of Object.keys(chunk.contentHash)){
|
|
56723
|
-
if (!chunkContentHashMap[key]) chunkContentHashMap[key] = {};
|
|
56724
|
-
chunkContentHashMap[key][id] = chunk.contentHash[key];
|
|
56725
|
-
}
|
|
56726
|
-
if (chunk.name) chunkNameMap[id] = chunk.name;
|
|
56727
|
-
}
|
|
56728
|
-
return {
|
|
56729
|
-
hash: chunkHashMap,
|
|
56730
|
-
contentHash: chunkContentHashMap,
|
|
56731
|
-
name: chunkNameMap
|
|
56732
|
-
};
|
|
56733
|
-
}
|
|
56734
|
-
});
|
|
56735
|
-
Object.defineProperty(Chunk.prototype, util_util_default().inspect.custom, {
|
|
56736
|
-
enumerable: true,
|
|
56737
|
-
configurable: true,
|
|
56738
|
-
value () {
|
|
56739
|
-
return {
|
|
56740
|
-
...this
|
|
56741
|
-
};
|
|
56742
|
-
}
|
|
56743
|
-
});
|
|
56744
56744
|
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'entries', {
|
|
56745
56745
|
enumerable: true,
|
|
56746
56746
|
configurable: true,
|
|
@@ -56974,11 +56974,13 @@ function normalizePathData(data = {}) {
|
|
|
56974
56974
|
url: data.url
|
|
56975
56975
|
};
|
|
56976
56976
|
if (void 0 !== data.id) pathData.id = String(data.id);
|
|
56977
|
-
|
|
56978
|
-
|
|
56979
|
-
|
|
56980
|
-
|
|
56981
|
-
|
|
56977
|
+
const chunk = data.chunk;
|
|
56978
|
+
if (chunk) pathData.chunk = chunk;
|
|
56979
|
+
if (chunk && void 0 === pathData.contentHash) {
|
|
56980
|
+
const contentHash = chunk.contentHash;
|
|
56981
|
+
if ('string' == typeof contentHash) pathData.contentHash = contentHash;
|
|
56982
|
+
else if (data.contentHashType && contentHash && 'object' == typeof contentHash) pathData.contentHash = contentHash[data.contentHashType];
|
|
56983
|
+
}
|
|
56982
56984
|
return pathData;
|
|
56983
56985
|
}
|
|
56984
56986
|
const checkCompilation = (compilation)=>{
|
|
@@ -57345,22 +57347,18 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
57345
57347
|
}
|
|
57346
57348
|
getPath(filename, data = {}) {
|
|
57347
57349
|
const pathData = normalizePathData(data);
|
|
57348
|
-
if (data.contentHashType && data.chunk?.contentHash) pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
57349
57350
|
return this.#inner.getPath(filename, pathData);
|
|
57350
57351
|
}
|
|
57351
57352
|
getPathWithInfo(filename, data = {}) {
|
|
57352
57353
|
const pathData = normalizePathData(data);
|
|
57353
|
-
if (data.contentHashType && data.chunk?.contentHash) pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
57354
57354
|
return this.#inner.getPathWithInfo(filename, pathData);
|
|
57355
57355
|
}
|
|
57356
57356
|
getAssetPath(filename, data = {}) {
|
|
57357
57357
|
const pathData = normalizePathData(data);
|
|
57358
|
-
if (data.contentHashType && data.chunk?.contentHash) pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
57359
57358
|
return this.#inner.getAssetPath(filename, pathData);
|
|
57360
57359
|
}
|
|
57361
57360
|
getAssetPathWithInfo(filename, data = {}) {
|
|
57362
57361
|
const pathData = normalizePathData(data);
|
|
57363
|
-
if (data.contentHashType && data.chunk?.contentHash) pathData.contentHash = data.chunk.contentHash[data.contentHashType];
|
|
57364
57362
|
return this.#inner.getAssetPathWithInfo(filename, pathData);
|
|
57365
57363
|
}
|
|
57366
57364
|
getLogger(name) {
|
|
@@ -58241,7 +58239,7 @@ function applyLimits(options) {
|
|
|
58241
58239
|
base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EsmNodeTargetPlugin, ()=>void 0);
|
|
58242
58240
|
const EvalDevToolModulePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation');
|
|
58243
58241
|
const EvalSourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
58244
|
-
var util_Buffer = __webpack_require__(
|
|
58242
|
+
var util_Buffer = __webpack_require__(31493).h;
|
|
58245
58243
|
function isNil(value) {
|
|
58246
58244
|
return null == value;
|
|
58247
58245
|
}
|
|
@@ -59082,6 +59080,7 @@ function getRawAssetParserDataUrl(dataUrlCondition) {
|
|
|
59082
59080
|
}
|
|
59083
59081
|
function getRawCssModuleParserOptions(parser) {
|
|
59084
59082
|
return {
|
|
59083
|
+
exportType: parser.exportType,
|
|
59085
59084
|
namedExports: parser.namedExports,
|
|
59086
59085
|
url: parser.url,
|
|
59087
59086
|
import: parser.import,
|
|
@@ -59102,6 +59101,7 @@ function getRawCssAutoOrModuleParserOptions(parser) {
|
|
|
59102
59101
|
}
|
|
59103
59102
|
function getRawCssParserOptionsForCss(parser) {
|
|
59104
59103
|
return {
|
|
59104
|
+
exportType: parser.exportType,
|
|
59105
59105
|
namedExports: parser.namedExports,
|
|
59106
59106
|
url: parser.url,
|
|
59107
59107
|
import: parser.import,
|
|
@@ -59363,28 +59363,7 @@ class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
|
59363
59363
|
const HttpExternalsRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HttpExternalsRspackPlugin, (webAsync)=>({
|
|
59364
59364
|
webAsync
|
|
59365
59365
|
}));
|
|
59366
|
-
|
|
59367
|
-
let cache = false;
|
|
59368
|
-
let result;
|
|
59369
|
-
let callback = fn;
|
|
59370
|
-
return ()=>{
|
|
59371
|
-
if (cache) return result;
|
|
59372
|
-
result = callback();
|
|
59373
|
-
cache = true;
|
|
59374
|
-
callback = void 0;
|
|
59375
|
-
return result;
|
|
59376
|
-
};
|
|
59377
|
-
};
|
|
59378
|
-
const memoizeFn = (fn)=>{
|
|
59379
|
-
let cache = null;
|
|
59380
|
-
return (...args)=>{
|
|
59381
|
-
if (!cache) cache = fn();
|
|
59382
|
-
return cache(...args);
|
|
59383
|
-
};
|
|
59384
|
-
};
|
|
59385
|
-
var HttpUriPlugin_Buffer = __webpack_require__(98041).h;
|
|
59386
|
-
memoize(()=>__webpack_require__(87069));
|
|
59387
|
-
memoize(()=>__webpack_require__(84033));
|
|
59366
|
+
var HttpUriPlugin_Buffer = __webpack_require__(31493).h;
|
|
59388
59367
|
const defaultHttpClientForBrowser = async (url, headers)=>{
|
|
59389
59368
|
const res = await fetch(url, {
|
|
59390
59369
|
headers
|
|
@@ -59468,7 +59447,7 @@ const getPluginHooks = (compilation)=>{
|
|
|
59468
59447
|
const cleanPluginHooks = (compilation)=>{
|
|
59469
59448
|
hooks_compilationHooksMap.delete(compilation);
|
|
59470
59449
|
};
|
|
59471
|
-
const fs_0 = __webpack_require__("
|
|
59450
|
+
const fs_0 = __webpack_require__("88028");
|
|
59472
59451
|
var plugin_process = __webpack_require__(85409);
|
|
59473
59452
|
let HTML_PLUGIN_UID = 0;
|
|
59474
59453
|
const HtmlRspackPluginImpl = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HtmlRspackPlugin, function(c = {}) {
|
|
@@ -59951,7 +59930,7 @@ class Hash {
|
|
|
59951
59930
|
throw new AbstractMethodError();
|
|
59952
59931
|
}
|
|
59953
59932
|
}
|
|
59954
|
-
var wasm_hash_Buffer = __webpack_require__(
|
|
59933
|
+
var wasm_hash_Buffer = __webpack_require__(31493).h;
|
|
59955
59934
|
const MAX_SHORT_STRING = -4 & Math.floor(16368);
|
|
59956
59935
|
class WasmHash {
|
|
59957
59936
|
exports;
|
|
@@ -60070,7 +60049,7 @@ const wasm_hash_create = (wasmModule, instancesPool, chunkSize, digestSize)=>{
|
|
|
60070
60049
|
return new WasmHash(new WebAssembly.Instance(wasmModule), instancesPool, chunkSize, digestSize);
|
|
60071
60050
|
};
|
|
60072
60051
|
const wasm_hash = wasm_hash_create;
|
|
60073
|
-
var md4_Buffer = __webpack_require__(
|
|
60052
|
+
var md4_Buffer = __webpack_require__(31493).h;
|
|
60074
60053
|
let createMd4;
|
|
60075
60054
|
const hash_md4 = ()=>{
|
|
60076
60055
|
if (!createMd4) {
|
|
@@ -60079,7 +60058,7 @@ const hash_md4 = ()=>{
|
|
|
60079
60058
|
}
|
|
60080
60059
|
return createMd4();
|
|
60081
60060
|
};
|
|
60082
|
-
var xxhash64_Buffer = __webpack_require__(
|
|
60061
|
+
var xxhash64_Buffer = __webpack_require__(31493).h;
|
|
60083
60062
|
let createXxhash64;
|
|
60084
60063
|
const hash_xxhash64 = ()=>{
|
|
60085
60064
|
if (!createXxhash64) {
|
|
@@ -60088,7 +60067,7 @@ const hash_xxhash64 = ()=>{
|
|
|
60088
60067
|
}
|
|
60089
60068
|
return createXxhash64();
|
|
60090
60069
|
};
|
|
60091
|
-
var createHash_Buffer = __webpack_require__(
|
|
60070
|
+
var createHash_Buffer = __webpack_require__(31493).h;
|
|
60092
60071
|
const BULK_SIZE = 2000;
|
|
60093
60072
|
const digestCaches = {};
|
|
60094
60073
|
class BulkUpdateDecorator extends Hash {
|
|
@@ -60184,6 +60163,25 @@ const createHash_createHash = (algorithm)=>{
|
|
|
60184
60163
|
}, algorithm);
|
|
60185
60164
|
}
|
|
60186
60165
|
};
|
|
60166
|
+
const memoize_memoize = (fn)=>{
|
|
60167
|
+
let cache = false;
|
|
60168
|
+
let result;
|
|
60169
|
+
let callback = fn;
|
|
60170
|
+
return ()=>{
|
|
60171
|
+
if (cache) return result;
|
|
60172
|
+
result = callback();
|
|
60173
|
+
cache = true;
|
|
60174
|
+
callback = void 0;
|
|
60175
|
+
return result;
|
|
60176
|
+
};
|
|
60177
|
+
};
|
|
60178
|
+
const memoizeFn = (fn)=>{
|
|
60179
|
+
let cache = null;
|
|
60180
|
+
return (...args)=>{
|
|
60181
|
+
if (!cache) cache = fn();
|
|
60182
|
+
return cache(...args);
|
|
60183
|
+
};
|
|
60184
|
+
};
|
|
60187
60185
|
const ModuleError_createMessage = (err, type, from)=>{
|
|
60188
60186
|
let message = `Module ${type}${from ? ` (from ${from}):\n` : ': '}`;
|
|
60189
60187
|
if (err && 'object' == typeof err && err.message) message += err.message;
|
|
@@ -60243,7 +60241,7 @@ function handleResult(loader, module, callback) {
|
|
|
60243
60241
|
if ('function' != typeof loader.normal && 'function' != typeof loader.pitch) return callback(new LoaderLoadingError(`Module '${loader.path}' is not a loader (must have normal or pitch function)`));
|
|
60244
60242
|
callback();
|
|
60245
60243
|
}
|
|
60246
|
-
var utils_Buffer = __webpack_require__(
|
|
60244
|
+
var utils_Buffer = __webpack_require__(31493).h;
|
|
60247
60245
|
const decoder = new TextDecoder();
|
|
60248
60246
|
function utf8BufferToString(buf) {
|
|
60249
60247
|
const isShared = buf.buffer instanceof SharedArrayBuffer || buf.buffer.constructor?.name === 'SharedArrayBuffer';
|
|
@@ -60589,7 +60587,7 @@ async function runLoaders(compiler, context) {
|
|
|
60589
60587
|
}
|
|
60590
60588
|
}
|
|
60591
60589
|
});
|
|
60592
|
-
const getResolver =
|
|
60590
|
+
const getResolver = memoize_memoize(()=>compiler._lastCompilation.resolverFactory.get('normal'));
|
|
60593
60591
|
loaderContext.resolve = function(context, request, callback) {
|
|
60594
60592
|
getResolver().resolve({}, context, request, getResolveContext(), callback);
|
|
60595
60593
|
};
|
|
@@ -60653,10 +60651,10 @@ async function runLoaders(compiler, context) {
|
|
|
60653
60651
|
compiler._lastCompilation.__internal__pushDiagnostic(formatDiagnostic(d));
|
|
60654
60652
|
}
|
|
60655
60653
|
};
|
|
60656
|
-
const getAbsolutify =
|
|
60657
|
-
const getAbsolutifyInContext =
|
|
60658
|
-
const getContextify =
|
|
60659
|
-
const getContextifyInContext =
|
|
60654
|
+
const getAbsolutify = memoize_memoize(()=>absolutify.bindCache(compiler.root));
|
|
60655
|
+
const getAbsolutifyInContext = memoize_memoize(()=>absolutify.bindContextCache(contextDirectory, compiler.root));
|
|
60656
|
+
const getContextify = memoize_memoize(()=>contextify.bindCache(compiler.root));
|
|
60657
|
+
const getContextifyInContext = memoize_memoize(()=>contextify.bindContextCache(contextDirectory, compiler.root));
|
|
60660
60658
|
loaderContext.utils = {
|
|
60661
60659
|
absolutify: (context, request)=>context === contextDirectory ? getAbsolutifyInContext()(request) : getAbsolutify()(context, request),
|
|
60662
60660
|
contextify: (context, request)=>context === contextDirectory ? getContextifyInContext()(request) : getContextify()(context, request),
|
|
@@ -61387,7 +61385,7 @@ const SizeLimitsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPlug
|
|
|
61387
61385
|
};
|
|
61388
61386
|
});
|
|
61389
61387
|
const SourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
61390
|
-
var SubresourceIntegrityPlugin_Buffer = __webpack_require__(
|
|
61388
|
+
var SubresourceIntegrityPlugin_Buffer = __webpack_require__(31493).h;
|
|
61391
61389
|
const SubresourceIntegrityPlugin_PLUGIN_NAME = 'SubresourceIntegrityPlugin';
|
|
61392
61390
|
const NATIVE_HTML_PLUGIN = 'HtmlRspackPlugin';
|
|
61393
61391
|
const HTTP_PROTOCOL_REGEX = /^https?:/;
|
|
@@ -62704,7 +62702,7 @@ const browserslistTargetHandler_resolve = (browsers)=>{
|
|
|
62704
62702
|
};
|
|
62705
62703
|
};
|
|
62706
62704
|
var target_process = __webpack_require__(85409);
|
|
62707
|
-
const getBrowserslistTargetHandler =
|
|
62705
|
+
const getBrowserslistTargetHandler = memoize_memoize(()=>browserslistTargetHandler_namespaceObject);
|
|
62708
62706
|
const hasBrowserslistConfig = (context)=>Boolean(findConfig(context));
|
|
62709
62707
|
const getDefaultTarget = (context)=>hasBrowserslistConfig(context) ? 'browserslist' : 'web';
|
|
62710
62708
|
const versionDependent = (major, minor)=>{
|
|
@@ -63610,7 +63608,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
63610
63608
|
});
|
|
63611
63609
|
D(output, 'bundlerInfo', {});
|
|
63612
63610
|
if ('object' == typeof output.bundlerInfo) {
|
|
63613
|
-
D(output.bundlerInfo, 'version', "2.1.
|
|
63611
|
+
D(output.bundlerInfo, 'version', "2.1.3");
|
|
63614
63612
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
63615
63613
|
D(output.bundlerInfo, 'force', false);
|
|
63616
63614
|
}
|
|
@@ -64631,7 +64629,7 @@ const mkdirp = (fs, p, callback)=>{
|
|
|
64631
64629
|
callback();
|
|
64632
64630
|
});
|
|
64633
64631
|
};
|
|
64634
|
-
var FileSystem_Buffer = __webpack_require__(
|
|
64632
|
+
var FileSystem_Buffer = __webpack_require__(31493).h;
|
|
64635
64633
|
const BUFFER_SIZE = 1000;
|
|
64636
64634
|
const ASYNC_NOOP = async ()=>{};
|
|
64637
64635
|
const NOOP_FILESYSTEM = {
|
|
@@ -65318,7 +65316,7 @@ class MultiStats {
|
|
|
65318
65316
|
return obj;
|
|
65319
65317
|
});
|
|
65320
65318
|
if (childOptions.version) {
|
|
65321
|
-
obj.rspackVersion = "2.1.
|
|
65319
|
+
obj.rspackVersion = "2.1.3";
|
|
65322
65320
|
obj.version = "5.75.0";
|
|
65323
65321
|
}
|
|
65324
65322
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -66274,7 +66272,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
66274
66272
|
}
|
|
66275
66273
|
};
|
|
66276
66274
|
}
|
|
66277
|
-
const CachedInputFileSystem = __webpack_require__("
|
|
66275
|
+
const CachedInputFileSystem = __webpack_require__("16229");
|
|
66278
66276
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
66279
66277
|
class NodeEnvironmentPlugin {
|
|
66280
66278
|
options;
|
|
@@ -67103,7 +67101,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
67103
67101
|
},
|
|
67104
67102
|
version: (object)=>{
|
|
67105
67103
|
object.version = "5.75.0";
|
|
67106
|
-
object.rspackVersion = "2.1.
|
|
67104
|
+
object.rspackVersion = "2.1.3";
|
|
67107
67105
|
},
|
|
67108
67106
|
env: (object, _compilation, _context, { _env })=>{
|
|
67109
67107
|
object.env = _env;
|
|
@@ -69000,7 +68998,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
69000
68998
|
})
|
|
69001
68999
|
};
|
|
69002
69000
|
};
|
|
69003
|
-
var compilation_Buffer = __webpack_require__(
|
|
69001
|
+
var compilation_Buffer = __webpack_require__(31493).h;
|
|
69004
69002
|
class CodeGenerationResult {
|
|
69005
69003
|
#inner;
|
|
69006
69004
|
constructor(result){
|
|
@@ -69477,7 +69475,7 @@ const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
|
69477
69475
|
};
|
|
69478
69476
|
})
|
|
69479
69477
|
});
|
|
69480
|
-
var javascriptModules_Buffer = __webpack_require__(
|
|
69478
|
+
var javascriptModules_Buffer = __webpack_require__(31493).h;
|
|
69481
69479
|
const createJavaScriptModulesHooksRegisters = (getCompiler, createTap)=>({
|
|
69482
69480
|
registerJavascriptModulesChunkHashTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.JavascriptModulesChunkHash, function() {
|
|
69483
69481
|
return JavascriptModulesPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).chunkHash;
|
|
@@ -70392,7 +70390,7 @@ class Compiler {
|
|
|
70392
70390
|
this.#rawOptions = getRawOptions(options, this);
|
|
70393
70391
|
this.#rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
70394
70392
|
this.#rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
70395
|
-
const instanceBinding = __webpack_require__(
|
|
70393
|
+
const instanceBinding = __webpack_require__(34817);
|
|
70396
70394
|
this.#registers = this.#createHooksRegisters();
|
|
70397
70395
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
70398
70396
|
try {
|
|
@@ -71095,11 +71093,12 @@ function getFileName(manifestOptions) {
|
|
|
71095
71093
|
return `${name}${JSON_EXT}`;
|
|
71096
71094
|
};
|
|
71097
71095
|
const insertSuffix = (name, suffix)=>name.replace(JSON_EXT, `${suffix}${JSON_EXT}`);
|
|
71096
|
+
const toAssetName = (name)=>name.replace(/\\/g, '/');
|
|
71098
71097
|
const manifestFileName = fileName ? addExt(fileName) : MANIFEST_FILE_NAME;
|
|
71099
71098
|
const statsFileName = fileName ? insertSuffix(manifestFileName, '-stats') : STATS_FILE_NAME;
|
|
71100
71099
|
return {
|
|
71101
|
-
statsFileName: (0, path_browserify.join)(filePath, statsFileName),
|
|
71102
|
-
manifestFileName: (0, path_browserify.join)(filePath, manifestFileName)
|
|
71100
|
+
statsFileName: toAssetName((0, path_browserify.join)(filePath, statsFileName)),
|
|
71101
|
+
manifestFileName: toAssetName((0, path_browserify.join)(filePath, manifestFileName))
|
|
71103
71102
|
};
|
|
71104
71103
|
}
|
|
71105
71104
|
function resolveLibraryGlobalName(library) {
|
|
@@ -71862,13 +71861,9 @@ function getDefaultEntryRuntimeSource(paths, options, compiler, treeShakingShare
|
|
|
71862
71861
|
const paramsCode = void 0 === pluginParams ? 'undefined' : JSON.stringify(pluginParams);
|
|
71863
71862
|
runtimePluginVars.push(`{ plugin: ${runtimePluginVar}, params: ${paramsCode} }`);
|
|
71864
71863
|
}
|
|
71865
|
-
const defaultRuntimeSource =
|
|
71866
|
-
var e = new Error("Cannot find module './moduleFederationDefaultRuntime.js'");
|
|
71867
|
-
e.code = 'MODULE_NOT_FOUND';
|
|
71868
|
-
throw e;
|
|
71869
|
-
}())));
|
|
71864
|
+
const defaultRuntimeSource = 'const runtimeRequire=__module_federation_runtime_require__;if((runtimeRequire.initializeSharingData||runtimeRequire.initializeExposesData)&&runtimeRequire.federation){var _ref,_ref1,_ref2,_ref3,_ref4;var _runtimeRequire_remotesLoadingData,_runtimeRequire_remotesLoadingData1,_runtimeRequire_initializeSharingData,_runtimeRequire_consumesLoadingData,_runtimeRequire_consumesLoadingData1,_runtimeRequire_initializeExposesData,_runtimeRequire_consumesLoadingData2;const override=(obj,key,value)=>{if(!obj)return;if(obj[key])obj[key]=value};const merge=(obj,key,fn)=>{const value=fn();if(Array.isArray(value)){var _obj,_key,_;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=[];obj[key].push(...value)}else if(typeof value==="object"&&value!==null){var _obj1,_key1,_1;(_1=(_obj1=obj)[_key1=key])!==null&&_1!==void 0?_1:_obj1[_key1]={};Object.assign(obj[key],value)}};const early=(obj,key,initial)=>{var _obj,_key,_;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=initial()};const remotesLoadingChunkMapping=(_ref=(_runtimeRequire_remotesLoadingData=runtimeRequire.remotesLoadingData)===null||_runtimeRequire_remotesLoadingData===void 0?void 0:_runtimeRequire_remotesLoadingData.chunkMapping)!==null&&_ref!==void 0?_ref:{};const remotesLoadingModuleIdToRemoteDataMapping=(_ref1=(_runtimeRequire_remotesLoadingData1=runtimeRequire.remotesLoadingData)===null||_runtimeRequire_remotesLoadingData1===void 0?void 0:_runtimeRequire_remotesLoadingData1.moduleIdToRemoteDataMapping)!==null&&_ref1!==void 0?_ref1:{};const initializeSharingScopeToInitDataMapping=(_ref2=(_runtimeRequire_initializeSharingData=runtimeRequire.initializeSharingData)===null||_runtimeRequire_initializeSharingData===void 0?void 0:_runtimeRequire_initializeSharingData.scopeToSharingDataMapping)!==null&&_ref2!==void 0?_ref2:{};const consumesLoadingChunkMapping=(_ref3=(_runtimeRequire_consumesLoadingData=runtimeRequire.consumesLoadingData)===null||_runtimeRequire_consumesLoadingData===void 0?void 0:_runtimeRequire_consumesLoadingData.chunkMapping)!==null&&_ref3!==void 0?_ref3:{};const consumesLoadingModuleToConsumeDataMapping=(_ref4=(_runtimeRequire_consumesLoadingData1=runtimeRequire.consumesLoadingData)===null||_runtimeRequire_consumesLoadingData1===void 0?void 0:_runtimeRequire_consumesLoadingData1.moduleIdToConsumeDataMapping)!==null&&_ref4!==void 0?_ref4:{};const consumesLoadinginstalledModules={};const initializeSharingInitPromises=[];const initializeSharingInitTokens={};const containerShareScope=(_runtimeRequire_initializeExposesData=runtimeRequire.initializeExposesData)===null||_runtimeRequire_initializeExposesData===void 0?void 0:_runtimeRequire_initializeExposesData.shareScope;for(const key in __module_federation_bundler_runtime__){runtimeRequire.federation[key]=__module_federation_bundler_runtime__[key]}early(runtimeRequire.federation,"libraryType",()=>__module_federation_library_type__);early(runtimeRequire.federation,"sharedFallback",()=>__module_federation_share_fallbacks__);const sharedFallback=runtimeRequire.federation.sharedFallback;early(runtimeRequire.federation,"consumesLoadingModuleToHandlerMapping",()=>{const consumesLoadingModuleToHandlerMapping={};for(let[moduleId,data]of Object.entries(consumesLoadingModuleToConsumeDataMapping)){var _runtimeRequire_federation_bundlerRuntime;consumesLoadingModuleToHandlerMapping[moduleId]={getter:sharedFallback?(_runtimeRequire_federation_bundlerRuntime=runtimeRequire.federation.bundlerRuntime)===null||_runtimeRequire_federation_bundlerRuntime===void 0?void 0:_runtimeRequire_federation_bundlerRuntime.getSharedFallbackGetter({shareKey:data.shareKey,factory:data.fallback,webpackRequire:runtimeRequire,libraryType:runtimeRequire.federation.libraryType}):data.fallback,treeShakingGetter:sharedFallback?data.fallback:undefined,shareInfo:{shareConfig:{fixedDependencies:false,requiredVersion:data.requiredVersion,strictVersion:data.strictVersion,singleton:data.singleton,eager:data.eager},scope:[data.shareScope]},shareKey:data.shareKey,treeShaking:runtimeRequire.federation.sharedFallback?{get:data.fallback,mode:data.treeShakingMode}:undefined}}return consumesLoadingModuleToHandlerMapping});early(runtimeRequire.federation,"initOptions",()=>({}));early(runtimeRequire.federation.initOptions,"name",()=>__module_federation_container_name__);early(runtimeRequire.federation.initOptions,"shareStrategy",()=>__module_federation_share_strategy__);early(runtimeRequire.federation.initOptions,"shared",()=>{const shared={};for(let[scope,stages]of Object.entries(initializeSharingScopeToInitDataMapping)){for(let stage of stages){if(typeof stage==="object"&&stage!==null){const{name,version,factory,eager,singleton,requiredVersion,strictVersion,treeShakingMode}=stage;const shareConfig={};const isValidValue=function(val){return typeof val!=="undefined"};if(isValidValue(singleton)){shareConfig.singleton=singleton}if(isValidValue(requiredVersion)){shareConfig.requiredVersion=requiredVersion}if(isValidValue(eager)){shareConfig.eager=eager}if(isValidValue(strictVersion)){shareConfig.strictVersion=strictVersion}const options={version,scope:[scope],shareConfig,get:factory,treeShaking:treeShakingMode?{mode:treeShakingMode}:undefined};if(shared[name]){shared[name].push(options)}else{shared[name]=[options]}}}}return shared});merge(runtimeRequire.federation.initOptions,"remotes",()=>Object.values(__module_federation_remote_infos__).flat().filter(remote=>remote.externalType==="script"));merge(runtimeRequire.federation.initOptions,"plugins",()=>__module_federation_runtime_plugins__);early(runtimeRequire.federation,"bundlerRuntimeOptions",()=>({}));early(runtimeRequire.federation.bundlerRuntimeOptions,"remotes",()=>({}));early(runtimeRequire.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>remotesLoadingChunkMapping);early(runtimeRequire.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>__module_federation_remote_infos__);early(runtimeRequire.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{const remotesLoadingIdToExternalAndNameMappingMapping={};for(let[moduleId,data]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){remotesLoadingIdToExternalAndNameMappingMapping[moduleId]=[data.shareScope,data.name,data.externalModuleId,data.remoteName]}return remotesLoadingIdToExternalAndNameMappingMapping});early(runtimeRequire.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>runtimeRequire);merge(runtimeRequire.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{const idToRemoteMap={};for(let[id,remoteData]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){const info=__module_federation_remote_infos__[remoteData.remoteName];if(info)idToRemoteMap[id]=info}return idToRemoteMap});override(runtimeRequire,"S",runtimeRequire.federation.bundlerRuntime.S);if(runtimeRequire.federation.attachShareScopeMap){runtimeRequire.federation.attachShareScopeMap(runtimeRequire)}override(runtimeRequire.f,"remotes",(chunkId,promises)=>runtimeRequire.federation.bundlerRuntime.remotes({chunkId,promises,chunkMapping:remotesLoadingChunkMapping,idToExternalAndNameMapping:runtimeRequire.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:runtimeRequire.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:runtimeRequire}));override(runtimeRequire.f,"consumes",(chunkId,promises)=>runtimeRequire.federation.bundlerRuntime.consumes({chunkId,promises,chunkMapping:consumesLoadingChunkMapping,moduleToHandlerMapping:runtimeRequire.federation.consumesLoadingModuleToHandlerMapping,installedModules:consumesLoadinginstalledModules,webpackRequire:runtimeRequire}));override(runtimeRequire,"I",(name,initScope)=>runtimeRequire.federation.bundlerRuntime.I({shareScopeName:name,initScope,initPromises:initializeSharingInitPromises,initTokens:initializeSharingInitTokens,webpackRequire:runtimeRequire}));override(runtimeRequire,"initContainer",(shareScope,initScope,remoteEntryInitOptions)=>runtimeRequire.federation.bundlerRuntime.initContainerEntry({shareScope,initScope,remoteEntryInitOptions,shareScopeKey:containerShareScope,webpackRequire:runtimeRequire}));override(runtimeRequire,"getContainer",(module,getScope)=>{var moduleMap=runtimeRequire.initializeExposesData.moduleMap;runtimeRequire.R=getScope;getScope=Object.prototype.hasOwnProperty.call(moduleMap,module)?moduleMap[module]():Promise.resolve().then(()=>{throw new Error(\'Module "\'+module+\'" does not exist in container.\')});runtimeRequire.R=undefined;return getScope});runtimeRequire.federation.instance=runtimeRequire.federation.bundlerRuntime.init({webpackRequire:runtimeRequire});if((_runtimeRequire_consumesLoadingData2=runtimeRequire.consumesLoadingData)===null||_runtimeRequire_consumesLoadingData2===void 0?void 0:_runtimeRequire_consumesLoadingData2.initialConsumes){runtimeRequire.federation.bundlerRuntime.installInitialConsumes({webpackRequire:runtimeRequire,installedModules:consumesLoadinginstalledModules,initialConsumes:runtimeRequire.consumesLoadingData.initialConsumes,moduleToHandlerMapping:runtimeRequire.federation.consumesLoadingModuleToHandlerMapping})}}';
|
|
71870
71865
|
const compilerRuntimeGlobals = createCompilerRuntimeGlobals(compiler.options);
|
|
71871
|
-
getDefaultRuntimeSource(defaultRuntimeSource, 'rspack' === compiler.options.experiments.runtimeMode ? `new Proxy(function (moduleId) {
|
|
71866
|
+
const runtimeSource = getDefaultRuntimeSource(defaultRuntimeSource, 'rspack' === compiler.options.experiments.runtimeMode ? `new Proxy(function (moduleId) {
|
|
71872
71867
|
return ${compilerRuntimeGlobals.require}(moduleId);
|
|
71873
71868
|
}, {
|
|
71874
71869
|
get(_target, key) {
|
|
@@ -71889,7 +71884,7 @@ function getDefaultEntryRuntimeSource(paths, options, compiler, treeShakingShare
|
|
|
71889
71884
|
`const __module_federation_share_strategy__ = ${JSON.stringify(options.shareStrategy ?? 'version-first')}`,
|
|
71890
71885
|
`const __module_federation_share_fallbacks__ = ${JSON.stringify(treeShakingShareFallbacks)}`,
|
|
71891
71886
|
`const __module_federation_library_type__ = ${JSON.stringify(libraryType)}`,
|
|
71892
|
-
|
|
71887
|
+
runtimeSource
|
|
71893
71888
|
].join(';');
|
|
71894
71889
|
return content;
|
|
71895
71890
|
}
|
|
@@ -72063,7 +72058,7 @@ function transformSync(source, options) {
|
|
|
72063
72058
|
const _options = JSON.stringify(options || {});
|
|
72064
72059
|
return rspack_wasi_browser.transformSync(source, _options);
|
|
72065
72060
|
}
|
|
72066
|
-
const exports_rspackVersion = "2.1.
|
|
72061
|
+
const exports_rspackVersion = "2.1.3";
|
|
72067
72062
|
const exports_version = "5.75.0";
|
|
72068
72063
|
const exports_WebpackError = Error;
|
|
72069
72064
|
const exports_config = {
|