@rspack-debug/browser 2.0.0-beta.6 → 2.0.0-beta.8
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 +2 -0
- package/dist/builtin-loader/swc/types.d.ts +8 -0
- package/dist/builtin-plugin/EsmNodeTargetPlugin.d.ts +9 -0
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +25 -0
- package/dist/config/devServer.d.ts +15 -22
- package/dist/config/types.d.ts +1 -6
- package/dist/index.js +753 -768
- package/dist/napi-binding.d.ts +28 -11
- package/dist/rslib-runtime.js +5 -8
- package/dist/wasi-worker-browser.mjs +290 -182
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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 as external_rspack_wasi_browser_js_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__) {
|
|
@@ -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
|
};
|
|
@@ -4672,7 +4673,7 @@ __webpack_require__.add({
|
|
|
4672
4673
|
b = t;
|
|
4673
4674
|
} else if (0 === r || 0 === b.cmpn(1)) break;
|
|
4674
4675
|
a.isub(b);
|
|
4675
|
-
}while (true)
|
|
4676
|
+
}while (true)
|
|
4676
4677
|
return b.iushln(shift);
|
|
4677
4678
|
};
|
|
4678
4679
|
BN.prototype.invm = function(num) {
|
|
@@ -4888,7 +4889,7 @@ __webpack_require__.add({
|
|
|
4888
4889
|
r = this.imulK(r);
|
|
4889
4890
|
r = r.iadd(this.tmp);
|
|
4890
4891
|
rlen = r.bitLength();
|
|
4891
|
-
}while (rlen > this.n)
|
|
4892
|
+
}while (rlen > this.n)
|
|
4892
4893
|
var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
|
|
4893
4894
|
if (0 === cmp) {
|
|
4894
4895
|
r.words[0] = 0;
|
|
@@ -7223,7 +7224,7 @@ __webpack_require__.add({
|
|
|
7223
7224
|
b = t;
|
|
7224
7225
|
} else if (0 === r || 0 === b.cmpn(1)) break;
|
|
7225
7226
|
a.isub(b);
|
|
7226
|
-
}while (true)
|
|
7227
|
+
}while (true)
|
|
7227
7228
|
return b.iushln(shift);
|
|
7228
7229
|
};
|
|
7229
7230
|
BN.prototype.invm = function(num) {
|
|
@@ -7439,7 +7440,7 @@ __webpack_require__.add({
|
|
|
7439
7440
|
r = this.imulK(r);
|
|
7440
7441
|
r = r.iadd(this.tmp);
|
|
7441
7442
|
rlen = r.bitLength();
|
|
7442
|
-
}while (rlen > this.n)
|
|
7443
|
+
}while (rlen > this.n)
|
|
7443
7444
|
var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
|
|
7444
7445
|
if (0 === cmp) {
|
|
7445
7446
|
r.words[0] = 0;
|
|
@@ -8715,7 +8716,7 @@ __webpack_require__.add({
|
|
|
8715
8716
|
var len = priv.modulus.byteLength();
|
|
8716
8717
|
var r;
|
|
8717
8718
|
do r = new BN(randomBytes(len));
|
|
8718
|
-
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))
|
|
8719
8720
|
return r;
|
|
8720
8721
|
}
|
|
8721
8722
|
function blind(priv) {
|
|
@@ -8969,7 +8970,7 @@ __webpack_require__.add({
|
|
|
8969
8970
|
0
|
|
8970
8971
|
])).digest();
|
|
8971
8972
|
kv.v = createHmac(algo, kv.k).update(kv.v).digest();
|
|
8972
|
-
}while (-1 !== k.cmp(q))
|
|
8973
|
+
}while (-1 !== k.cmp(q))
|
|
8973
8974
|
return k;
|
|
8974
8975
|
}
|
|
8975
8976
|
function makeR(g, k, p, q) {
|
|
@@ -9670,7 +9671,7 @@ __webpack_require__.add({
|
|
|
9670
9671
|
});
|
|
9671
9672
|
assert(this._handle, 'zlib binding closed');
|
|
9672
9673
|
do var res = this._handle.writeSync(flushFlag, chunk, inOff, availInBefore, this._buffer, this._offset, availOutBefore);
|
|
9673
|
-
while (!this._hadError && callback(res[0], res[1]))
|
|
9674
|
+
while (!this._hadError && callback(res[0], res[1]))
|
|
9674
9675
|
if (this._hadError) throw error;
|
|
9675
9676
|
if (nread >= kMaxLength) {
|
|
9676
9677
|
_close(this);
|
|
@@ -9878,7 +9879,7 @@ __webpack_require__.add({
|
|
|
9878
9879
|
"../../node_modules/.pnpm/cipher-base@1.0.7/node_modules/cipher-base/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
9879
9880
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
9880
9881
|
var Transform = __webpack_require__("../../node_modules/.pnpm/stream-browserify@3.0.0/node_modules/stream-browserify/index.js").Transform;
|
|
9881
|
-
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;
|
|
9882
9883
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
9883
9884
|
var toBuffer = __webpack_require__("../../node_modules/.pnpm/to-buffer@1.2.2/node_modules/to-buffer/index.js");
|
|
9884
9885
|
function CipherBase(hashMode) {
|
|
@@ -10228,12 +10229,13 @@ __webpack_require__.add({
|
|
|
10228
10229
|
module.exports = Hmac;
|
|
10229
10230
|
},
|
|
10230
10231
|
"../../node_modules/.pnpm/crypto-browserify@3.12.1/node_modules/crypto-browserify/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
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");
|
|
10234
10236
|
var algos = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/algos.js");
|
|
10235
10237
|
var algoKeys = Object.keys(algos);
|
|
10236
|
-
|
|
10238
|
+
[
|
|
10237
10239
|
'sha1',
|
|
10238
10240
|
'sha224',
|
|
10239
10241
|
'sha256',
|
|
@@ -10242,63 +10244,40 @@ __webpack_require__.add({
|
|
|
10242
10244
|
'md5',
|
|
10243
10245
|
'rmd160'
|
|
10244
10246
|
].concat(algoKeys);
|
|
10245
|
-
exports.getHashes = function() {
|
|
10246
|
-
return hashes;
|
|
10247
|
-
};
|
|
10248
10247
|
var p = __webpack_require__("../../node_modules/.pnpm/pbkdf2@3.1.5/node_modules/pbkdf2/browser.js");
|
|
10249
|
-
|
|
10250
|
-
|
|
10248
|
+
__webpack_unused_export__ = p.pbkdf2;
|
|
10249
|
+
__webpack_unused_export__ = p.pbkdf2Sync;
|
|
10251
10250
|
var aes = __webpack_require__("../../node_modules/.pnpm/browserify-cipher@1.0.1/node_modules/browserify-cipher/browser.js");
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
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;
|
|
10262
10261
|
var dh = __webpack_require__("../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/browser.js");
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
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;
|
|
10268
10267
|
var sign = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/index.js");
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
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");
|
|
10274
10273
|
var publicEncrypt = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/browser.js");
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10274
|
+
__webpack_unused_export__ = publicEncrypt.publicEncrypt;
|
|
10275
|
+
__webpack_unused_export__ = publicEncrypt.privateEncrypt;
|
|
10276
|
+
__webpack_unused_export__ = publicEncrypt.publicDecrypt;
|
|
10277
|
+
__webpack_unused_export__ = publicEncrypt.privateDecrypt;
|
|
10279
10278
|
var rf = __webpack_require__("../../node_modules/.pnpm/randomfill@1.0.4/node_modules/randomfill/browser.js");
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
exports.createCredentials = function() {
|
|
10283
|
-
throw new Error('sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify');
|
|
10284
|
-
};
|
|
10285
|
-
exports.constants = {
|
|
10286
|
-
DH_CHECK_P_NOT_SAFE_PRIME: 2,
|
|
10287
|
-
DH_CHECK_P_NOT_PRIME: 1,
|
|
10288
|
-
DH_UNABLE_TO_CHECK_GENERATOR: 4,
|
|
10289
|
-
DH_NOT_SUITABLE_GENERATOR: 8,
|
|
10290
|
-
NPN_ENABLED: 1,
|
|
10291
|
-
ALPN_ENABLED: 1,
|
|
10292
|
-
RSA_PKCS1_PADDING: 1,
|
|
10293
|
-
RSA_SSLV23_PADDING: 2,
|
|
10294
|
-
RSA_NO_PADDING: 3,
|
|
10295
|
-
RSA_PKCS1_OAEP_PADDING: 4,
|
|
10296
|
-
RSA_X931_PADDING: 5,
|
|
10297
|
-
RSA_PKCS1_PSS_PADDING: 6,
|
|
10298
|
-
POINT_CONVERSION_COMPRESSED: 2,
|
|
10299
|
-
POINT_CONVERSION_UNCOMPRESSED: 4,
|
|
10300
|
-
POINT_CONVERSION_HYBRID: 6
|
|
10301
|
-
};
|
|
10279
|
+
__webpack_unused_export__ = rf.randomFill;
|
|
10280
|
+
__webpack_unused_export__ = rf.randomFillSync;
|
|
10302
10281
|
},
|
|
10303
10282
|
"../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
10304
10283
|
var $defineProperty = __webpack_require__("../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js");
|
|
@@ -14574,9 +14553,9 @@ __webpack_require__.add({
|
|
|
14574
14553
|
}
|
|
14575
14554
|
utils.intFromLE = intFromLE;
|
|
14576
14555
|
},
|
|
14577
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.
|
|
14556
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
14578
14557
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
14579
|
-
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.
|
|
14558
|
+
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/util/process-browser.js");
|
|
14580
14559
|
const dirname = (path)=>{
|
|
14581
14560
|
let idx = path.length - 1;
|
|
14582
14561
|
while(idx >= 0){
|
|
@@ -14870,7 +14849,7 @@ __webpack_require__.add({
|
|
|
14870
14849
|
}
|
|
14871
14850
|
};
|
|
14872
14851
|
},
|
|
14873
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.
|
|
14852
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/util/process-browser.js" (module) {
|
|
14874
14853
|
module.exports = {
|
|
14875
14854
|
versions: {},
|
|
14876
14855
|
nextTick (fn) {
|
|
@@ -16684,92 +16663,6 @@ __webpack_require__.add({
|
|
|
16684
16663
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
16685
16664
|
};
|
|
16686
16665
|
},
|
|
16687
|
-
"../../node_modules/.pnpm/hash-base@3.0.5/node_modules/hash-base/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
16688
|
-
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
16689
|
-
var Transform = __webpack_require__("../../node_modules/.pnpm/stream-browserify@3.0.0/node_modules/stream-browserify/index.js").Transform;
|
|
16690
|
-
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
16691
|
-
function HashBase(blockSize) {
|
|
16692
|
-
Transform.call(this);
|
|
16693
|
-
this._block = Buffer.allocUnsafe(blockSize);
|
|
16694
|
-
this._blockSize = blockSize;
|
|
16695
|
-
this._blockOffset = 0;
|
|
16696
|
-
this._length = [
|
|
16697
|
-
0,
|
|
16698
|
-
0,
|
|
16699
|
-
0,
|
|
16700
|
-
0
|
|
16701
|
-
];
|
|
16702
|
-
this._finalized = false;
|
|
16703
|
-
}
|
|
16704
|
-
inherits(HashBase, Transform);
|
|
16705
|
-
HashBase.prototype._transform = function(chunk, encoding, callback) {
|
|
16706
|
-
var error = null;
|
|
16707
|
-
try {
|
|
16708
|
-
this.update(chunk, encoding);
|
|
16709
|
-
} catch (err) {
|
|
16710
|
-
error = err;
|
|
16711
|
-
}
|
|
16712
|
-
callback(error);
|
|
16713
|
-
};
|
|
16714
|
-
HashBase.prototype._flush = function(callback) {
|
|
16715
|
-
var error = null;
|
|
16716
|
-
try {
|
|
16717
|
-
this.push(this.digest());
|
|
16718
|
-
} catch (err) {
|
|
16719
|
-
error = err;
|
|
16720
|
-
}
|
|
16721
|
-
callback(error);
|
|
16722
|
-
};
|
|
16723
|
-
var useUint8Array = "u" > typeof Uint8Array;
|
|
16724
|
-
var useArrayBuffer = "u" > typeof ArrayBuffer && "u" > typeof Uint8Array && ArrayBuffer.isView && (Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT);
|
|
16725
|
-
function toBuffer(data, encoding) {
|
|
16726
|
-
if (data instanceof Buffer) return data;
|
|
16727
|
-
if ('string' == typeof data) return Buffer.from(data, encoding);
|
|
16728
|
-
if (useArrayBuffer && ArrayBuffer.isView(data)) {
|
|
16729
|
-
if (0 === data.byteLength) return Buffer.alloc(0);
|
|
16730
|
-
var res = Buffer.from(data.buffer, data.byteOffset, data.byteLength);
|
|
16731
|
-
if (res.byteLength === data.byteLength) return res;
|
|
16732
|
-
}
|
|
16733
|
-
if (useUint8Array && data instanceof Uint8Array) return Buffer.from(data);
|
|
16734
|
-
if (Buffer.isBuffer(data) && data.constructor && 'function' == typeof data.constructor.isBuffer && data.constructor.isBuffer(data)) return Buffer.from(data);
|
|
16735
|
-
throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.');
|
|
16736
|
-
}
|
|
16737
|
-
HashBase.prototype.update = function(data, encoding) {
|
|
16738
|
-
if (this._finalized) throw new Error('Digest already called');
|
|
16739
|
-
data = toBuffer(data, encoding);
|
|
16740
|
-
var block = this._block;
|
|
16741
|
-
var offset = 0;
|
|
16742
|
-
while(this._blockOffset + data.length - offset >= this._blockSize){
|
|
16743
|
-
for(var i = this._blockOffset; i < this._blockSize;)block[i++] = data[offset++];
|
|
16744
|
-
this._update();
|
|
16745
|
-
this._blockOffset = 0;
|
|
16746
|
-
}
|
|
16747
|
-
while(offset < data.length)block[this._blockOffset++] = data[offset++];
|
|
16748
|
-
for(var j = 0, carry = 8 * data.length; carry > 0; ++j){
|
|
16749
|
-
this._length[j] += carry;
|
|
16750
|
-
carry = this._length[j] / 0x0100000000 | 0;
|
|
16751
|
-
if (carry > 0) this._length[j] -= 0x0100000000 * carry;
|
|
16752
|
-
}
|
|
16753
|
-
return this;
|
|
16754
|
-
};
|
|
16755
|
-
HashBase.prototype._update = function() {
|
|
16756
|
-
throw new Error('_update is not implemented');
|
|
16757
|
-
};
|
|
16758
|
-
HashBase.prototype.digest = function(encoding) {
|
|
16759
|
-
if (this._finalized) throw new Error('Digest already called');
|
|
16760
|
-
this._finalized = true;
|
|
16761
|
-
var digest = this._digest();
|
|
16762
|
-
if (void 0 !== encoding) digest = digest.toString(encoding);
|
|
16763
|
-
this._block.fill(0);
|
|
16764
|
-
this._blockOffset = 0;
|
|
16765
|
-
for(var i = 0; i < 4; ++i)this._length[i] = 0;
|
|
16766
|
-
return digest;
|
|
16767
|
-
};
|
|
16768
|
-
HashBase.prototype._digest = function() {
|
|
16769
|
-
throw new Error('_digest is not implemented');
|
|
16770
|
-
};
|
|
16771
|
-
module.exports = HashBase;
|
|
16772
|
-
},
|
|
16773
16666
|
"../../node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
16774
16667
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
16775
16668
|
var toBuffer = __webpack_require__("../../node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/to-buffer.js");
|
|
@@ -18674,7 +18567,7 @@ __webpack_require__.add({
|
|
|
18674
18567
|
},
|
|
18675
18568
|
"../../node_modules/.pnpm/md5.js@1.3.5/node_modules/md5.js/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18676
18569
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
18677
|
-
var HashBase = __webpack_require__("../../node_modules/.pnpm/hash-base@3.
|
|
18570
|
+
var HashBase = __webpack_require__("../../node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/index.js");
|
|
18678
18571
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
18679
18572
|
var ARRAY16 = new Array(16);
|
|
18680
18573
|
function MD5() {
|
|
@@ -18810,7 +18703,7 @@ __webpack_require__.add({
|
|
|
18810
18703
|
var len = n.bitLength();
|
|
18811
18704
|
var min_bytes = Math.ceil(len / 8);
|
|
18812
18705
|
do var a = new bn(this.rand.generate(min_bytes));
|
|
18813
|
-
while (a.cmp(n) >= 0)
|
|
18706
|
+
while (a.cmp(n) >= 0)
|
|
18814
18707
|
return a;
|
|
18815
18708
|
};
|
|
18816
18709
|
MillerRabin.prototype._randrange = function(start, stop) {
|
|
@@ -19663,7 +19556,7 @@ __webpack_require__.add({
|
|
|
19663
19556
|
do {
|
|
19664
19557
|
s1 = s1 + buf[pos++] | 0;
|
|
19665
19558
|
s2 = s2 + s1 | 0;
|
|
19666
|
-
}while (--n)
|
|
19559
|
+
}while (--n)
|
|
19667
19560
|
s1 %= 65521;
|
|
19668
19561
|
s2 %= 65521;
|
|
19669
19562
|
}
|
|
@@ -19841,7 +19734,7 @@ __webpack_require__.add({
|
|
|
19841
19734
|
scan += 2;
|
|
19842
19735
|
match++;
|
|
19843
19736
|
do ;
|
|
19844
|
-
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)
|
|
19845
19738
|
len = MAX_MATCH - (strend - scan);
|
|
19846
19739
|
scan = strend - MAX_MATCH;
|
|
19847
19740
|
if (len > best_len) {
|
|
@@ -19851,7 +19744,7 @@ __webpack_require__.add({
|
|
|
19851
19744
|
scan_end1 = _win[scan + best_len - 1];
|
|
19852
19745
|
scan_end = _win[scan + best_len];
|
|
19853
19746
|
}
|
|
19854
|
-
}while ((cur_match = prev[cur_match & wmask]) > limit && 0 !== --chain_length)
|
|
19747
|
+
}while ((cur_match = prev[cur_match & wmask]) > limit && 0 !== --chain_length)
|
|
19855
19748
|
if (best_len <= s.lookahead) return best_len;
|
|
19856
19749
|
return s.lookahead;
|
|
19857
19750
|
}
|
|
@@ -19870,13 +19763,13 @@ __webpack_require__.add({
|
|
|
19870
19763
|
do {
|
|
19871
19764
|
m = s.head[--p];
|
|
19872
19765
|
s.head[p] = m >= _w_size ? m - _w_size : 0;
|
|
19873
|
-
}while (--n)
|
|
19766
|
+
}while (--n)
|
|
19874
19767
|
n = _w_size;
|
|
19875
19768
|
p = n;
|
|
19876
19769
|
do {
|
|
19877
19770
|
m = s.prev[--p];
|
|
19878
19771
|
s.prev[p] = m >= _w_size ? m - _w_size : 0;
|
|
19879
|
-
}while (--n)
|
|
19772
|
+
}while (--n)
|
|
19880
19773
|
more += _w_size;
|
|
19881
19774
|
}
|
|
19882
19775
|
if (0 === s.strm.avail_in) break;
|
|
@@ -19895,7 +19788,7 @@ __webpack_require__.add({
|
|
|
19895
19788
|
if (s.lookahead + s.insert < MIN_MATCH) break;
|
|
19896
19789
|
}
|
|
19897
19790
|
}
|
|
19898
|
-
}while (s.lookahead < MIN_LOOKAHEAD && 0 !== s.strm.avail_in)
|
|
19791
|
+
}while (s.lookahead < MIN_LOOKAHEAD && 0 !== s.strm.avail_in)
|
|
19899
19792
|
}
|
|
19900
19793
|
function deflate_stored(s, flush) {
|
|
19901
19794
|
var max_block_size = 0xffff;
|
|
@@ -19958,7 +19851,7 @@ __webpack_require__.add({
|
|
|
19958
19851
|
s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
|
|
19959
19852
|
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
19960
19853
|
s.head[s.ins_h] = s.strstart;
|
|
19961
|
-
}while (0 !== --s.match_length)
|
|
19854
|
+
}while (0 !== --s.match_length)
|
|
19962
19855
|
s.strstart++;
|
|
19963
19856
|
} else {
|
|
19964
19857
|
s.strstart += s.match_length;
|
|
@@ -20021,7 +19914,7 @@ __webpack_require__.add({
|
|
|
20021
19914
|
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
20022
19915
|
s.head[s.ins_h] = s.strstart;
|
|
20023
19916
|
}
|
|
20024
|
-
while (0 !== --s.prev_length)
|
|
19917
|
+
while (0 !== --s.prev_length)
|
|
20025
19918
|
s.match_available = 0;
|
|
20026
19919
|
s.match_length = MIN_MATCH - 1;
|
|
20027
19920
|
s.strstart++;
|
|
@@ -20075,7 +19968,7 @@ __webpack_require__.add({
|
|
|
20075
19968
|
if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
|
|
20076
19969
|
strend = s.strstart + MAX_MATCH;
|
|
20077
19970
|
do ;
|
|
20078
|
-
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)
|
|
20079
19972
|
s.match_length = MAX_MATCH - (strend - scan);
|
|
20080
19973
|
if (s.match_length > s.lookahead) s.match_length = s.lookahead;
|
|
20081
19974
|
}
|
|
@@ -20391,7 +20284,7 @@ __webpack_require__.add({
|
|
|
20391
20284
|
}
|
|
20392
20285
|
val = s.gzindex < s.gzhead.name.length ? 0xff & s.gzhead.name.charCodeAt(s.gzindex++) : 0;
|
|
20393
20286
|
put_byte(s, val);
|
|
20394
|
-
}while (0 !== val)
|
|
20287
|
+
}while (0 !== val)
|
|
20395
20288
|
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
20396
20289
|
if (0 === val) {
|
|
20397
20290
|
s.gzindex = 0;
|
|
@@ -20412,7 +20305,7 @@ __webpack_require__.add({
|
|
|
20412
20305
|
}
|
|
20413
20306
|
val = s.gzindex < s.gzhead.comment.length ? 0xff & s.gzhead.comment.charCodeAt(s.gzindex++) : 0;
|
|
20414
20307
|
put_byte(s, val);
|
|
20415
|
-
}while (0 !== val)
|
|
20308
|
+
}while (0 !== val)
|
|
20416
20309
|
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
20417
20310
|
if (0 === val) s.status = HCRC_STATE;
|
|
20418
20311
|
} else s.status = HCRC_STATE;
|
|
@@ -20529,7 +20422,7 @@ __webpack_require__.add({
|
|
|
20529
20422
|
s.prev[str & s.w_mask] = s.head[s.ins_h];
|
|
20530
20423
|
s.head[s.ins_h] = str;
|
|
20531
20424
|
str++;
|
|
20532
|
-
}while (--n)
|
|
20425
|
+
}while (--n)
|
|
20533
20426
|
s.strstart = str;
|
|
20534
20427
|
s.lookahead = MIN_MATCH - 1;
|
|
20535
20428
|
fill_window(s);
|
|
@@ -20677,7 +20570,7 @@ __webpack_require__.add({
|
|
|
20677
20570
|
if (op < len) {
|
|
20678
20571
|
len -= op;
|
|
20679
20572
|
do output[_out++] = s_window[from++];
|
|
20680
|
-
while (--op)
|
|
20573
|
+
while (--op)
|
|
20681
20574
|
from = _out - dist;
|
|
20682
20575
|
from_source = output;
|
|
20683
20576
|
}
|
|
@@ -20687,13 +20580,13 @@ __webpack_require__.add({
|
|
|
20687
20580
|
if (op < len) {
|
|
20688
20581
|
len -= op;
|
|
20689
20582
|
do output[_out++] = s_window[from++];
|
|
20690
|
-
while (--op)
|
|
20583
|
+
while (--op)
|
|
20691
20584
|
from = 0;
|
|
20692
20585
|
if (wnext < len) {
|
|
20693
20586
|
op = wnext;
|
|
20694
20587
|
len -= op;
|
|
20695
20588
|
do output[_out++] = s_window[from++];
|
|
20696
|
-
while (--op)
|
|
20589
|
+
while (--op)
|
|
20697
20590
|
from = _out - dist;
|
|
20698
20591
|
from_source = output;
|
|
20699
20592
|
}
|
|
@@ -20703,7 +20596,7 @@ __webpack_require__.add({
|
|
|
20703
20596
|
if (op < len) {
|
|
20704
20597
|
len -= op;
|
|
20705
20598
|
do output[_out++] = s_window[from++];
|
|
20706
|
-
while (--op)
|
|
20599
|
+
while (--op)
|
|
20707
20600
|
from = _out - dist;
|
|
20708
20601
|
from_source = output;
|
|
20709
20602
|
}
|
|
@@ -20725,7 +20618,7 @@ __webpack_require__.add({
|
|
|
20725
20618
|
output[_out++] = output[from++];
|
|
20726
20619
|
output[_out++] = output[from++];
|
|
20727
20620
|
len -= 3;
|
|
20728
|
-
}while (len > 2)
|
|
20621
|
+
}while (len > 2)
|
|
20729
20622
|
if (len) {
|
|
20730
20623
|
output[_out++] = output[from++];
|
|
20731
20624
|
if (len > 1) output[_out++] = output[from++];
|
|
@@ -20754,7 +20647,7 @@ __webpack_require__.add({
|
|
|
20754
20647
|
}
|
|
20755
20648
|
break;
|
|
20756
20649
|
}
|
|
20757
|
-
}while (_in < last && _out < end)
|
|
20650
|
+
}while (_in < last && _out < end)
|
|
20758
20651
|
len = bits >> 3;
|
|
20759
20652
|
_in -= len;
|
|
20760
20653
|
bits -= len << 3;
|
|
@@ -21194,7 +21087,7 @@ __webpack_require__.add({
|
|
|
21194
21087
|
do {
|
|
21195
21088
|
len = input[next + copy++];
|
|
21196
21089
|
if (state.head && len && state.length < 65536) state.head.name += String.fromCharCode(len);
|
|
21197
|
-
}while (len && copy < have)
|
|
21090
|
+
}while (len && copy < have)
|
|
21198
21091
|
if (0x0200 & state.flags) state.check = crc32(state.check, input, copy, next);
|
|
21199
21092
|
have -= copy;
|
|
21200
21093
|
next += copy;
|
|
@@ -21209,7 +21102,7 @@ __webpack_require__.add({
|
|
|
21209
21102
|
do {
|
|
21210
21103
|
len = input[next + copy++];
|
|
21211
21104
|
if (state.head && len && state.length < 65536) state.head.comment += String.fromCharCode(len);
|
|
21212
|
-
}while (len && copy < have)
|
|
21105
|
+
}while (len && copy < have)
|
|
21213
21106
|
if (0x0200 & state.flags) state.check = crc32(state.check, input, copy, next);
|
|
21214
21107
|
have -= copy;
|
|
21215
21108
|
next += copy;
|
|
@@ -21673,7 +21566,7 @@ __webpack_require__.add({
|
|
|
21673
21566
|
left -= copy;
|
|
21674
21567
|
state.length -= copy;
|
|
21675
21568
|
do output[put++] = from_source[from++];
|
|
21676
|
-
while (--copy)
|
|
21569
|
+
while (--copy)
|
|
21677
21570
|
if (0 === state.length) state.mode = LEN;
|
|
21678
21571
|
break;
|
|
21679
21572
|
case LIT:
|
|
@@ -22034,7 +21927,7 @@ __webpack_require__.add({
|
|
|
22034
21927
|
do {
|
|
22035
21928
|
fill -= incr;
|
|
22036
21929
|
table[next + (huff >> drop) + fill] = here_bits << 24 | here_op << 16 | here_val;
|
|
22037
|
-
}while (0 !== fill)
|
|
21930
|
+
}while (0 !== fill)
|
|
22038
21931
|
incr = 1 << len - 1;
|
|
22039
21932
|
while(huff & incr)incr >>= 1;
|
|
22040
21933
|
if (0 !== incr) {
|
|
@@ -22270,7 +22163,7 @@ __webpack_require__.add({
|
|
|
22270
22163
|
res |= 1 & code;
|
|
22271
22164
|
code >>>= 1;
|
|
22272
22165
|
res <<= 1;
|
|
22273
|
-
}while (--len > 0)
|
|
22166
|
+
}while (--len > 0)
|
|
22274
22167
|
return res >>> 1;
|
|
22275
22168
|
}
|
|
22276
22169
|
function bi_flush(s) {
|
|
@@ -22325,7 +22218,7 @@ __webpack_require__.add({
|
|
|
22325
22218
|
s.bl_count[bits + 1] += 2;
|
|
22326
22219
|
s.bl_count[max_length]--;
|
|
22327
22220
|
overflow -= 2;
|
|
22328
|
-
}while (overflow > 0)
|
|
22221
|
+
}while (overflow > 0)
|
|
22329
22222
|
for(bits = max_length; 0 !== bits; bits--){
|
|
22330
22223
|
n = s.bl_count[bits];
|
|
22331
22224
|
while(0 !== n){
|
|
@@ -22473,7 +22366,7 @@ __webpack_require__.add({
|
|
|
22473
22366
|
send_bits(s, dist, extra);
|
|
22474
22367
|
}
|
|
22475
22368
|
}
|
|
22476
|
-
}while (lx < s.last_lit)
|
|
22369
|
+
}while (lx < s.last_lit)
|
|
22477
22370
|
send_code(s, END_BLOCK, ltree);
|
|
22478
22371
|
}
|
|
22479
22372
|
function build_tree(s, desc) {
|
|
@@ -22512,7 +22405,7 @@ __webpack_require__.add({
|
|
|
22512
22405
|
tree[2 * n + 1] = tree[2 * m + 1] = node;
|
|
22513
22406
|
s.heap[1] = node++;
|
|
22514
22407
|
pqdownheap(s, tree, 1);
|
|
22515
|
-
}while (s.heap_len >= 2)
|
|
22408
|
+
}while (s.heap_len >= 2)
|
|
22516
22409
|
s.heap[--s.heap_max] = s.heap[1];
|
|
22517
22410
|
gen_bitlen(s, desc);
|
|
22518
22411
|
gen_codes(tree, max_code, s.bl_count);
|
|
@@ -22572,7 +22465,7 @@ __webpack_require__.add({
|
|
|
22572
22465
|
nextlen = tree[(n + 1) * 2 + 1];
|
|
22573
22466
|
if (!(++count < max_count) || curlen !== nextlen) {
|
|
22574
22467
|
if (count < min_count) do send_code(s, curlen, s.bl_tree);
|
|
22575
|
-
while (0 !== --count)
|
|
22468
|
+
while (0 !== --count)
|
|
22576
22469
|
else if (0 !== curlen) {
|
|
22577
22470
|
if (curlen !== prevlen) {
|
|
22578
22471
|
send_code(s, curlen, s.bl_tree);
|
|
@@ -25051,7 +24944,7 @@ __webpack_require__.add({
|
|
|
25051
24944
|
this.decoder = null;
|
|
25052
24945
|
this.encoding = null;
|
|
25053
24946
|
if (options.encoding) {
|
|
25054
|
-
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;
|
|
25055
24948
|
this.decoder = new StringDecoder(options.encoding);
|
|
25056
24949
|
this.encoding = options.encoding;
|
|
25057
24950
|
}
|
|
@@ -25150,7 +25043,7 @@ __webpack_require__.add({
|
|
|
25150
25043
|
return false === this._readableState.flowing;
|
|
25151
25044
|
};
|
|
25152
25045
|
Readable.prototype.setEncoding = function(enc) {
|
|
25153
|
-
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;
|
|
25154
25047
|
this._readableState.decoder = new StringDecoder(enc);
|
|
25155
25048
|
this._readableState.encoding = enc;
|
|
25156
25049
|
return this;
|
|
@@ -26331,7 +26224,7 @@ __webpack_require__.add({
|
|
|
26331
26224
|
return 'Unknown encoding: ' + arg;
|
|
26332
26225
|
}, TypeError);
|
|
26333
26226
|
createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
|
|
26334
|
-
module.exports.
|
|
26227
|
+
module.exports.F = codes;
|
|
26335
26228
|
},
|
|
26336
26229
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
26337
26230
|
var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
@@ -26437,7 +26330,7 @@ __webpack_require__.add({
|
|
|
26437
26330
|
var BufferList = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js");
|
|
26438
26331
|
var destroyImpl = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js");
|
|
26439
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;
|
|
26440
|
-
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;
|
|
26441
26334
|
var StringDecoder;
|
|
26442
26335
|
var createReadableStreamAsyncIterator;
|
|
26443
26336
|
var from;
|
|
@@ -26489,7 +26382,7 @@ __webpack_require__.add({
|
|
|
26489
26382
|
this.decoder = null;
|
|
26490
26383
|
this.encoding = null;
|
|
26491
26384
|
if (options.encoding) {
|
|
26492
|
-
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;
|
|
26493
26386
|
this.decoder = new StringDecoder(options.encoding);
|
|
26494
26387
|
this.encoding = options.encoding;
|
|
26495
26388
|
}
|
|
@@ -26595,7 +26488,7 @@ __webpack_require__.add({
|
|
|
26595
26488
|
return false === this._readableState.flowing;
|
|
26596
26489
|
};
|
|
26597
26490
|
Readable.prototype.setEncoding = function(enc) {
|
|
26598
|
-
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;
|
|
26599
26492
|
var decoder = new StringDecoder(enc);
|
|
26600
26493
|
this._readableState.decoder = decoder;
|
|
26601
26494
|
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
@@ -27075,7 +26968,7 @@ __webpack_require__.add({
|
|
|
27075
26968
|
},
|
|
27076
26969
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
27077
26970
|
module.exports = Transform;
|
|
27078
|
-
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;
|
|
27079
26972
|
var Duplex = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js");
|
|
27080
26973
|
__webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js")(Transform, Duplex);
|
|
27081
26974
|
function afterTransform(er, data) {
|
|
@@ -27182,7 +27075,7 @@ __webpack_require__.add({
|
|
|
27182
27075
|
}
|
|
27183
27076
|
var destroyImpl = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js");
|
|
27184
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;
|
|
27185
|
-
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;
|
|
27186
27079
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
27187
27080
|
__webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js")(Writable, Stream);
|
|
27188
27081
|
function nop() {}
|
|
@@ -28053,7 +27946,7 @@ __webpack_require__.add({
|
|
|
28053
27946
|
};
|
|
28054
27947
|
},
|
|
28055
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__) {
|
|
28056
|
-
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;
|
|
28057
27950
|
function once(callback) {
|
|
28058
27951
|
var called = false;
|
|
28059
27952
|
return function() {
|
|
@@ -28148,7 +28041,7 @@ __webpack_require__.add({
|
|
|
28148
28041
|
callback.apply(void 0, arguments);
|
|
28149
28042
|
};
|
|
28150
28043
|
}
|
|
28151
|
-
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;
|
|
28152
28045
|
function noop(err) {
|
|
28153
28046
|
if (err) throw err;
|
|
28154
28047
|
}
|
|
@@ -28213,7 +28106,7 @@ __webpack_require__.add({
|
|
|
28213
28106
|
module.exports = pipeline;
|
|
28214
28107
|
},
|
|
28215
28108
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
28216
|
-
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;
|
|
28217
28110
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
28218
28111
|
return null != options.highWaterMark ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
28219
28112
|
}
|
|
@@ -30399,7 +30292,7 @@ __webpack_require__.add({
|
|
|
30399
30292
|
if ('string' != typeof nenc && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
|
|
30400
30293
|
return nenc || enc;
|
|
30401
30294
|
}
|
|
30402
|
-
exports.
|
|
30295
|
+
exports.I = StringDecoder;
|
|
30403
30296
|
function StringDecoder(encoding) {
|
|
30404
30297
|
this.encoding = normalizeEncoding(encoding);
|
|
30405
30298
|
var nb;
|
|
@@ -30625,7 +30518,7 @@ __webpack_require__.add({
|
|
|
30625
30518
|
if ('string' != typeof nenc && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
|
|
30626
30519
|
return nenc || enc;
|
|
30627
30520
|
}
|
|
30628
|
-
exports.
|
|
30521
|
+
exports.I = StringDecoder;
|
|
30629
30522
|
function StringDecoder(encoding) {
|
|
30630
30523
|
this.encoding = normalizeEncoding(encoding);
|
|
30631
30524
|
var nb;
|
|
@@ -32735,7 +32628,7 @@ __webpack_require__.add({
|
|
|
32735
32628
|
do {
|
|
32736
32629
|
parent.entries += node.entries;
|
|
32737
32630
|
parent = parent.parent;
|
|
32738
|
-
}while (parent)
|
|
32631
|
+
}while (parent)
|
|
32739
32632
|
}
|
|
32740
32633
|
}
|
|
32741
32634
|
}
|
|
@@ -33027,9 +32920,6 @@ __webpack_require__.add({
|
|
|
33027
32920
|
execute();
|
|
33028
32921
|
}
|
|
33029
32922
|
};
|
|
33030
|
-
exports.getNumberOfWatchers = ()=>watcherCount;
|
|
33031
|
-
exports.createHandleChangeEvent = createHandleChangeEvent;
|
|
33032
|
-
exports.watcherLimit = watcherLimit;
|
|
33033
32923
|
},
|
|
33034
32924
|
"../../node_modules/.pnpm/watchpack@2.4.4/node_modules/watchpack/lib/watchpack.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
33035
32925
|
const getWatcherManager = __webpack_require__("../../node_modules/.pnpm/watchpack@2.4.4/node_modules/watchpack/lib/getWatcherManager.js");
|
|
@@ -34159,7 +34049,7 @@ __webpack_require__.add({
|
|
|
34159
34049
|
}
|
|
34160
34050
|
generatedColumn += offset;
|
|
34161
34051
|
}
|
|
34162
|
-
}while (nextReplacement < endPos)
|
|
34052
|
+
}while (nextReplacement < endPos)
|
|
34163
34053
|
if (chunkPos < chunk.length) {
|
|
34164
34054
|
const chunkSlice = 0 === chunkPos ? chunk : chunk.slice(chunkPos);
|
|
34165
34055
|
const line = generatedLine + generatedLineOffset;
|
|
@@ -35403,7 +35293,7 @@ __webpack_require__.add({
|
|
|
35403
35293
|
__webpack_require__.d(__webpack_exports__, {
|
|
35404
35294
|
Buffer: ()=>_napi_rs_wasm_runtime_fs__rspack_import_0.hp
|
|
35405
35295
|
});
|
|
35406
|
-
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.
|
|
35296
|
+
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35407
35297
|
},
|
|
35408
35298
|
"./src/browser/fs.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
35409
35299
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -35419,15 +35309,15 @@ __webpack_require__.add({
|
|
|
35419
35309
|
volume: ()=>volume,
|
|
35420
35310
|
watch: ()=>watch
|
|
35421
35311
|
});
|
|
35422
|
-
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.
|
|
35423
|
-
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding");
|
|
35312
|
+
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35313
|
+
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?91dc");
|
|
35424
35314
|
const fs = _rspack_binding__rspack_import_1.__fs;
|
|
35425
35315
|
const volume = _rspack_binding__rspack_import_1.__volume;
|
|
35426
35316
|
const memfs = _napi_rs_wasm_runtime_fs__rspack_import_0.tO;
|
|
35427
35317
|
const { readFileSync, readdirSync, lstat, existsSync, readdir, watch } = fs;
|
|
35428
35318
|
const __rspack_default_export = fs;
|
|
35429
35319
|
},
|
|
35430
|
-
"@rspack/binding" (module) {
|
|
35320
|
+
"@rspack/binding?91dc" (module) {
|
|
35431
35321
|
module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
|
|
35432
35322
|
},
|
|
35433
35323
|
"?7763" () {},
|
|
@@ -35447,7 +35337,7 @@ __webpack_require__.add({
|
|
|
35447
35337
|
return out;
|
|
35448
35338
|
};
|
|
35449
35339
|
},
|
|
35450
|
-
"../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.
|
|
35340
|
+
"../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/dist/fs.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35451
35341
|
__webpack_require__.d(__webpack_exports__, {
|
|
35452
35342
|
hp: ()=>Buffer,
|
|
35453
35343
|
tO: ()=>memfs
|
|
@@ -37080,13 +36970,13 @@ __webpack_require__.add({
|
|
|
37080
36970
|
function requireBuffer$1() {
|
|
37081
36971
|
if (hasRequiredBuffer$1) return buffer$1;
|
|
37082
36972
|
hasRequiredBuffer$1 = 1;
|
|
37083
|
-
(function(exports) {
|
|
37084
|
-
Object.defineProperty(exports, "__esModule", {
|
|
36973
|
+
(function(exports$1) {
|
|
36974
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37085
36975
|
value: true
|
|
37086
36976
|
});
|
|
37087
|
-
exports.Buffer = void 0;
|
|
36977
|
+
exports$1.Buffer = void 0;
|
|
37088
36978
|
var node_buffer_1 = require$$0$2;
|
|
37089
|
-
Object.defineProperty(exports, "Buffer", {
|
|
36979
|
+
Object.defineProperty(exports$1, "Buffer", {
|
|
37090
36980
|
enumerable: true,
|
|
37091
36981
|
get: function() {
|
|
37092
36982
|
return node_buffer_1.Buffer;
|
|
@@ -37099,13 +36989,13 @@ __webpack_require__.add({
|
|
|
37099
36989
|
function requireBuffer() {
|
|
37100
36990
|
if (hasRequiredBuffer) return buffer$2;
|
|
37101
36991
|
hasRequiredBuffer = 1;
|
|
37102
|
-
(function(exports) {
|
|
37103
|
-
Object.defineProperty(exports, "__esModule", {
|
|
36992
|
+
(function(exports$1) {
|
|
36993
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37104
36994
|
value: true
|
|
37105
36995
|
});
|
|
37106
|
-
exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
|
|
36996
|
+
exports$1.bufferFrom = exports$1.bufferAllocUnsafe = exports$1.Buffer = void 0;
|
|
37107
36997
|
const buffer_1 = requireBuffer$1();
|
|
37108
|
-
Object.defineProperty(exports, "Buffer", {
|
|
36998
|
+
Object.defineProperty(exports$1, "Buffer", {
|
|
37109
36999
|
enumerable: true,
|
|
37110
37000
|
get: function() {
|
|
37111
37001
|
return buffer_1.Buffer;
|
|
@@ -37115,9 +37005,9 @@ __webpack_require__.add({
|
|
|
37115
37005
|
return new buffer_1.Buffer(arg0, ...args);
|
|
37116
37006
|
}
|
|
37117
37007
|
const bufferAllocUnsafe = buffer_1.Buffer.allocUnsafe || bufferV0P12Ponyfill;
|
|
37118
|
-
exports.bufferAllocUnsafe = bufferAllocUnsafe;
|
|
37008
|
+
exports$1.bufferAllocUnsafe = bufferAllocUnsafe;
|
|
37119
37009
|
const bufferFrom = buffer_1.Buffer.from || bufferV0P12Ponyfill;
|
|
37120
|
-
exports.bufferFrom = bufferFrom;
|
|
37010
|
+
exports$1.bufferFrom = bufferFrom;
|
|
37121
37011
|
})(buffer$2);
|
|
37122
37012
|
return buffer$2;
|
|
37123
37013
|
}
|
|
@@ -37206,13 +37096,13 @@ __webpack_require__.add({
|
|
|
37206
37096
|
function requireErrors$1() {
|
|
37207
37097
|
if (hasRequiredErrors$1) return errors$1;
|
|
37208
37098
|
hasRequiredErrors$1 = 1;
|
|
37209
|
-
(function(exports) {
|
|
37210
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37099
|
+
(function(exports$1) {
|
|
37100
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37211
37101
|
value: true
|
|
37212
37102
|
});
|
|
37213
|
-
exports.AssertionError = exports.RangeError = exports.TypeError = exports.Error = void 0;
|
|
37214
|
-
exports.message = message;
|
|
37215
|
-
exports.E = E;
|
|
37103
|
+
exports$1.AssertionError = exports$1.RangeError = exports$1.TypeError = exports$1.Error = void 0;
|
|
37104
|
+
exports$1.message = message;
|
|
37105
|
+
exports$1.E = E;
|
|
37216
37106
|
const util_1 = requireUtil$4();
|
|
37217
37107
|
const kCode = "u" < typeof Symbol ? '_kCode' : Symbol('code');
|
|
37218
37108
|
const messages = {};
|
|
@@ -37229,7 +37119,7 @@ __webpack_require__.add({
|
|
|
37229
37119
|
const g = "u" > typeof globalThis ? globalThis : commonjsGlobal;
|
|
37230
37120
|
class AssertionError extends g.Error {
|
|
37231
37121
|
constructor(options){
|
|
37232
|
-
if ('object' != typeof options || null === options) throw new exports.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
|
|
37122
|
+
if ('object' != typeof options || null === options) throw new exports$1.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
|
|
37233
37123
|
if (options.message) super(options.message);
|
|
37234
37124
|
else super(`${(0, util_1.inspect)(options.actual).slice(0, 128)} ${options.operator} ${(0, util_1.inspect)(options.expected).slice(0, 128)}`);
|
|
37235
37125
|
this.generatedMessage = !options.message;
|
|
@@ -37238,14 +37128,14 @@ __webpack_require__.add({
|
|
|
37238
37128
|
this.actual = options.actual;
|
|
37239
37129
|
this.expected = options.expected;
|
|
37240
37130
|
this.operator = options.operator;
|
|
37241
|
-
exports.Error.captureStackTrace(this, options.stackStartFunction);
|
|
37131
|
+
exports$1.Error.captureStackTrace(this, options.stackStartFunction);
|
|
37242
37132
|
}
|
|
37243
37133
|
}
|
|
37244
|
-
exports.AssertionError = AssertionError;
|
|
37134
|
+
exports$1.AssertionError = AssertionError;
|
|
37245
37135
|
function message(key, args) {
|
|
37246
|
-
if ('string' != typeof key) throw new exports.Error('Error message key must be a string');
|
|
37136
|
+
if ('string' != typeof key) throw new exports$1.Error('Error message key must be a string');
|
|
37247
37137
|
const msg = messages[key];
|
|
37248
|
-
if (!msg) throw new exports.Error(`An invalid error message key was used: ${key}.`);
|
|
37138
|
+
if (!msg) throw new exports$1.Error(`An invalid error message key was used: ${key}.`);
|
|
37249
37139
|
let fmt;
|
|
37250
37140
|
if ('function' == typeof msg) fmt = msg;
|
|
37251
37141
|
else {
|
|
@@ -37258,9 +37148,9 @@ __webpack_require__.add({
|
|
|
37258
37148
|
function E(sym, val) {
|
|
37259
37149
|
messages[sym] = 'function' == typeof val ? val : String(val);
|
|
37260
37150
|
}
|
|
37261
|
-
exports.Error = makeNodeError(g.Error);
|
|
37262
|
-
exports.TypeError = makeNodeError(g.TypeError);
|
|
37263
|
-
exports.RangeError = makeNodeError(g.RangeError);
|
|
37151
|
+
exports$1.Error = makeNodeError(g.Error);
|
|
37152
|
+
exports$1.TypeError = makeNodeError(g.TypeError);
|
|
37153
|
+
exports$1.RangeError = makeNodeError(g.RangeError);
|
|
37264
37154
|
E('ERR_DIR_CLOSED', 'Directory handle was closed');
|
|
37265
37155
|
E('ERR_DIR_CONCURRENT_OPERATION', 'Cannot do synchronous work on directory handle with concurrent asynchronous operations');
|
|
37266
37156
|
E('ERR_INVALID_FILE_URL_HOST', 'File URL host must be "localhost" or empty on %s');
|
|
@@ -37275,21 +37165,21 @@ __webpack_require__.add({
|
|
|
37275
37165
|
function requireEncoding() {
|
|
37276
37166
|
if (hasRequiredEncoding) return encoding;
|
|
37277
37167
|
hasRequiredEncoding = 1;
|
|
37278
|
-
(function(exports) {
|
|
37279
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37168
|
+
(function(exports$1) {
|
|
37169
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37280
37170
|
value: true
|
|
37281
37171
|
});
|
|
37282
|
-
exports.ENCODING_UTF8 = void 0;
|
|
37283
|
-
exports.assertEncoding = assertEncoding;
|
|
37284
|
-
exports.strToEncoding = strToEncoding;
|
|
37172
|
+
exports$1.ENCODING_UTF8 = void 0;
|
|
37173
|
+
exports$1.assertEncoding = assertEncoding;
|
|
37174
|
+
exports$1.strToEncoding = strToEncoding;
|
|
37285
37175
|
const buffer_1 = requireBuffer();
|
|
37286
37176
|
const errors = requireErrors$1();
|
|
37287
|
-
exports.ENCODING_UTF8 = 'utf8';
|
|
37177
|
+
exports$1.ENCODING_UTF8 = 'utf8';
|
|
37288
37178
|
function assertEncoding(encoding) {
|
|
37289
37179
|
if (encoding && !buffer_1.Buffer.isEncoding(encoding)) throw new errors.TypeError('ERR_INVALID_OPT_VALUE_ENCODING', encoding);
|
|
37290
37180
|
}
|
|
37291
37181
|
function strToEncoding(str, encoding) {
|
|
37292
|
-
if (!encoding || encoding === exports.ENCODING_UTF8) return str;
|
|
37182
|
+
if (!encoding || encoding === exports$1.ENCODING_UTF8) return str;
|
|
37293
37183
|
if ('buffer' === encoding) return new buffer_1.Buffer(str);
|
|
37294
37184
|
return new buffer_1.Buffer(str).toString(encoding);
|
|
37295
37185
|
}
|
|
@@ -37823,61 +37713,61 @@ __webpack_require__.add({
|
|
|
37823
37713
|
function requirePath() {
|
|
37824
37714
|
if (hasRequiredPath) return path;
|
|
37825
37715
|
hasRequiredPath = 1;
|
|
37826
|
-
(function(exports) {
|
|
37827
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37716
|
+
(function(exports$1) {
|
|
37717
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37828
37718
|
value: true
|
|
37829
37719
|
});
|
|
37830
|
-
exports.basename = exports.isAbsolute = exports.normalize = exports.dirname = exports.relative = exports.join = exports.posix = exports.sep = exports.resolve = void 0;
|
|
37720
|
+
exports$1.basename = exports$1.isAbsolute = exports$1.normalize = exports$1.dirname = exports$1.relative = exports$1.join = exports$1.posix = exports$1.sep = exports$1.resolve = void 0;
|
|
37831
37721
|
var node_path_1 = requirePathBrowserify();
|
|
37832
|
-
Object.defineProperty(exports, "resolve", {
|
|
37722
|
+
Object.defineProperty(exports$1, "resolve", {
|
|
37833
37723
|
enumerable: true,
|
|
37834
37724
|
get: function() {
|
|
37835
37725
|
return node_path_1.resolve;
|
|
37836
37726
|
}
|
|
37837
37727
|
});
|
|
37838
|
-
Object.defineProperty(exports, "sep", {
|
|
37728
|
+
Object.defineProperty(exports$1, "sep", {
|
|
37839
37729
|
enumerable: true,
|
|
37840
37730
|
get: function() {
|
|
37841
37731
|
return node_path_1.sep;
|
|
37842
37732
|
}
|
|
37843
37733
|
});
|
|
37844
|
-
Object.defineProperty(exports, "posix", {
|
|
37734
|
+
Object.defineProperty(exports$1, "posix", {
|
|
37845
37735
|
enumerable: true,
|
|
37846
37736
|
get: function() {
|
|
37847
37737
|
return node_path_1.posix;
|
|
37848
37738
|
}
|
|
37849
37739
|
});
|
|
37850
|
-
Object.defineProperty(exports, "join", {
|
|
37740
|
+
Object.defineProperty(exports$1, "join", {
|
|
37851
37741
|
enumerable: true,
|
|
37852
37742
|
get: function() {
|
|
37853
37743
|
return node_path_1.join;
|
|
37854
37744
|
}
|
|
37855
37745
|
});
|
|
37856
|
-
Object.defineProperty(exports, "relative", {
|
|
37746
|
+
Object.defineProperty(exports$1, "relative", {
|
|
37857
37747
|
enumerable: true,
|
|
37858
37748
|
get: function() {
|
|
37859
37749
|
return node_path_1.relative;
|
|
37860
37750
|
}
|
|
37861
37751
|
});
|
|
37862
|
-
Object.defineProperty(exports, "dirname", {
|
|
37752
|
+
Object.defineProperty(exports$1, "dirname", {
|
|
37863
37753
|
enumerable: true,
|
|
37864
37754
|
get: function() {
|
|
37865
37755
|
return node_path_1.dirname;
|
|
37866
37756
|
}
|
|
37867
37757
|
});
|
|
37868
|
-
Object.defineProperty(exports, "normalize", {
|
|
37758
|
+
Object.defineProperty(exports$1, "normalize", {
|
|
37869
37759
|
enumerable: true,
|
|
37870
37760
|
get: function() {
|
|
37871
37761
|
return node_path_1.normalize;
|
|
37872
37762
|
}
|
|
37873
37763
|
});
|
|
37874
|
-
Object.defineProperty(exports, "isAbsolute", {
|
|
37764
|
+
Object.defineProperty(exports$1, "isAbsolute", {
|
|
37875
37765
|
enumerable: true,
|
|
37876
37766
|
get: function() {
|
|
37877
37767
|
return node_path_1.isAbsolute;
|
|
37878
37768
|
}
|
|
37879
37769
|
});
|
|
37880
|
-
Object.defineProperty(exports, "basename", {
|
|
37770
|
+
Object.defineProperty(exports$1, "basename", {
|
|
37881
37771
|
enumerable: true,
|
|
37882
37772
|
get: function() {
|
|
37883
37773
|
return node_path_1.basename;
|
|
@@ -38557,14 +38447,18 @@ __webpack_require__.add({
|
|
|
38557
38447
|
const { S_IFMT, S_IFDIR, S_IFREG, S_IFLNK, S_IFCHR } = constants_1.constants;
|
|
38558
38448
|
const getuid = ()=>process_1.default.getuid?.() ?? 0;
|
|
38559
38449
|
const getgid = ()=>process_1.default.getgid?.() ?? 0;
|
|
38450
|
+
const EMPTY_BUFFER = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
38560
38451
|
let Node$1 = class {
|
|
38561
|
-
constructor(ino, mode =
|
|
38452
|
+
constructor(ino, mode = 0o666){
|
|
38562
38453
|
this.changes = new fanout_1.FanOut();
|
|
38563
38454
|
this._uid = getuid();
|
|
38564
38455
|
this._gid = getgid();
|
|
38565
38456
|
this._atime = new Date();
|
|
38566
38457
|
this._mtime = new Date();
|
|
38567
38458
|
this._ctime = new Date();
|
|
38459
|
+
this.buf = EMPTY_BUFFER;
|
|
38460
|
+
this.capacity = 0;
|
|
38461
|
+
this.size = 0;
|
|
38568
38462
|
this.rdev = 0;
|
|
38569
38463
|
this._nlink = 1;
|
|
38570
38464
|
this.mode = mode;
|
|
@@ -38622,20 +38516,26 @@ __webpack_require__.add({
|
|
|
38622
38516
|
return this.getBuffer().toString(encoding);
|
|
38623
38517
|
}
|
|
38624
38518
|
setString(str) {
|
|
38625
|
-
this.
|
|
38626
|
-
this.touch();
|
|
38519
|
+
this._setBuf((0, buffer_1.bufferFrom)(str, 'utf8'));
|
|
38627
38520
|
}
|
|
38628
38521
|
getBuffer() {
|
|
38629
38522
|
this.atime = new Date();
|
|
38630
38523
|
if (!this.buf) this.buf = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
38631
|
-
return (0, buffer_1.bufferFrom)(this.buf);
|
|
38524
|
+
return (0, buffer_1.bufferFrom)(this.buf.subarray(0, this.size));
|
|
38632
38525
|
}
|
|
38633
38526
|
setBuffer(buf) {
|
|
38634
|
-
|
|
38527
|
+
const copy = (0, buffer_1.bufferFrom)(buf);
|
|
38528
|
+
this._setBuf(copy);
|
|
38529
|
+
}
|
|
38530
|
+
_setBuf(buf) {
|
|
38531
|
+
const size = buf.length;
|
|
38532
|
+
this.buf = buf;
|
|
38533
|
+
this.capacity = size;
|
|
38534
|
+
this.size = size;
|
|
38635
38535
|
this.touch();
|
|
38636
38536
|
}
|
|
38637
38537
|
getSize() {
|
|
38638
|
-
return this.
|
|
38538
|
+
return this.size;
|
|
38639
38539
|
}
|
|
38640
38540
|
setModeProperty(property) {
|
|
38641
38541
|
this.mode = property;
|
|
@@ -38653,42 +38553,60 @@ __webpack_require__.add({
|
|
|
38653
38553
|
return (this.mode & S_IFMT) === S_IFCHR;
|
|
38654
38554
|
}
|
|
38655
38555
|
makeSymlink(symlink) {
|
|
38656
|
-
this.mode =
|
|
38556
|
+
this.mode = 0o666 | S_IFLNK;
|
|
38657
38557
|
this.symlink = symlink;
|
|
38658
38558
|
}
|
|
38659
38559
|
write(buf, off = 0, len = buf.length, pos = 0) {
|
|
38660
|
-
|
|
38661
|
-
if (
|
|
38662
|
-
|
|
38663
|
-
|
|
38560
|
+
const bufLength = buf.length;
|
|
38561
|
+
if (off + len > bufLength) len = bufLength - off;
|
|
38562
|
+
if (len <= 0) return 0;
|
|
38563
|
+
const requiredSize = pos + len;
|
|
38564
|
+
if (requiredSize > this.capacity) {
|
|
38565
|
+
let newCapacity = Math.max(2 * this.capacity, 64);
|
|
38566
|
+
while(newCapacity < requiredSize)newCapacity *= 2;
|
|
38567
|
+
const newBuf = (0, buffer_1.bufferAllocUnsafe)(newCapacity);
|
|
38568
|
+
if (this.size > 0) this.buf.copy(newBuf, 0, 0, this.size);
|
|
38664
38569
|
this.buf = newBuf;
|
|
38570
|
+
this.capacity = newCapacity;
|
|
38665
38571
|
}
|
|
38572
|
+
if (pos > this.size) this.buf.fill(0, this.size, pos);
|
|
38666
38573
|
buf.copy(this.buf, pos, off, off + len);
|
|
38574
|
+
if (requiredSize > this.size) this.size = requiredSize;
|
|
38667
38575
|
this.touch();
|
|
38668
38576
|
return len;
|
|
38669
38577
|
}
|
|
38670
38578
|
read(buf, off = 0, len = buf.byteLength, pos = 0) {
|
|
38671
38579
|
this.atime = new Date();
|
|
38672
|
-
if (
|
|
38673
|
-
if (pos >= this.buf.length) return 0;
|
|
38580
|
+
if (pos >= this.size) return 0;
|
|
38674
38581
|
let actualLen = len;
|
|
38675
38582
|
if (actualLen > buf.byteLength) actualLen = buf.byteLength;
|
|
38676
|
-
if (actualLen + pos > this.
|
|
38583
|
+
if (actualLen + pos > this.size) actualLen = this.size - pos;
|
|
38584
|
+
if (actualLen <= 0) return 0;
|
|
38677
38585
|
const buf2 = buf instanceof buffer_1.Buffer ? buf : buffer_1.Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
38678
38586
|
this.buf.copy(buf2, off, pos, pos + actualLen);
|
|
38679
38587
|
return actualLen;
|
|
38680
38588
|
}
|
|
38681
38589
|
truncate(len = 0) {
|
|
38682
|
-
if (len) {
|
|
38683
|
-
|
|
38684
|
-
|
|
38685
|
-
|
|
38686
|
-
|
|
38687
|
-
|
|
38688
|
-
|
|
38590
|
+
if (!len) {
|
|
38591
|
+
this.buf = EMPTY_BUFFER;
|
|
38592
|
+
this.capacity = 0;
|
|
38593
|
+
this.size = 0;
|
|
38594
|
+
this.touch();
|
|
38595
|
+
return;
|
|
38596
|
+
}
|
|
38597
|
+
if (len <= this.size) this.size = len;
|
|
38598
|
+
else {
|
|
38599
|
+
if (len > this.capacity) {
|
|
38600
|
+
let newCapacity = Math.max(2 * this.capacity, 64);
|
|
38601
|
+
while(newCapacity < len)newCapacity *= 2;
|
|
38602
|
+
const buf = (0, buffer_1.bufferAllocUnsafe)(newCapacity);
|
|
38603
|
+
if (this.size > 0) this.buf.copy(buf, 0, 0, this.size);
|
|
38604
|
+
buf.fill(0, this.size, len);
|
|
38689
38605
|
this.buf = buf;
|
|
38690
|
-
|
|
38691
|
-
|
|
38606
|
+
this.capacity = newCapacity;
|
|
38607
|
+
} else this.buf.fill(0, this.size, len);
|
|
38608
|
+
this.size = len;
|
|
38609
|
+
}
|
|
38692
38610
|
this.touch();
|
|
38693
38611
|
}
|
|
38694
38612
|
chmod(perm) {
|
|
@@ -38798,7 +38716,7 @@ __webpack_require__.add({
|
|
|
38798
38716
|
getNode() {
|
|
38799
38717
|
return this.node;
|
|
38800
38718
|
}
|
|
38801
|
-
createChild(name, node = this.vol.createNode(
|
|
38719
|
+
createChild(name, node = this.vol.createNode(0o666 | S_IFREG)) {
|
|
38802
38720
|
const link = new Link(this.vol, this, name);
|
|
38803
38721
|
link.setNode(node);
|
|
38804
38722
|
if (node.isDirectory()) {
|
|
@@ -39002,25 +38920,25 @@ __webpack_require__.add({
|
|
|
39002
38920
|
function requireUtil$3() {
|
|
39003
38921
|
if (hasRequiredUtil$3) return util$2;
|
|
39004
38922
|
hasRequiredUtil$3 = 1;
|
|
39005
|
-
(function(exports) {
|
|
39006
|
-
Object.defineProperty(exports, "__esModule", {
|
|
38923
|
+
(function(exports$1) {
|
|
38924
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
39007
38925
|
value: true
|
|
39008
38926
|
});
|
|
39009
|
-
exports.filenameToSteps = exports.resolve = exports.unixify = exports.isWin = void 0;
|
|
39010
|
-
exports.isFd = isFd;
|
|
39011
|
-
exports.validateFd = validateFd;
|
|
39012
|
-
exports.dataToBuffer = dataToBuffer;
|
|
38927
|
+
exports$1.filenameToSteps = exports$1.resolve = exports$1.unixify = exports$1.isWin = void 0;
|
|
38928
|
+
exports$1.isFd = isFd;
|
|
38929
|
+
exports$1.validateFd = validateFd;
|
|
38930
|
+
exports$1.dataToBuffer = dataToBuffer;
|
|
39013
38931
|
const path_1 = requirePath();
|
|
39014
38932
|
const buffer_1 = requireBuffer();
|
|
39015
38933
|
const process_1 = requireProcess();
|
|
39016
38934
|
const encoding_1 = requireEncoding();
|
|
39017
38935
|
const constants_1 = requireConstants();
|
|
39018
|
-
exports.isWin = 'win32' === process_1.default.platform;
|
|
38936
|
+
exports$1.isWin = 'win32' === process_1.default.platform;
|
|
39019
38937
|
const resolveCrossPlatform = path_1.resolve;
|
|
39020
38938
|
const pathSep = path_1.posix ? path_1.posix.sep : path_1.sep;
|
|
39021
38939
|
const isSeparator = (str, i)=>{
|
|
39022
38940
|
let char = str[i];
|
|
39023
|
-
return i > 0 && ('/' === char || exports.isWin && '\\' === char);
|
|
38941
|
+
return i > 0 && ('/' === char || exports$1.isWin && '\\' === char);
|
|
39024
38942
|
};
|
|
39025
38943
|
const removeTrailingSeparator = (str)=>{
|
|
39026
38944
|
let i = str.length - 1;
|
|
@@ -39035,18 +38953,18 @@ __webpack_require__.add({
|
|
|
39035
38953
|
return str;
|
|
39036
38954
|
};
|
|
39037
38955
|
const unixify = (filepath, stripTrailing = true)=>{
|
|
39038
|
-
if (exports.isWin) {
|
|
38956
|
+
if (exports$1.isWin) {
|
|
39039
38957
|
filepath = normalizePath(filepath, stripTrailing);
|
|
39040
38958
|
return filepath.replace(/^([a-zA-Z]+:|\.\/)/, '');
|
|
39041
38959
|
}
|
|
39042
38960
|
return filepath;
|
|
39043
38961
|
};
|
|
39044
|
-
exports.unixify = unixify;
|
|
38962
|
+
exports$1.unixify = unixify;
|
|
39045
38963
|
let resolve = (filename, base = process_1.default.cwd())=>resolveCrossPlatform(base, filename);
|
|
39046
|
-
exports.resolve = resolve;
|
|
39047
|
-
if (exports.isWin) {
|
|
38964
|
+
exports$1.resolve = resolve;
|
|
38965
|
+
if (exports$1.isWin) {
|
|
39048
38966
|
const _resolve = resolve;
|
|
39049
|
-
exports.resolve = resolve = (filename, base)=>(0, exports.unixify)(_resolve(filename, base));
|
|
38967
|
+
exports$1.resolve = resolve = (filename, base)=>(0, exports$1.unixify)(_resolve(filename, base));
|
|
39050
38968
|
}
|
|
39051
38969
|
const filenameToSteps = (filename, base)=>{
|
|
39052
38970
|
const fullPath = resolve(filename, base);
|
|
@@ -39054,7 +38972,7 @@ __webpack_require__.add({
|
|
|
39054
38972
|
if (!fullPathSansSlash) return [];
|
|
39055
38973
|
return fullPathSansSlash.split(pathSep);
|
|
39056
38974
|
};
|
|
39057
|
-
exports.filenameToSteps = filenameToSteps;
|
|
38975
|
+
exports$1.filenameToSteps = filenameToSteps;
|
|
39058
38976
|
function isFd(path) {
|
|
39059
38977
|
return path >>> 0 === path;
|
|
39060
38978
|
}
|
|
@@ -39079,9 +38997,9 @@ __webpack_require__.add({
|
|
|
39079
38997
|
function requirePunycode() {
|
|
39080
38998
|
if (hasRequiredPunycode) return punycode$1.exports;
|
|
39081
38999
|
hasRequiredPunycode = 1;
|
|
39082
|
-
(function(module, exports) {
|
|
39000
|
+
(function(module, exports$1) {
|
|
39083
39001
|
(function(root) {
|
|
39084
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
39002
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
39085
39003
|
var freeModule = module && !module.nodeType && module;
|
|
39086
39004
|
var freeGlobal = 'object' == typeof commonjsGlobal && commonjsGlobal;
|
|
39087
39005
|
if (freeGlobal.undefined === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) root = freeGlobal;
|
|
@@ -42276,7 +42194,7 @@ __webpack_require__.add({
|
|
|
42276
42194
|
this.closeFile(file);
|
|
42277
42195
|
};
|
|
42278
42196
|
const root = this.createLink();
|
|
42279
|
-
root.setNode(this.createNode(
|
|
42197
|
+
root.setNode(this.createNode(0o777 | constants_1.constants.S_IFDIR));
|
|
42280
42198
|
root.setChild('.', root);
|
|
42281
42199
|
root.getNode().nlink++;
|
|
42282
42200
|
root.setChild('..', root);
|
|
@@ -42286,7 +42204,7 @@ __webpack_require__.add({
|
|
|
42286
42204
|
createLink(parent, name, isDirectory = false, mode) {
|
|
42287
42205
|
if (!parent) return new Link_1.Link(this, void 0, '');
|
|
42288
42206
|
if (!name) throw new Error('createLink: name cannot be empty');
|
|
42289
|
-
const finalPerm = mode ?? (isDirectory ?
|
|
42207
|
+
const finalPerm = mode ?? (isDirectory ? 0o777 : 0o666);
|
|
42290
42208
|
const hasFileType = mode && mode & constants_1.constants.S_IFMT;
|
|
42291
42209
|
const modeType = hasFileType ? mode & constants_1.constants.S_IFMT : isDirectory ? constants_1.constants.S_IFDIR : constants_1.constants.S_IFREG;
|
|
42292
42210
|
const finalMode = finalPerm & ~constants_1.constants.S_IFMT | modeType;
|
|
@@ -42466,7 +42384,7 @@ __webpack_require__.add({
|
|
|
42466
42384
|
this.releasedFds = [];
|
|
42467
42385
|
this.openFiles = 0;
|
|
42468
42386
|
this.root = this.createLink();
|
|
42469
|
-
this.root.setNode(this.createNode(
|
|
42387
|
+
this.root.setNode(this.createNode(0o777 | constants_1.constants.S_IFDIR));
|
|
42470
42388
|
}
|
|
42471
42389
|
mountSync(mountpoint, json) {
|
|
42472
42390
|
this.fromJSON(json, mountpoint);
|
|
@@ -42504,7 +42422,7 @@ __webpack_require__.add({
|
|
|
42504
42422
|
const dirNode = dirLink.getNode();
|
|
42505
42423
|
if (!dirNode.isDirectory()) throw (0, util_1.createError)("ENOTDIR", 'open', filename);
|
|
42506
42424
|
if (!dirNode.canExecute() || !dirNode.canWrite()) throw (0, util_1.createError)("EACCES", 'open', filename);
|
|
42507
|
-
modeNum ?? (modeNum =
|
|
42425
|
+
modeNum ?? (modeNum = 0o666);
|
|
42508
42426
|
link = this.createLink(dirLink, steps[steps.length - 1], false, modeNum);
|
|
42509
42427
|
} else throw err;
|
|
42510
42428
|
}
|
|
@@ -42531,37 +42449,37 @@ __webpack_require__.add({
|
|
|
42531
42449
|
function requireCore() {
|
|
42532
42450
|
if (hasRequiredCore) return core;
|
|
42533
42451
|
hasRequiredCore = 1;
|
|
42534
|
-
(function(exports) {
|
|
42535
|
-
Object.defineProperty(exports, "__esModule", {
|
|
42452
|
+
(function(exports$1) {
|
|
42453
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
42536
42454
|
value: true
|
|
42537
42455
|
});
|
|
42538
|
-
exports.Superblock = exports.File = exports.Link = exports.Node = void 0;
|
|
42456
|
+
exports$1.Superblock = exports$1.File = exports$1.Link = exports$1.Node = void 0;
|
|
42539
42457
|
const tslib_1 = require$$0$1;
|
|
42540
|
-
tslib_1.__exportStar(requireTypes(), exports);
|
|
42541
|
-
tslib_1.__exportStar(requireJson(), exports);
|
|
42458
|
+
tslib_1.__exportStar(requireTypes(), exports$1);
|
|
42459
|
+
tslib_1.__exportStar(requireJson(), exports$1);
|
|
42542
42460
|
var Node_1 = requireNode();
|
|
42543
|
-
Object.defineProperty(exports, "Node", {
|
|
42461
|
+
Object.defineProperty(exports$1, "Node", {
|
|
42544
42462
|
enumerable: true,
|
|
42545
42463
|
get: function() {
|
|
42546
42464
|
return Node_1.Node;
|
|
42547
42465
|
}
|
|
42548
42466
|
});
|
|
42549
42467
|
var Link_1 = requireLink();
|
|
42550
|
-
Object.defineProperty(exports, "Link", {
|
|
42468
|
+
Object.defineProperty(exports$1, "Link", {
|
|
42551
42469
|
enumerable: true,
|
|
42552
42470
|
get: function() {
|
|
42553
42471
|
return Link_1.Link;
|
|
42554
42472
|
}
|
|
42555
42473
|
});
|
|
42556
42474
|
var File_1 = requireFile();
|
|
42557
|
-
Object.defineProperty(exports, "File", {
|
|
42475
|
+
Object.defineProperty(exports$1, "File", {
|
|
42558
42476
|
enumerable: true,
|
|
42559
42477
|
get: function() {
|
|
42560
42478
|
return File_1.File;
|
|
42561
42479
|
}
|
|
42562
42480
|
});
|
|
42563
42481
|
var Superblock_1 = requireSuperblock();
|
|
42564
|
-
Object.defineProperty(exports, "Superblock", {
|
|
42482
|
+
Object.defineProperty(exports$1, "Superblock", {
|
|
42565
42483
|
enumerable: true,
|
|
42566
42484
|
get: function() {
|
|
42567
42485
|
return Superblock_1.Superblock;
|
|
@@ -44457,7 +44375,7 @@ __webpack_require__.add({
|
|
|
44457
44375
|
break;
|
|
44458
44376
|
}
|
|
44459
44377
|
++c;
|
|
44460
|
-
}while (null !== (p = p.next))
|
|
44378
|
+
}while (null !== (p = p.next))
|
|
44461
44379
|
this.length -= c;
|
|
44462
44380
|
return ret;
|
|
44463
44381
|
}
|
|
@@ -44485,7 +44403,7 @@ __webpack_require__.add({
|
|
|
44485
44403
|
break;
|
|
44486
44404
|
}
|
|
44487
44405
|
++c;
|
|
44488
|
-
}while (null !== (p = p.next))
|
|
44406
|
+
}while (null !== (p = p.next))
|
|
44489
44407
|
this.length -= c;
|
|
44490
44408
|
return ret;
|
|
44491
44409
|
}
|
|
@@ -44546,7 +44464,7 @@ __webpack_require__.add({
|
|
|
44546
44464
|
function requireSafeBuffer() {
|
|
44547
44465
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
44548
44466
|
hasRequiredSafeBuffer = 1;
|
|
44549
|
-
(function(module, exports) {
|
|
44467
|
+
(function(module, exports$1) {
|
|
44550
44468
|
var buffer = require$$0$2;
|
|
44551
44469
|
var Buffer = buffer.Buffer;
|
|
44552
44470
|
function copyProps(src, dst) {
|
|
@@ -44554,8 +44472,8 @@ __webpack_require__.add({
|
|
|
44554
44472
|
}
|
|
44555
44473
|
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer;
|
|
44556
44474
|
else {
|
|
44557
|
-
copyProps(buffer, exports);
|
|
44558
|
-
exports.Buffer = SafeBuffer;
|
|
44475
|
+
copyProps(buffer, exports$1);
|
|
44476
|
+
exports$1.Buffer = SafeBuffer;
|
|
44559
44477
|
}
|
|
44560
44478
|
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
44561
44479
|
return Buffer(arg, encodingOrOffset, length);
|
|
@@ -46021,7 +45939,7 @@ __webpack_require__.add({
|
|
|
46021
45939
|
buffered[i++] = null;
|
|
46022
45940
|
const len = objectMode ? 1 : chunk.length;
|
|
46023
45941
|
doWrite(stream, state, false, len, chunk, encoding, callback);
|
|
46024
|
-
}while (i < buffered.length && !state.writing)
|
|
45942
|
+
}while (i < buffered.length && !state.writing)
|
|
46025
45943
|
if (i === buffered.length) resetBuffer(state);
|
|
46026
45944
|
else if (i > 256) {
|
|
46027
45945
|
buffered.splice(0, i);
|
|
@@ -47676,19 +47594,19 @@ __webpack_require__.add({
|
|
|
47676
47594
|
function requireStream() {
|
|
47677
47595
|
if (hasRequiredStream) return stream$1;
|
|
47678
47596
|
hasRequiredStream = 1;
|
|
47679
|
-
(function(exports) {
|
|
47680
|
-
Object.defineProperty(exports, "__esModule", {
|
|
47597
|
+
(function(exports$1) {
|
|
47598
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
47681
47599
|
value: true
|
|
47682
47600
|
});
|
|
47683
|
-
exports.Writable = exports.Readable = void 0;
|
|
47601
|
+
exports$1.Writable = exports$1.Readable = void 0;
|
|
47684
47602
|
var node_stream_1 = requireBrowser();
|
|
47685
|
-
Object.defineProperty(exports, "Readable", {
|
|
47603
|
+
Object.defineProperty(exports$1, "Readable", {
|
|
47686
47604
|
enumerable: true,
|
|
47687
47605
|
get: function() {
|
|
47688
47606
|
return node_stream_1.Readable;
|
|
47689
47607
|
}
|
|
47690
47608
|
});
|
|
47691
|
-
Object.defineProperty(exports, "Writable", {
|
|
47609
|
+
Object.defineProperty(exports$1, "Writable", {
|
|
47692
47610
|
enumerable: true,
|
|
47693
47611
|
get: function() {
|
|
47694
47612
|
return node_stream_1.Writable;
|
|
@@ -47702,13 +47620,13 @@ __webpack_require__.add({
|
|
|
47702
47620
|
function requireEvents() {
|
|
47703
47621
|
if (hasRequiredEvents) return events;
|
|
47704
47622
|
hasRequiredEvents = 1;
|
|
47705
|
-
(function(exports) {
|
|
47706
|
-
Object.defineProperty(exports, "__esModule", {
|
|
47623
|
+
(function(exports$1) {
|
|
47624
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
47707
47625
|
value: true
|
|
47708
47626
|
});
|
|
47709
|
-
exports.EventEmitter = void 0;
|
|
47627
|
+
exports$1.EventEmitter = void 0;
|
|
47710
47628
|
var node_events_1 = requireEvents$1();
|
|
47711
|
-
Object.defineProperty(exports, "EventEmitter", {
|
|
47629
|
+
Object.defineProperty(exports$1, "EventEmitter", {
|
|
47712
47630
|
enumerable: true,
|
|
47713
47631
|
get: function() {
|
|
47714
47632
|
return node_events_1.EventEmitter;
|
|
@@ -48126,14 +48044,14 @@ __webpack_require__.add({
|
|
|
48126
48044
|
function requireLib$2() {
|
|
48127
48045
|
if (hasRequiredLib$2) return lib$1;
|
|
48128
48046
|
hasRequiredLib$2 = 1;
|
|
48129
|
-
(function(exports) {
|
|
48130
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48047
|
+
(function(exports$1) {
|
|
48048
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48131
48049
|
value: true
|
|
48132
48050
|
});
|
|
48133
48051
|
const tslib_1 = require$$0$1;
|
|
48134
|
-
tslib_1.__exportStar(requirePrintTree(), exports);
|
|
48135
|
-
tslib_1.__exportStar(requirePrintBinary(), exports);
|
|
48136
|
-
tslib_1.__exportStar(requirePrintJson(), exports);
|
|
48052
|
+
tslib_1.__exportStar(requirePrintTree(), exports$1);
|
|
48053
|
+
tslib_1.__exportStar(requirePrintBinary(), exports$1);
|
|
48054
|
+
tslib_1.__exportStar(requirePrintJson(), exports$1);
|
|
48137
48055
|
})(lib$1);
|
|
48138
48056
|
return lib$1;
|
|
48139
48057
|
}
|
|
@@ -48181,11 +48099,11 @@ __webpack_require__.add({
|
|
|
48181
48099
|
function requirePrint() {
|
|
48182
48100
|
if (hasRequiredPrint) return print;
|
|
48183
48101
|
hasRequiredPrint = 1;
|
|
48184
|
-
(function(exports) {
|
|
48185
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48102
|
+
(function(exports$1) {
|
|
48103
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48186
48104
|
value: true
|
|
48187
48105
|
});
|
|
48188
|
-
exports.toTreeSync = void 0;
|
|
48106
|
+
exports$1.toTreeSync = void 0;
|
|
48189
48107
|
const tree_dump_1 = requireLib$2();
|
|
48190
48108
|
const util_1 = requireUtil();
|
|
48191
48109
|
const toTreeSync = (fs, opts = {})=>{
|
|
@@ -48194,13 +48112,20 @@ __webpack_require__.add({
|
|
|
48194
48112
|
if (dir[dir.length - 1] !== separator) dir += separator;
|
|
48195
48113
|
const tab = opts.tab || '';
|
|
48196
48114
|
const depth = opts.depth ?? 10;
|
|
48115
|
+
const sort = opts.sort ?? true;
|
|
48197
48116
|
let subtree = ' (...)';
|
|
48198
48117
|
if (depth > 0) {
|
|
48199
48118
|
const list = fs.readdirSync(dir, {
|
|
48200
48119
|
withFileTypes: true
|
|
48201
48120
|
});
|
|
48121
|
+
if (sort) list.sort((a, b)=>{
|
|
48122
|
+
if (a.isDirectory() && b.isDirectory()) return a.name.toString().localeCompare(b.name.toString());
|
|
48123
|
+
if (a.isDirectory()) return -1;
|
|
48124
|
+
if (b.isDirectory()) return 1;
|
|
48125
|
+
return a.name.toString().localeCompare(b.name.toString());
|
|
48126
|
+
});
|
|
48202
48127
|
subtree = (0, tree_dump_1.printTree)(tab, list.map((entry)=>(tab)=>{
|
|
48203
|
-
if (entry.isDirectory()) return (0, exports.toTreeSync)(fs, {
|
|
48128
|
+
if (entry.isDirectory()) return (0, exports$1.toTreeSync)(fs, {
|
|
48204
48129
|
dir: dir + entry.name,
|
|
48205
48130
|
depth: depth - 1,
|
|
48206
48131
|
tab
|
|
@@ -48212,7 +48137,7 @@ __webpack_require__.add({
|
|
|
48212
48137
|
const base = (0, util_1.basename)(dir, separator) + separator;
|
|
48213
48138
|
return base + subtree;
|
|
48214
48139
|
};
|
|
48215
|
-
exports.toTreeSync = toTreeSync;
|
|
48140
|
+
exports$1.toTreeSync = toTreeSync;
|
|
48216
48141
|
})(print);
|
|
48217
48142
|
return print;
|
|
48218
48143
|
}
|
|
@@ -48221,14 +48146,14 @@ __webpack_require__.add({
|
|
|
48221
48146
|
function requireOptions() {
|
|
48222
48147
|
if (hasRequiredOptions) return options;
|
|
48223
48148
|
hasRequiredOptions = 1;
|
|
48224
|
-
(function(exports) {
|
|
48225
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48149
|
+
(function(exports$1) {
|
|
48150
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48226
48151
|
value: true
|
|
48227
48152
|
});
|
|
48228
|
-
exports.getWriteFileOptions = exports.writeFileDefaults = exports.getRealpathOptsAndCb = exports.getRealpathOptions = exports.getStatfsOptsAndCb = exports.getStatfsOptions = exports.getStatOptsAndCb = exports.getStatOptions = exports.getAppendFileOptsAndCb = exports.getAppendFileOpts = exports.getOpendirOptsAndCb = exports.getOpendirOptions = exports.getReaddirOptsAndCb = exports.getReaddirOptions = exports.getReadFileOptions = exports.getRmOptsAndCb = exports.getRmdirOptions = exports.getDefaultOptsAndCb = exports.getDefaultOpts = exports.optsDefaults = exports.getMkdirOptions = void 0;
|
|
48229
|
-
exports.getOptions = getOptions;
|
|
48230
|
-
exports.optsGenerator = optsGenerator;
|
|
48231
|
-
exports.optsAndCbGenerator = optsAndCbGenerator;
|
|
48153
|
+
exports$1.getWriteFileOptions = exports$1.writeFileDefaults = exports$1.getRealpathOptsAndCb = exports$1.getRealpathOptions = exports$1.getStatfsOptsAndCb = exports$1.getStatfsOptions = exports$1.getStatOptsAndCb = exports$1.getStatOptions = exports$1.getAppendFileOptsAndCb = exports$1.getAppendFileOpts = exports$1.getOpendirOptsAndCb = exports$1.getOpendirOptions = exports$1.getReaddirOptsAndCb = exports$1.getReaddirOptions = exports$1.getReadFileOptions = exports$1.getRmOptsAndCb = exports$1.getRmdirOptions = exports$1.getDefaultOptsAndCb = exports$1.getDefaultOpts = exports$1.optsDefaults = exports$1.getMkdirOptions = void 0;
|
|
48154
|
+
exports$1.getOptions = getOptions;
|
|
48155
|
+
exports$1.optsGenerator = optsGenerator;
|
|
48156
|
+
exports$1.optsAndCbGenerator = optsAndCbGenerator;
|
|
48232
48157
|
const constants_1 = requireConstants();
|
|
48233
48158
|
const encoding_1 = requireEncoding();
|
|
48234
48159
|
const util_1 = requireUtil$2();
|
|
@@ -48242,7 +48167,7 @@ __webpack_require__.add({
|
|
|
48242
48167
|
});
|
|
48243
48168
|
return Object.assign({}, mkdirDefaults, options);
|
|
48244
48169
|
};
|
|
48245
|
-
exports.getMkdirOptions = getMkdirOptions;
|
|
48170
|
+
exports$1.getMkdirOptions = getMkdirOptions;
|
|
48246
48171
|
const ERRSTR_OPTS = (tipeof)=>`Expected options to be either an object or a string, but got ${tipeof} instead`;
|
|
48247
48172
|
function getOptions(defaults, options) {
|
|
48248
48173
|
let opts;
|
|
@@ -48277,78 +48202,78 @@ __webpack_require__.add({
|
|
|
48277
48202
|
(0, util_1.validateCallback)(callback)
|
|
48278
48203
|
];
|
|
48279
48204
|
}
|
|
48280
|
-
exports.optsDefaults = {
|
|
48205
|
+
exports$1.optsDefaults = {
|
|
48281
48206
|
encoding: 'utf8'
|
|
48282
48207
|
};
|
|
48283
|
-
exports.getDefaultOpts = optsGenerator(exports.optsDefaults);
|
|
48284
|
-
exports.getDefaultOptsAndCb = optsAndCbGenerator(exports.getDefaultOpts);
|
|
48208
|
+
exports$1.getDefaultOpts = optsGenerator(exports$1.optsDefaults);
|
|
48209
|
+
exports$1.getDefaultOptsAndCb = optsAndCbGenerator(exports$1.getDefaultOpts);
|
|
48285
48210
|
const rmdirDefaults = {
|
|
48286
48211
|
recursive: false
|
|
48287
48212
|
};
|
|
48288
48213
|
const getRmdirOptions = (options)=>Object.assign({}, rmdirDefaults, options);
|
|
48289
|
-
exports.getRmdirOptions = getRmdirOptions;
|
|
48290
|
-
const getRmOpts = optsGenerator(exports.optsDefaults);
|
|
48291
|
-
exports.getRmOptsAndCb = optsAndCbGenerator(getRmOpts);
|
|
48214
|
+
exports$1.getRmdirOptions = getRmdirOptions;
|
|
48215
|
+
const getRmOpts = optsGenerator(exports$1.optsDefaults);
|
|
48216
|
+
exports$1.getRmOptsAndCb = optsAndCbGenerator(getRmOpts);
|
|
48292
48217
|
const readFileOptsDefaults = {
|
|
48293
48218
|
flag: 'r'
|
|
48294
48219
|
};
|
|
48295
|
-
exports.getReadFileOptions = optsGenerator(readFileOptsDefaults);
|
|
48220
|
+
exports$1.getReadFileOptions = optsGenerator(readFileOptsDefaults);
|
|
48296
48221
|
const readdirDefaults = {
|
|
48297
48222
|
encoding: 'utf8',
|
|
48298
48223
|
recursive: false,
|
|
48299
48224
|
withFileTypes: false
|
|
48300
48225
|
};
|
|
48301
|
-
exports.getReaddirOptions = optsGenerator(readdirDefaults);
|
|
48302
|
-
exports.getReaddirOptsAndCb = optsAndCbGenerator(exports.getReaddirOptions);
|
|
48226
|
+
exports$1.getReaddirOptions = optsGenerator(readdirDefaults);
|
|
48227
|
+
exports$1.getReaddirOptsAndCb = optsAndCbGenerator(exports$1.getReaddirOptions);
|
|
48303
48228
|
const opendirDefaults = {
|
|
48304
48229
|
encoding: 'utf8',
|
|
48305
48230
|
bufferSize: 32,
|
|
48306
48231
|
recursive: false
|
|
48307
48232
|
};
|
|
48308
|
-
exports.getOpendirOptions = optsGenerator(opendirDefaults);
|
|
48309
|
-
exports.getOpendirOptsAndCb = optsAndCbGenerator(exports.getOpendirOptions);
|
|
48233
|
+
exports$1.getOpendirOptions = optsGenerator(opendirDefaults);
|
|
48234
|
+
exports$1.getOpendirOptsAndCb = optsAndCbGenerator(exports$1.getOpendirOptions);
|
|
48310
48235
|
const appendFileDefaults = {
|
|
48311
48236
|
encoding: 'utf8',
|
|
48312
48237
|
mode: 438,
|
|
48313
48238
|
flag: constants_1.FLAGS[constants_1.FLAGS.a]
|
|
48314
48239
|
};
|
|
48315
|
-
exports.getAppendFileOpts = optsGenerator(appendFileDefaults);
|
|
48316
|
-
exports.getAppendFileOptsAndCb = optsAndCbGenerator(exports.getAppendFileOpts);
|
|
48240
|
+
exports$1.getAppendFileOpts = optsGenerator(appendFileDefaults);
|
|
48241
|
+
exports$1.getAppendFileOptsAndCb = optsAndCbGenerator(exports$1.getAppendFileOpts);
|
|
48317
48242
|
const statDefaults = {
|
|
48318
48243
|
bigint: false
|
|
48319
48244
|
};
|
|
48320
48245
|
const getStatOptions = (options = {})=>Object.assign({}, statDefaults, options);
|
|
48321
|
-
exports.getStatOptions = getStatOptions;
|
|
48246
|
+
exports$1.getStatOptions = getStatOptions;
|
|
48322
48247
|
const getStatOptsAndCb = (options, callback)=>'function' == typeof options ? [
|
|
48323
|
-
(0, exports.getStatOptions)(),
|
|
48248
|
+
(0, exports$1.getStatOptions)(),
|
|
48324
48249
|
options
|
|
48325
48250
|
] : [
|
|
48326
|
-
(0, exports.getStatOptions)(options),
|
|
48251
|
+
(0, exports$1.getStatOptions)(options),
|
|
48327
48252
|
(0, util_1.validateCallback)(callback)
|
|
48328
48253
|
];
|
|
48329
|
-
exports.getStatOptsAndCb = getStatOptsAndCb;
|
|
48254
|
+
exports$1.getStatOptsAndCb = getStatOptsAndCb;
|
|
48330
48255
|
const statfsDefaults = {
|
|
48331
48256
|
bigint: false
|
|
48332
48257
|
};
|
|
48333
48258
|
const getStatfsOptions = (options = {})=>Object.assign({}, statfsDefaults, options);
|
|
48334
|
-
exports.getStatfsOptions = getStatfsOptions;
|
|
48259
|
+
exports$1.getStatfsOptions = getStatfsOptions;
|
|
48335
48260
|
const getStatfsOptsAndCb = (options, callback)=>'function' == typeof options ? [
|
|
48336
|
-
(0, exports.getStatfsOptions)(),
|
|
48261
|
+
(0, exports$1.getStatfsOptions)(),
|
|
48337
48262
|
options
|
|
48338
48263
|
] : [
|
|
48339
|
-
(0, exports.getStatfsOptions)(options),
|
|
48264
|
+
(0, exports$1.getStatfsOptions)(options),
|
|
48340
48265
|
(0, util_1.validateCallback)(callback)
|
|
48341
48266
|
];
|
|
48342
|
-
exports.getStatfsOptsAndCb = getStatfsOptsAndCb;
|
|
48343
|
-
const realpathDefaults = exports.optsDefaults;
|
|
48344
|
-
exports.getRealpathOptions = optsGenerator(realpathDefaults);
|
|
48345
|
-
exports.getRealpathOptsAndCb = optsAndCbGenerator(exports.getRealpathOptions);
|
|
48346
|
-
exports.writeFileDefaults = {
|
|
48267
|
+
exports$1.getStatfsOptsAndCb = getStatfsOptsAndCb;
|
|
48268
|
+
const realpathDefaults = exports$1.optsDefaults;
|
|
48269
|
+
exports$1.getRealpathOptions = optsGenerator(realpathDefaults);
|
|
48270
|
+
exports$1.getRealpathOptsAndCb = optsAndCbGenerator(exports$1.getRealpathOptions);
|
|
48271
|
+
exports$1.writeFileDefaults = {
|
|
48347
48272
|
encoding: 'utf8',
|
|
48348
48273
|
mode: 438,
|
|
48349
48274
|
flag: constants_1.FLAGS[constants_1.FLAGS.w]
|
|
48350
48275
|
};
|
|
48351
|
-
exports.getWriteFileOptions = optsGenerator(exports.writeFileDefaults);
|
|
48276
|
+
exports$1.getWriteFileOptions = optsGenerator(exports$1.writeFileDefaults);
|
|
48352
48277
|
})(options);
|
|
48353
48278
|
return options;
|
|
48354
48279
|
}
|
|
@@ -48385,7 +48310,7 @@ __webpack_require__.add({
|
|
|
48385
48310
|
({ done, value } = iteratorInfo[iteratorInfo.length - 1].next());
|
|
48386
48311
|
if (done) break;
|
|
48387
48312
|
[name, link] = value;
|
|
48388
|
-
}while ('.' === name || '..' === name)
|
|
48313
|
+
}while ('.' === name || '..' === name)
|
|
48389
48314
|
if (done) {
|
|
48390
48315
|
iteratorInfo.pop();
|
|
48391
48316
|
if (0 === iteratorInfo.length) break;
|
|
@@ -48394,7 +48319,7 @@ __webpack_require__.add({
|
|
|
48394
48319
|
if (this.options.recursive && link.children.size) iteratorInfo.push(link.children[Symbol.iterator]());
|
|
48395
48320
|
return Dirent_1.default.build(link, this.options.encoding);
|
|
48396
48321
|
}
|
|
48397
|
-
}while (!done)
|
|
48322
|
+
}while (!done)
|
|
48398
48323
|
return null;
|
|
48399
48324
|
}
|
|
48400
48325
|
close(callback) {
|
|
@@ -48493,12 +48418,73 @@ __webpack_require__.add({
|
|
|
48493
48418
|
function requireLib$1() {
|
|
48494
48419
|
if (hasRequiredLib$1) return lib;
|
|
48495
48420
|
hasRequiredLib$1 = 1;
|
|
48496
|
-
(function(exports) {
|
|
48497
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48421
|
+
(function(exports$1) {
|
|
48422
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48498
48423
|
value: true
|
|
48499
48424
|
});
|
|
48500
|
-
exports.toMatcher = exports.toRegex = void 0;
|
|
48425
|
+
exports$1.toMatcher = exports$1.toRegex = void 0;
|
|
48501
48426
|
const escapeRe = (ch)=>/[.^$+{}()|\\]/.test(ch) ? `\\${ch}` : ch;
|
|
48427
|
+
const parseExtGlob = (pattern, startIdx, prefix, options)=>{
|
|
48428
|
+
let i = startIdx;
|
|
48429
|
+
const parts = [];
|
|
48430
|
+
let cur = '';
|
|
48431
|
+
let depth = 1;
|
|
48432
|
+
while(i < pattern.length && depth > 0){
|
|
48433
|
+
const ch = pattern[i];
|
|
48434
|
+
if ('(' === ch) {
|
|
48435
|
+
depth++;
|
|
48436
|
+
cur += ch;
|
|
48437
|
+
i++;
|
|
48438
|
+
} else if (')' === ch) {
|
|
48439
|
+
depth--;
|
|
48440
|
+
if (0 === depth) {
|
|
48441
|
+
parts.push(cur);
|
|
48442
|
+
i++;
|
|
48443
|
+
break;
|
|
48444
|
+
}
|
|
48445
|
+
cur += ch;
|
|
48446
|
+
i++;
|
|
48447
|
+
} else if ('|' === ch && 1 === depth) {
|
|
48448
|
+
parts.push(cur);
|
|
48449
|
+
cur = '';
|
|
48450
|
+
i++;
|
|
48451
|
+
} else {
|
|
48452
|
+
cur += ch;
|
|
48453
|
+
i++;
|
|
48454
|
+
}
|
|
48455
|
+
}
|
|
48456
|
+
if (0 !== depth) return;
|
|
48457
|
+
let alternatives = '';
|
|
48458
|
+
const length = parts.length;
|
|
48459
|
+
for(let j = 0; j < length; j++)alternatives += (alternatives ? '|' : '') + (0, exports$1.toRegex)(parts[j], options).source.replace(/^\^/, '').replace(/\$$/, '');
|
|
48460
|
+
switch(prefix){
|
|
48461
|
+
case '?':
|
|
48462
|
+
return [
|
|
48463
|
+
`(?:${alternatives})?`,
|
|
48464
|
+
i
|
|
48465
|
+
];
|
|
48466
|
+
case '*':
|
|
48467
|
+
return [
|
|
48468
|
+
`(?:${alternatives})*`,
|
|
48469
|
+
i
|
|
48470
|
+
];
|
|
48471
|
+
case '+':
|
|
48472
|
+
return [
|
|
48473
|
+
`(?:${alternatives})+`,
|
|
48474
|
+
i
|
|
48475
|
+
];
|
|
48476
|
+
case '@':
|
|
48477
|
+
return [
|
|
48478
|
+
`(?:${alternatives})`,
|
|
48479
|
+
i
|
|
48480
|
+
];
|
|
48481
|
+
case '!':
|
|
48482
|
+
return [
|
|
48483
|
+
`(?!${alternatives})[^/]*`,
|
|
48484
|
+
i
|
|
48485
|
+
];
|
|
48486
|
+
}
|
|
48487
|
+
};
|
|
48502
48488
|
const toRegex = (pattern, options)=>{
|
|
48503
48489
|
let regexStr = '';
|
|
48504
48490
|
let i = 0;
|
|
@@ -48525,11 +48511,22 @@ __webpack_require__.add({
|
|
|
48525
48511
|
i++;
|
|
48526
48512
|
}
|
|
48527
48513
|
if (!closed) return '\\{' + escapeRe(cur);
|
|
48528
|
-
const alt = parts.map((p)=>(0, exports.toRegex)(p, options).source.replace(/^\^/, '').replace(/\$$/, '')).join('|');
|
|
48514
|
+
const alt = parts.map((p)=>(0, exports$1.toRegex)(p, options).source.replace(/^\^/, '').replace(/\$$/, '')).join('|');
|
|
48529
48515
|
return `(?:${alt})`;
|
|
48530
48516
|
};
|
|
48517
|
+
const extglob = !!options?.extglob;
|
|
48531
48518
|
while(i < pattern.length){
|
|
48532
48519
|
const char = pattern[i];
|
|
48520
|
+
if (extglob && '(' === pattern[i + 1]) {
|
|
48521
|
+
if ('?' === char || '*' === char || '+' === char || '@' === char || '!' === char) {
|
|
48522
|
+
const result = parseExtGlob(pattern, i + 2, char, options);
|
|
48523
|
+
if (result) {
|
|
48524
|
+
regexStr += result[0];
|
|
48525
|
+
i = result[1];
|
|
48526
|
+
continue;
|
|
48527
|
+
}
|
|
48528
|
+
}
|
|
48529
|
+
}
|
|
48533
48530
|
switch(char){
|
|
48534
48531
|
case '*':
|
|
48535
48532
|
if ('*' === pattern[i + 1]) {
|
|
@@ -48605,7 +48602,7 @@ __webpack_require__.add({
|
|
|
48605
48602
|
const flags = options?.nocase ? 'i' : '';
|
|
48606
48603
|
return new RegExp('^' + regexStr + '$', flags);
|
|
48607
48604
|
};
|
|
48608
|
-
exports.toRegex = toRegex;
|
|
48605
|
+
exports$1.toRegex = toRegex;
|
|
48609
48606
|
const isRegExp = /^\/(.{1,4096})\/([gimsuy]{0,6})$/;
|
|
48610
48607
|
const toMatcher = (pattern, options)=>{
|
|
48611
48608
|
const regexes = [];
|
|
@@ -48617,11 +48614,11 @@ __webpack_require__.add({
|
|
|
48617
48614
|
if (match) {
|
|
48618
48615
|
const [, expr, flags] = match;
|
|
48619
48616
|
regexes.push(new RegExp(expr, flags));
|
|
48620
|
-
} else regexes.push((0, exports.toRegex)(pat, options));
|
|
48617
|
+
} else regexes.push((0, exports$1.toRegex)(pat, options));
|
|
48621
48618
|
} else regexes.push(pat);
|
|
48622
48619
|
return regexes.length ? new Function('p', 'return ' + regexes.map((r)=>r + '.test(p)').join('||')) : ()=>false;
|
|
48623
48620
|
};
|
|
48624
|
-
exports.toMatcher = toMatcher;
|
|
48621
|
+
exports$1.toMatcher = toMatcher;
|
|
48625
48622
|
})(lib);
|
|
48626
48623
|
return lib;
|
|
48627
48624
|
}
|
|
@@ -49291,7 +49288,7 @@ __webpack_require__.add({
|
|
|
49291
49288
|
};
|
|
49292
49289
|
this.mkdirSync = (path, options)=>{
|
|
49293
49290
|
const opts = (0, options_1.getMkdirOptions)(options);
|
|
49294
|
-
const modeNum = (0, util_2.modeToNumber)(opts.mode,
|
|
49291
|
+
const modeNum = (0, util_2.modeToNumber)(opts.mode, 0o777);
|
|
49295
49292
|
const filename = (0, util_2.pathToFilename)(path);
|
|
49296
49293
|
if (opts.recursive) return this._core.mkdirp(filename, modeNum);
|
|
49297
49294
|
this._core.mkdir(filename, modeNum);
|
|
@@ -49299,7 +49296,7 @@ __webpack_require__.add({
|
|
|
49299
49296
|
this.mkdir = (path, a, b)=>{
|
|
49300
49297
|
const opts = (0, options_1.getMkdirOptions)(a);
|
|
49301
49298
|
const callback = (0, util_2.validateCallback)('function' == typeof a ? a : b);
|
|
49302
|
-
const modeNum = (0, util_2.modeToNumber)(opts.mode,
|
|
49299
|
+
const modeNum = (0, util_2.modeToNumber)(opts.mode, 0o777);
|
|
49303
49300
|
const filename = (0, util_2.pathToFilename)(path);
|
|
49304
49301
|
if (opts.recursive) this.wrapAsync(this._core.mkdirp, [
|
|
49305
49302
|
filename,
|
|
@@ -49888,7 +49885,7 @@ __webpack_require__.add({
|
|
|
49888
49885
|
this.path = (0, util_2.pathToFilename)(path);
|
|
49889
49886
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
49890
49887
|
this.flags = void 0 === options.flags ? 'r' : options.flags;
|
|
49891
|
-
this.mode = void 0 === options.mode ?
|
|
49888
|
+
this.mode = void 0 === options.mode ? 0o666 : options.mode;
|
|
49892
49889
|
this.start = options.start;
|
|
49893
49890
|
this.end = options.end;
|
|
49894
49891
|
this.autoClose = void 0 === options.autoClose ? true : options.autoClose;
|
|
@@ -49984,7 +49981,7 @@ __webpack_require__.add({
|
|
|
49984
49981
|
this.path = (0, util_2.pathToFilename)(path);
|
|
49985
49982
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
49986
49983
|
this.flags = void 0 === options.flags ? 'w' : options.flags;
|
|
49987
|
-
this.mode = void 0 === options.mode ?
|
|
49984
|
+
this.mode = void 0 === options.mode ? 0o666 : options.mode;
|
|
49988
49985
|
this.start = options.start;
|
|
49989
49986
|
this.autoClose = void 0 === options.autoClose ? true : !!options.autoClose;
|
|
49990
49987
|
this.pos = void 0;
|
|
@@ -50197,6 +50194,7 @@ __webpack_require__.add({
|
|
|
50197
50194
|
'fsyncSync',
|
|
50198
50195
|
'ftruncateSync',
|
|
50199
50196
|
'futimesSync',
|
|
50197
|
+
'globSync',
|
|
50200
50198
|
'lchmodSync',
|
|
50201
50199
|
'lchownSync',
|
|
50202
50200
|
'linkSync',
|
|
@@ -50253,6 +50251,7 @@ __webpack_require__.add({
|
|
|
50253
50251
|
'fsync',
|
|
50254
50252
|
'ftruncate',
|
|
50255
50253
|
'futimes',
|
|
50254
|
+
'glob',
|
|
50256
50255
|
'lchmod',
|
|
50257
50256
|
'lchown',
|
|
50258
50257
|
'link',
|
|
@@ -50291,16 +50290,16 @@ __webpack_require__.add({
|
|
|
50291
50290
|
function requireLib() {
|
|
50292
50291
|
if (hasRequiredLib) return lib$3.exports;
|
|
50293
50292
|
hasRequiredLib = 1;
|
|
50294
|
-
(function(module, exports) {
|
|
50295
|
-
Object.defineProperty(exports, "__esModule", {
|
|
50293
|
+
(function(module, exports$1) {
|
|
50294
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
50296
50295
|
value: true
|
|
50297
50296
|
});
|
|
50298
|
-
exports.memfs = exports.fs = exports.vol = exports.Volume = void 0;
|
|
50299
|
-
exports.createFsFromVolume = createFsFromVolume;
|
|
50297
|
+
exports$1.memfs = exports$1.fs = exports$1.vol = exports$1.Volume = void 0;
|
|
50298
|
+
exports$1.createFsFromVolume = createFsFromVolume;
|
|
50300
50299
|
const Stats_1 = requireStats();
|
|
50301
50300
|
const Dirent_1 = requireDirent();
|
|
50302
50301
|
const volume_1 = requireVolume();
|
|
50303
|
-
Object.defineProperty(exports, "Volume", {
|
|
50302
|
+
Object.defineProperty(exports$1, "Volume", {
|
|
50304
50303
|
enumerable: true,
|
|
50305
50304
|
get: function() {
|
|
50306
50305
|
return volume_1.Volume;
|
|
@@ -50310,7 +50309,7 @@ __webpack_require__.add({
|
|
|
50310
50309
|
const fsSynchronousApiList_1 = requireFsSynchronousApiList();
|
|
50311
50310
|
const fsCallbackApiList_1 = requireFsCallbackApiList();
|
|
50312
50311
|
const { F_OK, R_OK, W_OK, X_OK } = constants_1.constants;
|
|
50313
|
-
exports.vol = new volume_1.Volume();
|
|
50312
|
+
exports$1.vol = new volume_1.Volume();
|
|
50314
50313
|
function createFsFromVolume(vol) {
|
|
50315
50314
|
const fs = {
|
|
50316
50315
|
F_OK,
|
|
@@ -50340,7 +50339,7 @@ __webpack_require__.add({
|
|
|
50340
50339
|
fs.__vol = vol;
|
|
50341
50340
|
return fs;
|
|
50342
50341
|
}
|
|
50343
|
-
exports.fs = createFsFromVolume(exports.vol);
|
|
50342
|
+
exports$1.fs = createFsFromVolume(exports$1.vol);
|
|
50344
50343
|
const memfs = (json = {}, cwd = '/')=>{
|
|
50345
50344
|
const vol = volume_1.Volume.fromNestedJSON(json, cwd);
|
|
50346
50345
|
const fs = createFsFromVolume(vol);
|
|
@@ -50349,10 +50348,10 @@ __webpack_require__.add({
|
|
|
50349
50348
|
vol
|
|
50350
50349
|
};
|
|
50351
50350
|
};
|
|
50352
|
-
exports.memfs = memfs;
|
|
50351
|
+
exports$1.memfs = memfs;
|
|
50353
50352
|
module.exports = {
|
|
50354
50353
|
...module.exports,
|
|
50355
|
-
...exports.fs
|
|
50354
|
+
...exports$1.fs
|
|
50356
50355
|
};
|
|
50357
50356
|
module.exports.semantic = true;
|
|
50358
50357
|
})(lib$3, lib$3.exports);
|
|
@@ -50400,29 +50399,29 @@ __webpack_require__.d(browserslistTargetHandler_namespaceObject, {
|
|
|
50400
50399
|
var exports_namespaceObject = {};
|
|
50401
50400
|
__webpack_require__.r(exports_namespaceObject);
|
|
50402
50401
|
__webpack_require__.d(exports_namespaceObject, {
|
|
50403
|
-
AsyncDependenciesBlock: ()=>
|
|
50402
|
+
AsyncDependenciesBlock: ()=>AsyncDependenciesBlock,
|
|
50404
50403
|
BannerPlugin: ()=>BannerPlugin,
|
|
50405
50404
|
CaseSensitivePlugin: ()=>CaseSensitivePlugin,
|
|
50406
50405
|
CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
|
|
50407
50406
|
Compilation: ()=>Compilation,
|
|
50408
50407
|
Compiler: ()=>Compiler,
|
|
50409
|
-
ConcatenatedModule: ()=>
|
|
50410
|
-
ContextModule: ()=>
|
|
50408
|
+
ConcatenatedModule: ()=>ConcatenatedModule,
|
|
50409
|
+
ContextModule: ()=>ContextModule,
|
|
50411
50410
|
ContextReplacementPlugin: ()=>ContextReplacementPlugin,
|
|
50412
50411
|
CopyRspackPlugin: ()=>CopyRspackPlugin,
|
|
50413
50412
|
CssExtractRspackPlugin: ()=>CssExtractRspackPlugin,
|
|
50414
50413
|
DefinePlugin: ()=>DefinePlugin,
|
|
50415
|
-
Dependency: ()=>
|
|
50414
|
+
Dependency: ()=>Dependency,
|
|
50416
50415
|
DllPlugin: ()=>DllPlugin,
|
|
50417
50416
|
DllReferencePlugin: ()=>DllReferencePlugin,
|
|
50418
50417
|
DynamicEntryPlugin: ()=>DynamicEntryPlugin,
|
|
50419
|
-
EntryDependency: ()=>
|
|
50418
|
+
EntryDependency: ()=>EntryDependency,
|
|
50420
50419
|
EntryOptionPlugin: ()=>lib_EntryOptionPlugin,
|
|
50421
50420
|
EntryPlugin: ()=>EntryPlugin,
|
|
50422
50421
|
EnvironmentPlugin: ()=>EnvironmentPlugin,
|
|
50423
50422
|
EvalDevToolModulePlugin: ()=>EvalDevToolModulePlugin,
|
|
50424
50423
|
EvalSourceMapDevToolPlugin: ()=>EvalSourceMapDevToolPlugin,
|
|
50425
|
-
ExternalModule: ()=>
|
|
50424
|
+
ExternalModule: ()=>ExternalModule,
|
|
50426
50425
|
ExternalsPlugin: ()=>ExternalsPlugin,
|
|
50427
50426
|
HotModuleReplacementPlugin: ()=>HotModuleReplacementPlugin,
|
|
50428
50427
|
HtmlRspackPlugin: ()=>HtmlRspackPlugin,
|
|
@@ -50430,12 +50429,12 @@ __webpack_require__.d(exports_namespaceObject, {
|
|
|
50430
50429
|
LightningCssMinimizerRspackPlugin: ()=>LightningCssMinimizerRspackPlugin,
|
|
50431
50430
|
LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
|
|
50432
50431
|
LoaderTargetPlugin: ()=>LoaderTargetPlugin,
|
|
50433
|
-
Module: ()=>
|
|
50432
|
+
Module: ()=>Module,
|
|
50434
50433
|
ModuleFilenameHelpers: ()=>ModuleFilenameHelpers_namespaceObject,
|
|
50435
50434
|
MultiCompiler: ()=>MultiCompiler,
|
|
50436
50435
|
MultiStats: ()=>MultiStats,
|
|
50437
50436
|
NoEmitOnErrorsPlugin: ()=>NoEmitOnErrorsPlugin,
|
|
50438
|
-
NormalModule: ()=>
|
|
50437
|
+
NormalModule: ()=>NormalModule,
|
|
50439
50438
|
NormalModuleReplacementPlugin: ()=>NormalModuleReplacementPlugin,
|
|
50440
50439
|
ProgressPlugin: ()=>ProgressPlugin,
|
|
50441
50440
|
ProvidePlugin: ()=>ProvidePlugin,
|
|
@@ -50463,7 +50462,7 @@ __webpack_require__.d(exports_namespaceObject, {
|
|
|
50463
50462
|
optimize: ()=>optimize,
|
|
50464
50463
|
rspackVersion: ()=>exports_rspackVersion,
|
|
50465
50464
|
sharing: ()=>sharing,
|
|
50466
|
-
sources: ()=>
|
|
50465
|
+
sources: ()=>webpack_sources_lib,
|
|
50467
50466
|
util: ()=>util,
|
|
50468
50467
|
version: ()=>exports_version,
|
|
50469
50468
|
wasm: ()=>exports_wasm,
|
|
@@ -50506,9 +50505,9 @@ const cutOffMessage = (stack, name, message)=>{
|
|
|
50506
50505
|
const firstLine = stack.slice(0, nextLine);
|
|
50507
50506
|
return firstLine === `${name}: ${message}` ? stack.slice(nextLine + 1) : stack;
|
|
50508
50507
|
};
|
|
50509
|
-
const
|
|
50510
|
-
var
|
|
50511
|
-
class
|
|
50508
|
+
const util_util = __webpack_require__("../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js");
|
|
50509
|
+
var util_util_default = /*#__PURE__*/ __webpack_require__.n(util_util);
|
|
50510
|
+
class WebpackError_WebpackError extends Error {
|
|
50512
50511
|
loc;
|
|
50513
50512
|
file;
|
|
50514
50513
|
chunk;
|
|
@@ -50516,14 +50515,14 @@ class WebpackError extends Error {
|
|
|
50516
50515
|
details;
|
|
50517
50516
|
hideStack;
|
|
50518
50517
|
}
|
|
50519
|
-
Object.defineProperty(
|
|
50518
|
+
Object.defineProperty(WebpackError_WebpackError.prototype, util_util.inspect.custom, {
|
|
50520
50519
|
value: function() {
|
|
50521
50520
|
return this.stack + (this.details ? `\n${this.details}` : '');
|
|
50522
50521
|
},
|
|
50523
50522
|
enumerable: false,
|
|
50524
50523
|
configurable: true
|
|
50525
50524
|
});
|
|
50526
|
-
const lib_WebpackError =
|
|
50525
|
+
const lib_WebpackError = WebpackError_WebpackError;
|
|
50527
50526
|
var Logger_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
50528
50527
|
const LogType = Object.freeze({
|
|
50529
50528
|
error: 'error',
|
|
@@ -51468,7 +51467,7 @@ class MergeCaller {
|
|
|
51468
51467
|
}
|
|
51469
51468
|
push(...data) {
|
|
51470
51469
|
if (0 === this.callArgs.length) queueMicrotask(this.finalCall);
|
|
51471
|
-
this.callArgs.push(
|
|
51470
|
+
for(let i = 0; i < data.length; i++)this.callArgs.push(data[i]);
|
|
51472
51471
|
}
|
|
51473
51472
|
}
|
|
51474
51473
|
function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
@@ -51519,12 +51518,12 @@ function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
|
51519
51518
|
}
|
|
51520
51519
|
};
|
|
51521
51520
|
}
|
|
51522
|
-
const
|
|
51521
|
+
const webpack_sources_lib = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/index.js");
|
|
51523
51522
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
51524
51523
|
class SourceAdapter {
|
|
51525
51524
|
static fromBinding(source) {
|
|
51526
|
-
if (!source.map) return new
|
|
51527
|
-
return new
|
|
51525
|
+
if (!source.map) return new webpack_sources_lib.RawSource(source.source);
|
|
51526
|
+
return new webpack_sources_lib.SourceMapSource(source.source, 'inmemory://from rust', source.map);
|
|
51528
51527
|
}
|
|
51529
51528
|
static toBinding(source) {
|
|
51530
51529
|
const content = source.source();
|
|
@@ -51542,44 +51541,35 @@ class SourceAdapter {
|
|
|
51542
51541
|
};
|
|
51543
51542
|
}
|
|
51544
51543
|
}
|
|
51545
|
-
|
|
51546
|
-
var AsyncDependenciesBlock = external_rspack_wasi_browser_js_.AsyncDependenciesBlock;
|
|
51547
|
-
var ConcatenatedModule = external_rspack_wasi_browser_js_.ConcatenatedModule;
|
|
51548
|
-
var ContextModule = external_rspack_wasi_browser_js_.ContextModule;
|
|
51549
|
-
var Dependency = external_rspack_wasi_browser_js_.Dependency;
|
|
51550
|
-
var EntryDependency = external_rspack_wasi_browser_js_.EntryDependency;
|
|
51551
|
-
var ExternalModule = external_rspack_wasi_browser_js_.ExternalModule;
|
|
51552
|
-
var Module = external_rspack_wasi_browser_js_.Module;
|
|
51553
|
-
var NormalModule = external_rspack_wasi_browser_js_.NormalModule;
|
|
51554
|
-
Object.defineProperty(external_rspack_wasi_browser_js_.Chunk.prototype, 'files', {
|
|
51544
|
+
Object.defineProperty(Chunk.prototype, 'files', {
|
|
51555
51545
|
enumerable: true,
|
|
51556
51546
|
configurable: true,
|
|
51557
51547
|
get () {
|
|
51558
51548
|
return new Set(this._files);
|
|
51559
51549
|
}
|
|
51560
51550
|
});
|
|
51561
|
-
Object.defineProperty(
|
|
51551
|
+
Object.defineProperty(Chunk.prototype, 'runtime', {
|
|
51562
51552
|
enumerable: true,
|
|
51563
51553
|
configurable: true,
|
|
51564
51554
|
get () {
|
|
51565
51555
|
return new Set(this._runtime);
|
|
51566
51556
|
}
|
|
51567
51557
|
});
|
|
51568
|
-
Object.defineProperty(
|
|
51558
|
+
Object.defineProperty(Chunk.prototype, 'auxiliaryFiles', {
|
|
51569
51559
|
enumerable: true,
|
|
51570
51560
|
configurable: true,
|
|
51571
51561
|
get () {
|
|
51572
51562
|
return new Set(this._auxiliaryFiles);
|
|
51573
51563
|
}
|
|
51574
51564
|
});
|
|
51575
|
-
Object.defineProperty(
|
|
51565
|
+
Object.defineProperty(Chunk.prototype, 'groupsIterable', {
|
|
51576
51566
|
enumerable: true,
|
|
51577
51567
|
configurable: true,
|
|
51578
51568
|
get () {
|
|
51579
51569
|
return new Set(this._groupsIterable);
|
|
51580
51570
|
}
|
|
51581
51571
|
});
|
|
51582
|
-
Object.defineProperty(
|
|
51572
|
+
Object.defineProperty(Chunk.prototype, 'getChunkMaps', {
|
|
51583
51573
|
enumerable: true,
|
|
51584
51574
|
configurable: true,
|
|
51585
51575
|
value (realHash) {
|
|
@@ -51604,7 +51594,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_.Chunk.prototype, 'getChun
|
|
|
51604
51594
|
};
|
|
51605
51595
|
}
|
|
51606
51596
|
});
|
|
51607
|
-
Object.defineProperty(
|
|
51597
|
+
Object.defineProperty(Chunk.prototype, util_util_default().inspect.custom, {
|
|
51608
51598
|
enumerable: true,
|
|
51609
51599
|
configurable: true,
|
|
51610
51600
|
value () {
|
|
@@ -51613,7 +51603,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_.Chunk.prototype, util_0_d
|
|
|
51613
51603
|
};
|
|
51614
51604
|
}
|
|
51615
51605
|
});
|
|
51616
|
-
Object.defineProperty(
|
|
51606
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'entries', {
|
|
51617
51607
|
enumerable: true,
|
|
51618
51608
|
configurable: true,
|
|
51619
51609
|
value () {
|
|
@@ -51642,42 +51632,42 @@ Object.defineProperty(external_rspack_wasi_browser_js_.Chunks.prototype, 'entrie
|
|
|
51642
51632
|
};
|
|
51643
51633
|
}
|
|
51644
51634
|
});
|
|
51645
|
-
Object.defineProperty(
|
|
51635
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'values', {
|
|
51646
51636
|
enumerable: true,
|
|
51647
51637
|
configurable: true,
|
|
51648
51638
|
value () {
|
|
51649
51639
|
return this._values().values();
|
|
51650
51640
|
}
|
|
51651
51641
|
});
|
|
51652
|
-
Object.defineProperty(
|
|
51642
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, Symbol.iterator, {
|
|
51653
51643
|
enumerable: true,
|
|
51654
51644
|
configurable: true,
|
|
51655
51645
|
value () {
|
|
51656
51646
|
return this.values();
|
|
51657
51647
|
}
|
|
51658
51648
|
});
|
|
51659
|
-
Object.defineProperty(
|
|
51649
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'keys', {
|
|
51660
51650
|
enumerable: true,
|
|
51661
51651
|
configurable: true,
|
|
51662
51652
|
value () {
|
|
51663
51653
|
return this.values();
|
|
51664
51654
|
}
|
|
51665
51655
|
});
|
|
51666
|
-
Object.defineProperty(
|
|
51656
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'forEach', {
|
|
51667
51657
|
enumerable: true,
|
|
51668
51658
|
configurable: true,
|
|
51669
51659
|
value (callbackfn, thisArg) {
|
|
51670
51660
|
for (const chunk of this._values())callbackfn.call(thisArg, chunk, chunk, this);
|
|
51671
51661
|
}
|
|
51672
51662
|
});
|
|
51673
|
-
Object.defineProperty(
|
|
51663
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'has', {
|
|
51674
51664
|
enumerable: true,
|
|
51675
51665
|
configurable: true,
|
|
51676
51666
|
value (value) {
|
|
51677
51667
|
return this._has(value);
|
|
51678
51668
|
}
|
|
51679
51669
|
});
|
|
51680
|
-
Object.defineProperty(
|
|
51670
|
+
Object.defineProperty(ChunkGraph.prototype, 'getOrderedChunkModulesIterable', {
|
|
51681
51671
|
enumerable: true,
|
|
51682
51672
|
configurable: true,
|
|
51683
51673
|
value (chunk, compareFn) {
|
|
@@ -51686,14 +51676,14 @@ Object.defineProperty(external_rspack_wasi_browser_js_.ChunkGraph.prototype, 'ge
|
|
|
51686
51676
|
return modules;
|
|
51687
51677
|
}
|
|
51688
51678
|
});
|
|
51689
|
-
Object.defineProperty(
|
|
51679
|
+
Object.defineProperty(ChunkGraph.prototype, 'getModuleChunksIterable', {
|
|
51690
51680
|
enumerable: true,
|
|
51691
51681
|
configurable: true,
|
|
51692
51682
|
value (module) {
|
|
51693
51683
|
return this.getModuleChunks(module);
|
|
51694
51684
|
}
|
|
51695
51685
|
});
|
|
51696
|
-
Object.defineProperty(
|
|
51686
|
+
Object.defineProperty(ChunkGraph.prototype, 'getOrderedChunkModulesIterable', {
|
|
51697
51687
|
enumerable: true,
|
|
51698
51688
|
configurable: true,
|
|
51699
51689
|
value (chunk, compareFn) {
|
|
@@ -51702,14 +51692,14 @@ Object.defineProperty(external_rspack_wasi_browser_js_.ChunkGraph.prototype, 'ge
|
|
|
51702
51692
|
return modules;
|
|
51703
51693
|
}
|
|
51704
51694
|
});
|
|
51705
|
-
Object.defineProperty(
|
|
51695
|
+
Object.defineProperty(ChunkGraph.prototype, 'getModuleHash', {
|
|
51706
51696
|
enumerable: true,
|
|
51707
51697
|
configurable: true,
|
|
51708
51698
|
value (module, runtime) {
|
|
51709
51699
|
return this._getModuleHash(module, toJsRuntimeSpec(runtime));
|
|
51710
51700
|
}
|
|
51711
51701
|
});
|
|
51712
|
-
Object.defineProperty(
|
|
51702
|
+
Object.defineProperty(rspack_wasi_browser.Sources.prototype, 'get', {
|
|
51713
51703
|
enumerable: true,
|
|
51714
51704
|
configurable: true,
|
|
51715
51705
|
value (sourceType) {
|
|
@@ -51722,7 +51712,7 @@ const $proxy = Symbol.for('proxy');
|
|
|
51722
51712
|
function createDiagnosticArray(adm) {
|
|
51723
51713
|
if ($proxy in adm) return adm[$proxy];
|
|
51724
51714
|
const array = [];
|
|
51725
|
-
array[
|
|
51715
|
+
array[util_util_default().inspect.custom] = ()=>adm.values();
|
|
51726
51716
|
const splice = function(index, deleteCount, ...newItems) {
|
|
51727
51717
|
switch(arguments.length){
|
|
51728
51718
|
case 0:
|
|
@@ -51824,7 +51814,7 @@ var _computedKey, _computedKey1, _computedKey2;
|
|
|
51824
51814
|
const checkCompilation = (compilation)=>{
|
|
51825
51815
|
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.');
|
|
51826
51816
|
};
|
|
51827
|
-
_computedKey =
|
|
51817
|
+
_computedKey = rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL;
|
|
51828
51818
|
class Compilation {
|
|
51829
51819
|
#inner;
|
|
51830
51820
|
#shutdown;
|
|
@@ -52005,7 +51995,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
52005
51995
|
this.moduleGraph = ModuleGraph.__from_binding(inner.moduleGraph);
|
|
52006
51996
|
this.#addIncludeDispatcher = new AddEntryItemDispatcher(inner.addInclude.bind(inner));
|
|
52007
51997
|
this.#addEntryDispatcher = new AddEntryItemDispatcher(inner.addEntry.bind(inner));
|
|
52008
|
-
this[
|
|
51998
|
+
this[rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL] = new WeakMap();
|
|
52009
51999
|
}
|
|
52010
52000
|
get hash() {
|
|
52011
52001
|
return this.#inner.hash;
|
|
@@ -52489,6 +52479,16 @@ class Entries {
|
|
|
52489
52479
|
delete(key) {
|
|
52490
52480
|
return this.#data.delete(key);
|
|
52491
52481
|
}
|
|
52482
|
+
getOrInsert(key, defaultValue) {
|
|
52483
|
+
if (this.has(key)) return this.get(key);
|
|
52484
|
+
this.set(key, defaultValue);
|
|
52485
|
+
return this.get(key);
|
|
52486
|
+
}
|
|
52487
|
+
getOrInsertComputed(key, callback) {
|
|
52488
|
+
if (this.has(key)) return this.get(key);
|
|
52489
|
+
this.set(key, callback(key));
|
|
52490
|
+
return this.get(key);
|
|
52491
|
+
}
|
|
52492
52492
|
get(key) {
|
|
52493
52493
|
const binding = this.#data.get(key);
|
|
52494
52494
|
return binding ? EntryData.__from_binding(binding) : void 0;
|
|
@@ -52544,16 +52544,16 @@ function base_create(name, resolve, affectedHooks) {
|
|
|
52544
52544
|
});
|
|
52545
52545
|
return Plugin;
|
|
52546
52546
|
}
|
|
52547
|
-
const INTERNAL_PLUGIN_NAMES = Object.keys(
|
|
52547
|
+
const INTERNAL_PLUGIN_NAMES = Object.keys(rspack_wasi_browser.BuiltinPluginName);
|
|
52548
52548
|
function createNativePlugin(name, resolve, affectedHooks) {
|
|
52549
52549
|
if (INTERNAL_PLUGIN_NAMES.includes(name)) throw new Error(`Cannot register native plugin with name '${name}', it conflicts with internal plugin names.`);
|
|
52550
52550
|
return base_create(name, resolve, affectedHooks);
|
|
52551
52551
|
}
|
|
52552
|
-
const APIPlugin = base_create(
|
|
52553
|
-
const ArrayPushCallbackChunkFormatPlugin = base_create(
|
|
52554
|
-
const AssetModulesPlugin = base_create(
|
|
52555
|
-
const AsyncWebAssemblyModulesPlugin = base_create(
|
|
52556
|
-
const BannerPlugin = base_create(
|
|
52552
|
+
const APIPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.APIPlugin, ()=>{});
|
|
52553
|
+
const ArrayPushCallbackChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ArrayPushCallbackChunkFormatPlugin, ()=>{});
|
|
52554
|
+
const AssetModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.AssetModulesPlugin, ()=>{}, 'compilation');
|
|
52555
|
+
const AsyncWebAssemblyModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.AsyncWebAssemblyModulesPlugin, ()=>{}, 'compilation');
|
|
52556
|
+
const BannerPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.BannerPlugin, (args)=>{
|
|
52557
52557
|
if ('string' == typeof args || 'function' == typeof args) return {
|
|
52558
52558
|
banner: args
|
|
52559
52559
|
};
|
|
@@ -52568,15 +52568,15 @@ const BannerPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginN
|
|
|
52568
52568
|
exclude: args.exclude
|
|
52569
52569
|
};
|
|
52570
52570
|
});
|
|
52571
|
-
const BundlerInfoRspackPlugin = base_create(
|
|
52571
|
+
const BundlerInfoRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.BundlerInfoRspackPlugin, (options)=>({
|
|
52572
52572
|
version: options.version || 'unknown',
|
|
52573
52573
|
bundler: options.bundler || 'rspack',
|
|
52574
52574
|
force: options.force ?? true
|
|
52575
52575
|
}));
|
|
52576
|
-
const CaseSensitivePlugin = base_create(
|
|
52577
|
-
const ChunkPrefetchPreloadPlugin = base_create(
|
|
52576
|
+
const CaseSensitivePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CaseSensitivePlugin, ()=>{}, 'compilation');
|
|
52577
|
+
const ChunkPrefetchPreloadPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
|
|
52578
52578
|
class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
52579
|
-
name =
|
|
52579
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.CircularDependencyRspackPlugin;
|
|
52580
52580
|
_options;
|
|
52581
52581
|
constructor(options){
|
|
52582
52582
|
super();
|
|
@@ -52608,8 +52608,8 @@ class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
|
52608
52608
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
52609
52609
|
}
|
|
52610
52610
|
}
|
|
52611
|
-
const CommonJsChunkFormatPlugin = base_create(
|
|
52612
|
-
const ContextReplacementPlugin = base_create(
|
|
52611
|
+
const CommonJsChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CommonJsChunkFormatPlugin, ()=>{});
|
|
52612
|
+
const ContextReplacementPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ContextReplacementPlugin, (resourceRegExp, newContentResource, newContentRecursive, newContentRegExp)=>{
|
|
52613
52613
|
const rawOptions = {
|
|
52614
52614
|
resourceRegExp
|
|
52615
52615
|
};
|
|
@@ -52634,7 +52634,7 @@ const ContextReplacementPlugin = base_create(external_rspack_wasi_browser_js_.Bu
|
|
|
52634
52634
|
}
|
|
52635
52635
|
return rawOptions;
|
|
52636
52636
|
});
|
|
52637
|
-
const CopyRspackPlugin = base_create(
|
|
52637
|
+
const CopyRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CopyRspackPlugin, (copy)=>{
|
|
52638
52638
|
const ret = {
|
|
52639
52639
|
patterns: []
|
|
52640
52640
|
};
|
|
@@ -52654,7 +52654,7 @@ const CopyRspackPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlu
|
|
|
52654
52654
|
});
|
|
52655
52655
|
return ret;
|
|
52656
52656
|
});
|
|
52657
|
-
const CssChunkingPlugin = base_create(
|
|
52657
|
+
const CssChunkingPlugin = base_create(rspack_wasi_browser.BuiltinPluginName.CssChunkingPlugin, function(options = {}) {
|
|
52658
52658
|
if (options.nextjs) return {
|
|
52659
52659
|
strict: options.strict,
|
|
52660
52660
|
minSize: options.minSize,
|
|
@@ -52670,7 +52670,7 @@ const CssChunkingPlugin = base_create(external_rspack_wasi_browser_js_["default"
|
|
|
52670
52670
|
}
|
|
52671
52671
|
return options;
|
|
52672
52672
|
});
|
|
52673
|
-
const CssModulesPlugin = base_create(
|
|
52673
|
+
const CssModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CssModulesPlugin, ()=>{}, 'compilation');
|
|
52674
52674
|
const path_browserify = __webpack_require__("../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js");
|
|
52675
52675
|
var path_browserify_default = /*#__PURE__*/ __webpack_require__.n(path_browserify);
|
|
52676
52676
|
const utils_PLUGIN_NAME = 'css-extract-rspack-plugin';
|
|
@@ -52691,7 +52691,7 @@ class CssExtractRspackPlugin {
|
|
|
52691
52691
|
}
|
|
52692
52692
|
if (compiler.options.output.pathinfo && void 0 === this.options.pathinfo) this.options.pathinfo = true;
|
|
52693
52693
|
compiler.__internal__registerBuiltinPlugin({
|
|
52694
|
-
name:
|
|
52694
|
+
name: external_rspack_wasi_browser_js_BuiltinPluginName.CssExtractRspackPlugin,
|
|
52695
52695
|
options: this.normalizeOptions(this.options)
|
|
52696
52696
|
});
|
|
52697
52697
|
}
|
|
@@ -52727,8 +52727,8 @@ class CssExtractRspackPlugin {
|
|
|
52727
52727
|
return normalzedOptions;
|
|
52728
52728
|
}
|
|
52729
52729
|
}
|
|
52730
|
-
const DataUriPlugin = base_create(
|
|
52731
|
-
const DefinePlugin = base_create(
|
|
52730
|
+
const DataUriPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DataUriPlugin, ()=>{}, 'compilation');
|
|
52731
|
+
const DefinePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DefinePlugin, function(define1) {
|
|
52732
52732
|
const supportsBigIntLiteral = this.options.output.environment?.bigIntLiteral ?? false;
|
|
52733
52733
|
return normalizeValue(define1, supportsBigIntLiteral);
|
|
52734
52734
|
}, 'compilation');
|
|
@@ -52756,25 +52756,25 @@ const normalizeValue = (define1, supportsBigIntLiteral)=>{
|
|
|
52756
52756
|
return normalizeObject(define1);
|
|
52757
52757
|
};
|
|
52758
52758
|
class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
52759
|
-
name =
|
|
52759
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
52760
52760
|
affectedHooks = 'compilation';
|
|
52761
52761
|
raw() {
|
|
52762
52762
|
return createBuiltinPlugin(this.name, void 0);
|
|
52763
52763
|
}
|
|
52764
52764
|
}
|
|
52765
52765
|
class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
52766
|
-
name =
|
|
52766
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
52767
52767
|
affectedHooks = 'compilation';
|
|
52768
52768
|
raw() {
|
|
52769
52769
|
return createBuiltinPlugin(this.name, void 0);
|
|
52770
52770
|
}
|
|
52771
52771
|
}
|
|
52772
|
-
const DllEntryPlugin = base_create(
|
|
52772
|
+
const DllEntryPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DllEntryPlugin, (context, entries, options)=>({
|
|
52773
52773
|
context,
|
|
52774
52774
|
entries,
|
|
52775
52775
|
name: options.name
|
|
52776
52776
|
}));
|
|
52777
|
-
const DllReferenceAgencyPlugin = base_create(
|
|
52777
|
+
const DllReferenceAgencyPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DllReferenceAgencyPlugin, (options)=>options);
|
|
52778
52778
|
class EntryOptionPlugin {
|
|
52779
52779
|
apply(compiler) {
|
|
52780
52780
|
compiler.hooks.entryOption.tap('EntryOptionPlugin', (context, entry)=>{
|
|
@@ -52808,7 +52808,7 @@ class EntryOptionPlugin {
|
|
|
52808
52808
|
}
|
|
52809
52809
|
}
|
|
52810
52810
|
const lib_EntryOptionPlugin = EntryOptionPlugin;
|
|
52811
|
-
const OriginEntryPlugin = base_create(
|
|
52811
|
+
const OriginEntryPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EntryPlugin, (context, entry, options = '')=>{
|
|
52812
52812
|
const entryOptions = 'string' == typeof options ? {
|
|
52813
52813
|
name: options
|
|
52814
52814
|
} : options;
|
|
@@ -52819,7 +52819,7 @@ const OriginEntryPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPl
|
|
|
52819
52819
|
};
|
|
52820
52820
|
}, 'make');
|
|
52821
52821
|
const EntryPlugin = OriginEntryPlugin;
|
|
52822
|
-
EntryPlugin.createDependency = (request)=>new
|
|
52822
|
+
EntryPlugin.createDependency = (request)=>new EntryDependency(request);
|
|
52823
52823
|
function getRawEntryOptions(entry) {
|
|
52824
52824
|
return {
|
|
52825
52825
|
name: entry.name,
|
|
@@ -52838,7 +52838,7 @@ function getRawEntryOptions(entry) {
|
|
|
52838
52838
|
class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
52839
52839
|
context;
|
|
52840
52840
|
entry;
|
|
52841
|
-
name =
|
|
52841
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.DynamicEntryPlugin;
|
|
52842
52842
|
affectedHooks = 'make';
|
|
52843
52843
|
constructor(context, entry){
|
|
52844
52844
|
super(), this.context = context, this.entry = entry;
|
|
@@ -52860,8 +52860,8 @@ class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
|
52860
52860
|
return createBuiltinPlugin(this.name, raw);
|
|
52861
52861
|
}
|
|
52862
52862
|
}
|
|
52863
|
-
const ElectronTargetPlugin = base_create(
|
|
52864
|
-
const EnableChunkLoadingPluginInner = base_create(
|
|
52863
|
+
const ElectronTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ElectronTargetPlugin, (context)=>context ?? 'none');
|
|
52864
|
+
const EnableChunkLoadingPluginInner = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EnableChunkLoadingPlugin, (type)=>type);
|
|
52865
52865
|
const enabledTypes = new WeakMap();
|
|
52866
52866
|
const getEnabledTypes = (compiler)=>{
|
|
52867
52867
|
let set = enabledTypes.get(compiler);
|
|
@@ -52902,38 +52902,6 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
52902
52902
|
}
|
|
52903
52903
|
}
|
|
52904
52904
|
}
|
|
52905
|
-
const EnableLibraryPlugin_enabledTypes = new WeakMap();
|
|
52906
|
-
const EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
52907
|
-
let set = EnableLibraryPlugin_enabledTypes.get(compiler);
|
|
52908
|
-
if (void 0 === set) {
|
|
52909
|
-
set = new Set();
|
|
52910
|
-
EnableLibraryPlugin_enabledTypes.set(compiler, set);
|
|
52911
|
-
}
|
|
52912
|
-
return set;
|
|
52913
|
-
};
|
|
52914
|
-
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
52915
|
-
type;
|
|
52916
|
-
name = external_rspack_wasi_browser_js_.BuiltinPluginName.EnableLibraryPlugin;
|
|
52917
|
-
constructor(type){
|
|
52918
|
-
super(), this.type = type;
|
|
52919
|
-
}
|
|
52920
|
-
static setEnabled(compiler, type) {
|
|
52921
|
-
EnableLibraryPlugin_getEnabledTypes(compiler).add(type);
|
|
52922
|
-
}
|
|
52923
|
-
static checkEnabled(compiler, type) {
|
|
52924
|
-
if (!EnableLibraryPlugin_getEnabledTypes(compiler).has(type)) throw new Error(`Library type "${type}" is not enabled. EnableLibraryPlugin need to be used to enable this type of library. This usually happens through the "output.enabledLibraryTypes" option. If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". These types are enabled: ${Array.from(EnableLibraryPlugin_getEnabledTypes(compiler)).join(', ')}`);
|
|
52925
|
-
}
|
|
52926
|
-
raw(compiler) {
|
|
52927
|
-
const type = this.type;
|
|
52928
|
-
const enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
|
|
52929
|
-
if (enabled.has(type)) return;
|
|
52930
|
-
enabled.add(type);
|
|
52931
|
-
return createBuiltinPlugin(this.name, type);
|
|
52932
|
-
}
|
|
52933
|
-
}
|
|
52934
|
-
const EnableWasmLoadingPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type);
|
|
52935
|
-
const EnsureChunkConditionsPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{});
|
|
52936
|
-
const RemoveDuplicateModulesPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
52937
52905
|
class JsSplitChunkSizes {
|
|
52938
52906
|
static __to_binding(sizes) {
|
|
52939
52907
|
if ('number' == typeof sizes) return sizes;
|
|
@@ -52948,18 +52916,18 @@ class JsSplitChunkSizes {
|
|
|
52948
52916
|
}
|
|
52949
52917
|
class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
52950
52918
|
options;
|
|
52951
|
-
name =
|
|
52919
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.SplitChunksPlugin;
|
|
52952
52920
|
affectedHooks = 'thisCompilation';
|
|
52953
52921
|
constructor(options){
|
|
52954
52922
|
super(), this.options = options;
|
|
52955
52923
|
}
|
|
52956
52924
|
raw(compiler) {
|
|
52957
|
-
const rawOptions =
|
|
52925
|
+
const rawOptions = SplitChunksPlugin_toRawSplitChunksOptions(this.options, compiler);
|
|
52958
52926
|
if (void 0 === rawOptions) throw new Error('rawOptions should not be undefined');
|
|
52959
52927
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
52960
52928
|
}
|
|
52961
52929
|
}
|
|
52962
|
-
function
|
|
52930
|
+
function SplitChunksPlugin_toRawSplitChunksOptions(sc, compiler) {
|
|
52963
52931
|
if (!sc) return;
|
|
52964
52932
|
function getName(name) {
|
|
52965
52933
|
if ('function' == typeof name) return (ctx)=>{
|
|
@@ -53018,6 +52986,42 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
53018
52986
|
...passThrough
|
|
53019
52987
|
};
|
|
53020
52988
|
}
|
|
52989
|
+
const EnableLibraryPlugin_enabledTypes = new WeakMap();
|
|
52990
|
+
const EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
52991
|
+
let set = EnableLibraryPlugin_enabledTypes.get(compiler);
|
|
52992
|
+
if (void 0 === set) {
|
|
52993
|
+
set = new Set();
|
|
52994
|
+
EnableLibraryPlugin_enabledTypes.set(compiler, set);
|
|
52995
|
+
}
|
|
52996
|
+
return set;
|
|
52997
|
+
};
|
|
52998
|
+
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
52999
|
+
type;
|
|
53000
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.EnableLibraryPlugin;
|
|
53001
|
+
constructor(type){
|
|
53002
|
+
super(), this.type = type;
|
|
53003
|
+
}
|
|
53004
|
+
static setEnabled(compiler, type) {
|
|
53005
|
+
EnableLibraryPlugin_getEnabledTypes(compiler).add(type);
|
|
53006
|
+
}
|
|
53007
|
+
static checkEnabled(compiler, type) {
|
|
53008
|
+
if (!EnableLibraryPlugin_getEnabledTypes(compiler).has(type)) throw new Error(`Library type "${type}" is not enabled. EnableLibraryPlugin need to be used to enable this type of library. This usually happens through the "output.enabledLibraryTypes" option. If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". These types are enabled: ${Array.from(EnableLibraryPlugin_getEnabledTypes(compiler)).join(', ')}`);
|
|
53009
|
+
}
|
|
53010
|
+
raw(compiler) {
|
|
53011
|
+
const type = this.type;
|
|
53012
|
+
const enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
|
|
53013
|
+
if (enabled.has(type)) return;
|
|
53014
|
+
enabled.add(type);
|
|
53015
|
+
return createBuiltinPlugin(this.name, {
|
|
53016
|
+
libraryType: type,
|
|
53017
|
+
preserveModules: compiler.options.output.library?.preserveModules,
|
|
53018
|
+
splitChunks: SplitChunksPlugin_toRawSplitChunksOptions(compiler.options.optimization.splitChunks ?? false, compiler)
|
|
53019
|
+
});
|
|
53020
|
+
}
|
|
53021
|
+
}
|
|
53022
|
+
const EnableWasmLoadingPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type);
|
|
53023
|
+
const EnsureChunkConditionsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{});
|
|
53024
|
+
const RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
53021
53025
|
function applyLimits(options) {
|
|
53022
53026
|
options.optimization.concatenateModules = false;
|
|
53023
53027
|
options.optimization.removeEmptyChunks = false;
|
|
@@ -53037,32 +53041,9 @@ function applyLimits(options) {
|
|
|
53037
53041
|
splitChunks.cacheGroups.defaultVendors = false;
|
|
53038
53042
|
}
|
|
53039
53043
|
}
|
|
53040
|
-
|
|
53041
|
-
|
|
53042
|
-
|
|
53043
|
-
constructor(options){
|
|
53044
|
-
this.options = options ?? {};
|
|
53045
|
-
}
|
|
53046
|
-
apply(compiler) {
|
|
53047
|
-
applyLimits(compiler.options);
|
|
53048
|
-
new RemoveDuplicateModulesPlugin().apply(compiler);
|
|
53049
|
-
let err;
|
|
53050
|
-
if (err = checkConfig(compiler.options)) throw new lib_WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
|
|
53051
|
-
compiler.__internal__registerBuiltinPlugin({
|
|
53052
|
-
name: external_rspack_wasi_browser_js_.BuiltinPluginName.EsmLibraryPlugin,
|
|
53053
|
-
options: {
|
|
53054
|
-
preserveModules: this.options.preserveModules,
|
|
53055
|
-
splitChunks: toRawSplitChunksOptions(this.options.splitChunks ?? false, compiler)
|
|
53056
|
-
}
|
|
53057
|
-
});
|
|
53058
|
-
}
|
|
53059
|
-
}
|
|
53060
|
-
function checkConfig(config) {
|
|
53061
|
-
if (config.optimization.concatenateModules) return 'You should disable `config.optimization.concatenateModules`';
|
|
53062
|
-
if (false !== config.output.chunkFormat) return 'You should disable default chunkFormat by `config.output.chunkFormat = false`';
|
|
53063
|
-
}
|
|
53064
|
-
const EvalDevToolModulePlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation');
|
|
53065
|
-
const EvalSourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
53044
|
+
base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EsmNodeTargetPlugin, ()=>void 0);
|
|
53045
|
+
const EvalDevToolModulePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation');
|
|
53046
|
+
const EvalSourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
53066
53047
|
var util_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
53067
53048
|
function isNil(value) {
|
|
53068
53049
|
return null == value;
|
|
@@ -53459,6 +53440,7 @@ const getSwcLoaderOptions = (o, composeOptions)=>{
|
|
|
53459
53440
|
}
|
|
53460
53441
|
}
|
|
53461
53442
|
if (options.collectTypeScriptInfo) options.collectTypeScriptInfo = resolveCollectTypeScriptInfo(options.collectTypeScriptInfo);
|
|
53443
|
+
if (options.transformImport) options.transformImport = resolvePluginImport(options.transformImport);
|
|
53462
53444
|
const { rspackExperiments } = options;
|
|
53463
53445
|
if (rspackExperiments) {
|
|
53464
53446
|
if (rspackExperiments.import || rspackExperiments.pluginImport) rspackExperiments.import = resolvePluginImport(rspackExperiments.import || rspackExperiments.pluginImport);
|
|
@@ -53467,7 +53449,7 @@ const getSwcLoaderOptions = (o, composeOptions)=>{
|
|
|
53467
53449
|
return options;
|
|
53468
53450
|
};
|
|
53469
53451
|
const $assets = Symbol('assets');
|
|
53470
|
-
Object.defineProperty(
|
|
53452
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, util_util_default().inspect.custom, {
|
|
53471
53453
|
enumerable: true,
|
|
53472
53454
|
configurable: true,
|
|
53473
53455
|
value () {
|
|
@@ -53481,13 +53463,13 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].KnownBuildInfo
|
|
|
53481
53463
|
};
|
|
53482
53464
|
}
|
|
53483
53465
|
});
|
|
53484
|
-
Object.defineProperty(
|
|
53466
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'assets', {
|
|
53485
53467
|
enumerable: true,
|
|
53486
53468
|
configurable: true,
|
|
53487
53469
|
get () {
|
|
53488
|
-
if (this[
|
|
53470
|
+
if (this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL][$assets]) return this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL][$assets];
|
|
53489
53471
|
const assets = new Proxy(Object.create(null), {
|
|
53490
|
-
ownKeys: ()=>this[
|
|
53472
|
+
ownKeys: ()=>this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL].keys(),
|
|
53491
53473
|
getOwnPropertyDescriptor () {
|
|
53492
53474
|
return {
|
|
53493
53475
|
enumerable: true,
|
|
@@ -53495,7 +53477,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].KnownBuildInfo
|
|
|
53495
53477
|
};
|
|
53496
53478
|
}
|
|
53497
53479
|
});
|
|
53498
|
-
Object.defineProperty(this[
|
|
53480
|
+
Object.defineProperty(this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL], $assets, {
|
|
53499
53481
|
enumerable: false,
|
|
53500
53482
|
configurable: true,
|
|
53501
53483
|
value: assets
|
|
@@ -53503,32 +53485,32 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].KnownBuildInfo
|
|
|
53503
53485
|
return assets;
|
|
53504
53486
|
}
|
|
53505
53487
|
});
|
|
53506
|
-
Object.defineProperty(
|
|
53488
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'fileDependencies', {
|
|
53507
53489
|
enumerable: true,
|
|
53508
53490
|
configurable: true,
|
|
53509
53491
|
get () {
|
|
53510
|
-
return new Set(this[
|
|
53492
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_FILE_DEPENDENCIES_SYMBOL]);
|
|
53511
53493
|
}
|
|
53512
53494
|
});
|
|
53513
|
-
Object.defineProperty(
|
|
53495
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'contextDependencies', {
|
|
53514
53496
|
enumerable: true,
|
|
53515
53497
|
configurable: true,
|
|
53516
53498
|
get () {
|
|
53517
|
-
return new Set(this[
|
|
53499
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_CONTEXT_DEPENDENCIES_SYMBOL]);
|
|
53518
53500
|
}
|
|
53519
53501
|
});
|
|
53520
|
-
Object.defineProperty(
|
|
53502
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'missingDependencies', {
|
|
53521
53503
|
enumerable: true,
|
|
53522
53504
|
configurable: true,
|
|
53523
53505
|
get () {
|
|
53524
|
-
return new Set(this[
|
|
53506
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_MISSING_DEPENDENCIES_SYMBOL]);
|
|
53525
53507
|
}
|
|
53526
53508
|
});
|
|
53527
|
-
Object.defineProperty(
|
|
53509
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'buildDependencies', {
|
|
53528
53510
|
enumerable: true,
|
|
53529
53511
|
configurable: true,
|
|
53530
53512
|
get () {
|
|
53531
|
-
return new Set(this[
|
|
53513
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_BUILD_DEPENDENCIES_SYMBOL]);
|
|
53532
53514
|
}
|
|
53533
53515
|
});
|
|
53534
53516
|
const knownBuildInfoFields = new Set([
|
|
@@ -53539,16 +53521,16 @@ const knownBuildInfoFields = new Set([
|
|
|
53539
53521
|
'buildDependencies'
|
|
53540
53522
|
]);
|
|
53541
53523
|
const commitCustomFieldsToRust = (buildInfo)=>{
|
|
53542
|
-
if (Object.keys(buildInfo).some((key)=>!knownBuildInfoFields.has(key))) buildInfo[
|
|
53524
|
+
if (Object.keys(buildInfo).some((key)=>!knownBuildInfoFields.has(key))) buildInfo[rspack_wasi_browser.COMMIT_CUSTOM_FIELDS_SYMBOL]();
|
|
53543
53525
|
};
|
|
53544
|
-
Object.defineProperty(
|
|
53526
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule.prototype, 'identifier', {
|
|
53545
53527
|
enumerable: true,
|
|
53546
53528
|
configurable: true,
|
|
53547
53529
|
value () {
|
|
53548
|
-
return this[
|
|
53530
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
53549
53531
|
}
|
|
53550
53532
|
});
|
|
53551
|
-
Object.defineProperty(
|
|
53533
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule.prototype, 'originalSource', {
|
|
53552
53534
|
enumerable: true,
|
|
53553
53535
|
configurable: true,
|
|
53554
53536
|
value () {
|
|
@@ -53557,19 +53539,19 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].NormalModule.p
|
|
|
53557
53539
|
return null;
|
|
53558
53540
|
}
|
|
53559
53541
|
});
|
|
53560
|
-
Object.defineProperty(
|
|
53542
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule.prototype, 'emitFile', {
|
|
53561
53543
|
enumerable: true,
|
|
53562
53544
|
configurable: true,
|
|
53563
53545
|
value (filename, source, assetInfo) {
|
|
53564
53546
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
53565
53547
|
}
|
|
53566
53548
|
});
|
|
53567
|
-
Object.defineProperty(
|
|
53549
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule, 'getCompilationHooks', {
|
|
53568
53550
|
enumerable: true,
|
|
53569
53551
|
configurable: true,
|
|
53570
53552
|
value (compilation) {
|
|
53571
|
-
if (!(
|
|
53572
|
-
const compilationHooksMap = compilation[
|
|
53553
|
+
if (!(rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL in compilation)) throw new TypeError("The 'compilation' argument must be an instance of Compilation");
|
|
53554
|
+
const compilationHooksMap = compilation[rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL];
|
|
53573
53555
|
let hooks = compilationHooksMap.get(compilation);
|
|
53574
53556
|
if (void 0 === hooks) {
|
|
53575
53557
|
hooks = {
|
|
@@ -54081,8 +54063,8 @@ function convertArgs(args, raw) {
|
|
|
54081
54063
|
else if (raw && 'string' == typeof args[0]) args[0] = utils_Buffer.from(args[0], 'utf-8');
|
|
54082
54064
|
if (raw && args[0] instanceof Uint8Array && !utils_Buffer.isBuffer(args[0])) args[0] = utils_Buffer.from(args[0].buffer);
|
|
54083
54065
|
}
|
|
54084
|
-
const utils_loadLoader = (0,
|
|
54085
|
-
const utils_runSyncOrAsync = (0,
|
|
54066
|
+
const utils_loadLoader = (0, util_util.promisify)(loadLoader);
|
|
54067
|
+
const utils_runSyncOrAsync = (0, util_util.promisify)(function(fn, context, args, callback) {
|
|
54086
54068
|
let isSync = true;
|
|
54087
54069
|
let isDone = false;
|
|
54088
54070
|
let isError = false;
|
|
@@ -54282,7 +54264,7 @@ function getCurrentLoader(loaderContext, index = loaderContext.loaderIndex) {
|
|
|
54282
54264
|
}
|
|
54283
54265
|
async function runLoaders(compiler, context) {
|
|
54284
54266
|
const loaderState = context.loaderState;
|
|
54285
|
-
const pitch = loaderState ===
|
|
54267
|
+
const pitch = loaderState === JsLoaderState.Pitching;
|
|
54286
54268
|
const { resource } = context;
|
|
54287
54269
|
const uuid = trace_JavaScriptTracer.uuid();
|
|
54288
54270
|
trace_JavaScriptTracer.startAsync({
|
|
@@ -54480,7 +54462,7 @@ async function runLoaders(compiler, context) {
|
|
|
54480
54462
|
error.module = loaderContext._module;
|
|
54481
54463
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
54482
54464
|
error,
|
|
54483
|
-
severity:
|
|
54465
|
+
severity: JsRspackSeverity.Error
|
|
54484
54466
|
});
|
|
54485
54467
|
};
|
|
54486
54468
|
loaderContext.emitWarning = function(e) {
|
|
@@ -54491,15 +54473,15 @@ async function runLoaders(compiler, context) {
|
|
|
54491
54473
|
warning.module = loaderContext._module;
|
|
54492
54474
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
54493
54475
|
error: warning,
|
|
54494
|
-
severity:
|
|
54476
|
+
severity: JsRspackSeverity.Warn
|
|
54495
54477
|
});
|
|
54496
54478
|
};
|
|
54497
54479
|
loaderContext.emitFile = function(name, content, sourceMap, assetInfo) {
|
|
54498
54480
|
let source;
|
|
54499
54481
|
if (sourceMap) {
|
|
54500
|
-
if ('string' == typeof sourceMap && (loaderContext.sourceMap || compiler.options.devtool && isUseSimpleSourceMap(compiler.options.devtool))) source = new
|
|
54501
|
-
if (loaderContext.sourceMap) source = new
|
|
54502
|
-
} else source = new
|
|
54482
|
+
if ('string' == typeof sourceMap && (loaderContext.sourceMap || compiler.options.devtool && isUseSimpleSourceMap(compiler.options.devtool))) source = new webpack_sources_lib.OriginalSource(content, makePathsRelative(contextDirectory, sourceMap, compiler));
|
|
54483
|
+
if (loaderContext.sourceMap) source = new webpack_sources_lib.SourceMapSource(content, name, makePathsRelative(contextDirectory, sourceMap, compiler));
|
|
54484
|
+
} else source = new webpack_sources_lib.RawSource(content);
|
|
54503
54485
|
loaderContext._module.emitFile(name, source, assetInfo);
|
|
54504
54486
|
};
|
|
54505
54487
|
loaderContext.fs = compiler.inputFileSystem;
|
|
@@ -54509,7 +54491,7 @@ async function runLoaders(compiler, context) {
|
|
|
54509
54491
|
message: 'warning' === diagnostic.severity ? `ModuleWarning: ${diagnostic.message}` : `ModuleError: ${diagnostic.message}`,
|
|
54510
54492
|
moduleIdentifier: context._module.identifier()
|
|
54511
54493
|
});
|
|
54512
|
-
compiler._lastCompilation.__internal__pushDiagnostic(
|
|
54494
|
+
compiler._lastCompilation.__internal__pushDiagnostic(formatDiagnostic(d));
|
|
54513
54495
|
}
|
|
54514
54496
|
};
|
|
54515
54497
|
const getAbsolutify = memoize(()=>absolutify.bindCache(compiler.root));
|
|
@@ -54539,7 +54521,7 @@ async function runLoaders(compiler, context) {
|
|
|
54539
54521
|
let compilation = compiler._lastCompilation;
|
|
54540
54522
|
let step = 0;
|
|
54541
54523
|
while(compilation){
|
|
54542
|
-
|
|
54524
|
+
NormalModule.getCompilationHooks(compilation).loader.call(loaderContext, loaderContext._module);
|
|
54543
54525
|
compilation = compilation.compiler.parentCompilation;
|
|
54544
54526
|
step++;
|
|
54545
54527
|
if (step > 1000) throw Error('Too many nested child compiler, exceeded max limitation 1000');
|
|
@@ -54564,7 +54546,7 @@ async function runLoaders(compiler, context) {
|
|
|
54564
54546
|
context.__internal__parseMeta[key] = value;
|
|
54565
54547
|
};
|
|
54566
54548
|
const getWorkerLoaderContext = ()=>{
|
|
54567
|
-
const normalModule = loaderContext._module instanceof
|
|
54549
|
+
const normalModule = loaderContext._module instanceof NormalModule ? loaderContext._module : void 0;
|
|
54568
54550
|
const workerLoaderContext = {
|
|
54569
54551
|
hot: loaderContext.hot,
|
|
54570
54552
|
context: loaderContext.context,
|
|
@@ -54752,7 +54734,7 @@ async function runLoaders(compiler, context) {
|
|
|
54752
54734
|
const isomorphoicRun = async (fn, args)=>{
|
|
54753
54735
|
const currentLoaderObject = getCurrentLoader(loaderContext);
|
|
54754
54736
|
const parallelism = enableParallelism(currentLoaderObject);
|
|
54755
|
-
const pitch = loaderState ===
|
|
54737
|
+
const pitch = loaderState === JsLoaderState.Pitching;
|
|
54756
54738
|
const loaderName = extractLoaderName(currentLoaderObject.request);
|
|
54757
54739
|
let result;
|
|
54758
54740
|
trace_JavaScriptTracer.startAsync({
|
|
@@ -54771,7 +54753,7 @@ async function runLoaders(compiler, context) {
|
|
|
54771
54753
|
args
|
|
54772
54754
|
}, getWorkerLoaderHandlers(), 'object' == typeof currentLoaderObject?.parallel ? currentLoaderObject.parallel : void 0) || [];
|
|
54773
54755
|
else {
|
|
54774
|
-
if (loaderState ===
|
|
54756
|
+
if (loaderState === JsLoaderState.Normal) convertArgs(args, !!currentLoaderObject?.raw);
|
|
54775
54757
|
result = await utils_runSyncOrAsync(fn, loaderContext, args) || [];
|
|
54776
54758
|
}
|
|
54777
54759
|
trace_JavaScriptTracer.endAsync({
|
|
@@ -54788,7 +54770,7 @@ async function runLoaders(compiler, context) {
|
|
|
54788
54770
|
};
|
|
54789
54771
|
try {
|
|
54790
54772
|
switch(loaderState){
|
|
54791
|
-
case
|
|
54773
|
+
case JsLoaderState.Pitching:
|
|
54792
54774
|
while(loaderContext.loaderIndex < loaderContext.loaders.length){
|
|
54793
54775
|
const currentLoaderObject = loaderContext.loaders[loaderContext.loaderIndex];
|
|
54794
54776
|
const parallelism = enableParallelism(currentLoaderObject);
|
|
@@ -54816,7 +54798,7 @@ async function runLoaders(compiler, context) {
|
|
|
54816
54798
|
}
|
|
54817
54799
|
}
|
|
54818
54800
|
break;
|
|
54819
|
-
case
|
|
54801
|
+
case JsLoaderState.Normal:
|
|
54820
54802
|
{
|
|
54821
54803
|
let content = context.content;
|
|
54822
54804
|
let sourceMap = JsSourceMap.__from_binding(context.sourceMap);
|
|
@@ -55142,23 +55124,23 @@ const getRawModuleRule = (rule, path, options, upperType)=>{
|
|
|
55142
55124
|
};
|
|
55143
55125
|
function getRawRuleSetCondition(condition) {
|
|
55144
55126
|
if ('string' == typeof condition) return {
|
|
55145
|
-
type:
|
|
55127
|
+
type: RawRuleSetConditionType.string,
|
|
55146
55128
|
string: condition
|
|
55147
55129
|
};
|
|
55148
55130
|
if (condition instanceof RegExp) return {
|
|
55149
|
-
type:
|
|
55131
|
+
type: RawRuleSetConditionType.regexp,
|
|
55150
55132
|
regexp: condition
|
|
55151
55133
|
};
|
|
55152
55134
|
if ('function' == typeof condition) return {
|
|
55153
|
-
type:
|
|
55135
|
+
type: RawRuleSetConditionType.func,
|
|
55154
55136
|
func: condition
|
|
55155
55137
|
};
|
|
55156
55138
|
if (Array.isArray(condition)) return {
|
|
55157
|
-
type:
|
|
55139
|
+
type: RawRuleSetConditionType.array,
|
|
55158
55140
|
array: condition.map((i)=>getRawRuleSetCondition(i))
|
|
55159
55141
|
};
|
|
55160
55142
|
if ('object' == typeof condition && null !== condition) return {
|
|
55161
|
-
type:
|
|
55143
|
+
type: RawRuleSetConditionType.logical,
|
|
55162
55144
|
logical: [
|
|
55163
55145
|
getRawRuleSetLogicalConditions(condition)
|
|
55164
55146
|
]
|
|
@@ -55393,7 +55375,7 @@ class ExternalsPlugin extends RspackBuiltinPlugin {
|
|
|
55393
55375
|
type;
|
|
55394
55376
|
externals;
|
|
55395
55377
|
placeInInitial;
|
|
55396
|
-
name =
|
|
55378
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ExternalsPlugin;
|
|
55397
55379
|
#resolveRequestCache = new Map();
|
|
55398
55380
|
constructor(type, externals, placeInInitial){
|
|
55399
55381
|
super(), this.type = type, this.externals = externals, this.placeInInitial = placeInInitial;
|
|
@@ -55494,12 +55476,12 @@ function getRawExternalItemValue(value) {
|
|
|
55494
55476
|
]));
|
|
55495
55477
|
return value;
|
|
55496
55478
|
}
|
|
55497
|
-
const FetchCompileAsyncWasmPlugin = base_create(
|
|
55498
|
-
const FileUriPlugin = base_create(
|
|
55499
|
-
const FlagDependencyExportsPlugin = base_create(
|
|
55479
|
+
const FetchCompileAsyncWasmPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FetchCompileAsyncWasmPlugin, ()=>{}, 'thisCompilation');
|
|
55480
|
+
const FileUriPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FileUriPlugin, ()=>{}, 'compilation');
|
|
55481
|
+
const FlagDependencyExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyExportsPlugin, ()=>{}, 'compilation');
|
|
55500
55482
|
class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
55501
55483
|
global;
|
|
55502
|
-
name =
|
|
55484
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
55503
55485
|
affectedHooks = 'compilation';
|
|
55504
55486
|
constructor(global){
|
|
55505
55487
|
super(), this.global = global;
|
|
@@ -55509,13 +55491,13 @@ class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
|
55509
55491
|
}
|
|
55510
55492
|
}
|
|
55511
55493
|
class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
55512
|
-
name =
|
|
55494
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.HotModuleReplacementPlugin;
|
|
55513
55495
|
raw(compiler) {
|
|
55514
55496
|
if (void 0 === compiler.options.output.strictModuleErrorHandling) compiler.options.output.strictModuleErrorHandling = true;
|
|
55515
55497
|
return createBuiltinPlugin(this.name, void 0);
|
|
55516
55498
|
}
|
|
55517
55499
|
}
|
|
55518
|
-
const HttpExternalsRspackPlugin = base_create(
|
|
55500
|
+
const HttpExternalsRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HttpExternalsRspackPlugin, (css, webAsync)=>({
|
|
55519
55501
|
css,
|
|
55520
55502
|
webAsync
|
|
55521
55503
|
}));
|
|
@@ -55537,7 +55519,7 @@ const defaultHttpClientForBrowser = async (url, headers)=>{
|
|
|
55537
55519
|
};
|
|
55538
55520
|
class HttpUriPlugin extends RspackBuiltinPlugin {
|
|
55539
55521
|
options;
|
|
55540
|
-
name =
|
|
55522
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.HttpUriPlugin;
|
|
55541
55523
|
affectedHooks = 'compilation';
|
|
55542
55524
|
constructor(options){
|
|
55543
55525
|
super(), this.options = options;
|
|
@@ -55608,7 +55590,7 @@ const cleanPluginHooks = (compilation)=>{
|
|
|
55608
55590
|
const fs_0 = __webpack_require__("./src/browser/fs.ts");
|
|
55609
55591
|
var plugin_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
55610
55592
|
let HTML_PLUGIN_UID = 0;
|
|
55611
|
-
const HtmlRspackPluginImpl = base_create(
|
|
55593
|
+
const HtmlRspackPluginImpl = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HtmlRspackPlugin, function(c = {}) {
|
|
55612
55594
|
const uid = HTML_PLUGIN_UID++;
|
|
55613
55595
|
const meta = {};
|
|
55614
55596
|
for(const key in c.meta){
|
|
@@ -55766,12 +55748,12 @@ HtmlRspackPlugin.createHtmlTagObject = (tagName, attributes, innerHTML)=>({
|
|
|
55766
55748
|
});
|
|
55767
55749
|
HtmlRspackPlugin.getCompilationHooks = getPluginHooks;
|
|
55768
55750
|
HtmlRspackPlugin.version = 5;
|
|
55769
|
-
const IgnorePlugin = base_create(
|
|
55770
|
-
const InferAsyncModulesPlugin = base_create(
|
|
55771
|
-
const InlineExportsPlugin = base_create(
|
|
55751
|
+
const IgnorePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.IgnorePlugin, (options)=>options);
|
|
55752
|
+
const InferAsyncModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InferAsyncModulesPlugin, ()=>{}, 'compilation');
|
|
55753
|
+
const InlineExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InlineExportsPlugin, ()=>{}, 'compilation');
|
|
55772
55754
|
const JavascriptModulesPlugin_compilationHooksMap = new WeakMap();
|
|
55773
55755
|
class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
55774
|
-
name =
|
|
55756
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.JavascriptModulesPlugin;
|
|
55775
55757
|
affectedHooks = 'compilation';
|
|
55776
55758
|
raw() {
|
|
55777
55759
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -55791,9 +55773,9 @@ class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
|
55791
55773
|
return hooks;
|
|
55792
55774
|
}
|
|
55793
55775
|
}
|
|
55794
|
-
const JsLoaderRspackPlugin = base_create(
|
|
55795
|
-
const JsonModulesPlugin = base_create(
|
|
55796
|
-
const LibManifestPlugin = base_create(
|
|
55776
|
+
const JsLoaderRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.JsLoaderRspackPlugin, (compiler)=>runLoaders.bind(null, compiler), 'thisCompilation');
|
|
55777
|
+
const JsonModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.JsonModulesPlugin, ()=>{}, 'compilation');
|
|
55778
|
+
const LibManifestPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.LibManifestPlugin, (options)=>{
|
|
55797
55779
|
const { context, entryOnly, format, name, path, type } = options;
|
|
55798
55780
|
return {
|
|
55799
55781
|
context,
|
|
@@ -55804,7 +55786,7 @@ const LibManifestPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPl
|
|
|
55804
55786
|
type
|
|
55805
55787
|
};
|
|
55806
55788
|
});
|
|
55807
|
-
const LightningCssMinimizerRspackPlugin = base_create(
|
|
55789
|
+
const LightningCssMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.LightningCssMinimizerRspackPlugin, function(options) {
|
|
55808
55790
|
const { include, exclude, nonStandard, pseudoClasses, drafts } = options?.minimizerOptions ?? {};
|
|
55809
55791
|
let targets = [
|
|
55810
55792
|
'fully supports es6'
|
|
@@ -55837,13 +55819,13 @@ const LightningCssMinimizerRspackPlugin = base_create(external_rspack_wasi_brows
|
|
|
55837
55819
|
}
|
|
55838
55820
|
};
|
|
55839
55821
|
});
|
|
55840
|
-
const LimitChunkCountPlugin = base_create(
|
|
55822
|
+
const LimitChunkCountPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.LimitChunkCountPlugin, (options)=>options);
|
|
55841
55823
|
const lazyCompilationMiddleware = ()=>{
|
|
55842
55824
|
throw new Error('lazy compilation middleware is not supported in browser');
|
|
55843
55825
|
};
|
|
55844
55826
|
class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
55845
55827
|
deterministic;
|
|
55846
|
-
name =
|
|
55828
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.MangleExportsPlugin;
|
|
55847
55829
|
affectedHooks = 'compilation';
|
|
55848
55830
|
constructor(deterministic){
|
|
55849
55831
|
super(), this.deterministic = deterministic;
|
|
@@ -55852,45 +55834,45 @@ class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
|
55852
55834
|
return createBuiltinPlugin(this.name, this.deterministic);
|
|
55853
55835
|
}
|
|
55854
55836
|
}
|
|
55855
|
-
const MergeDuplicateChunksPlugin = base_create(
|
|
55856
|
-
const ModuleChunkFormatPlugin = base_create(
|
|
55837
|
+
const MergeDuplicateChunksPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.MergeDuplicateChunksPlugin, ()=>{});
|
|
55838
|
+
const ModuleChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleChunkFormatPlugin, ()=>{});
|
|
55857
55839
|
class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
55858
|
-
name =
|
|
55840
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleConcatenationPlugin;
|
|
55859
55841
|
affectedHooks = 'compilation';
|
|
55860
55842
|
raw() {
|
|
55861
55843
|
return createBuiltinPlugin(this.name, void 0);
|
|
55862
55844
|
}
|
|
55863
55845
|
}
|
|
55864
|
-
const ModuleInfoHeaderPlugin = base_create(
|
|
55865
|
-
const NamedChunkIdsPlugin = base_create(
|
|
55866
|
-
const NamedModuleIdsPlugin = base_create(
|
|
55846
|
+
const ModuleInfoHeaderPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleInfoHeaderPlugin, (verbose)=>verbose, 'compilation');
|
|
55847
|
+
const NamedChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedChunkIdsPlugin, ()=>{}, 'compilation');
|
|
55848
|
+
const NamedModuleIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedModuleIdsPlugin, ()=>{}, 'compilation');
|
|
55867
55849
|
class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
55868
|
-
name =
|
|
55850
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
55869
55851
|
affectedHooks = 'compilation';
|
|
55870
55852
|
raw() {
|
|
55871
55853
|
return createBuiltinPlugin(this.name, void 0);
|
|
55872
55854
|
}
|
|
55873
55855
|
}
|
|
55874
55856
|
class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
55875
|
-
name =
|
|
55857
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
55876
55858
|
affectedHooks = 'compilation';
|
|
55877
55859
|
raw() {
|
|
55878
55860
|
return createBuiltinPlugin(this.name, void 0);
|
|
55879
55861
|
}
|
|
55880
55862
|
}
|
|
55881
|
-
const NodeTargetPlugin = base_create(
|
|
55882
|
-
const NoEmitOnErrorsPlugin = base_create(
|
|
55883
|
-
const NormalModuleReplacementPlugin = base_create(
|
|
55863
|
+
const NodeTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NodeTargetPlugin, ()=>void 0);
|
|
55864
|
+
const NoEmitOnErrorsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NoEmitOnErrorsPlugin, ()=>void 0);
|
|
55865
|
+
const NormalModuleReplacementPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NormalModuleReplacementPlugin, (resourceRegExp, newResource)=>({
|
|
55884
55866
|
resourceRegExp,
|
|
55885
55867
|
newResource: 'function' == typeof newResource ? (data)=>{
|
|
55886
55868
|
newResource(data);
|
|
55887
55869
|
return data;
|
|
55888
55870
|
} : newResource
|
|
55889
55871
|
}));
|
|
55890
|
-
const OccurrenceChunkIdsPlugin = base_create(
|
|
55872
|
+
const OccurrenceChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.OccurrenceChunkIdsPlugin, (options)=>({
|
|
55891
55873
|
...options
|
|
55892
55874
|
}), 'compilation');
|
|
55893
|
-
const ProgressPlugin = base_create(
|
|
55875
|
+
const ProgressPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ProgressPlugin, (progress = {})=>{
|
|
55894
55876
|
if ('function' == typeof progress) return {
|
|
55895
55877
|
handler: (percentage, msg, info)=>{
|
|
55896
55878
|
progress(percentage, msg, info);
|
|
@@ -55898,7 +55880,7 @@ const ProgressPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlugi
|
|
|
55898
55880
|
};
|
|
55899
55881
|
return progress;
|
|
55900
55882
|
});
|
|
55901
|
-
const ProvidePlugin = base_create(
|
|
55883
|
+
const ProvidePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ProvidePlugin, (provide)=>{
|
|
55902
55884
|
const entries = Object.entries(provide).map(([key, value])=>{
|
|
55903
55885
|
if ('string' == typeof value) value = [
|
|
55904
55886
|
value
|
|
@@ -55910,9 +55892,9 @@ const ProvidePlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlugin
|
|
|
55910
55892
|
});
|
|
55911
55893
|
return Object.fromEntries(entries);
|
|
55912
55894
|
}, 'compilation');
|
|
55913
|
-
const RealContentHashPlugin = base_create(
|
|
55914
|
-
const RemoveEmptyChunksPlugin = base_create(
|
|
55915
|
-
const RsdoctorPluginImpl = base_create(
|
|
55895
|
+
const RealContentHashPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RealContentHashPlugin, ()=>{}, 'compilation');
|
|
55896
|
+
const RemoveEmptyChunksPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RemoveEmptyChunksPlugin, ()=>{}, 'compilation');
|
|
55897
|
+
const RsdoctorPluginImpl = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RsdoctorPlugin, function(c = {
|
|
55916
55898
|
moduleGraphFeatures: true,
|
|
55917
55899
|
chunkGraphFeatures: true
|
|
55918
55900
|
}) {
|
|
@@ -55950,35 +55932,35 @@ RsdoctorPlugin.getCompilationHooks = (compilation)=>{
|
|
|
55950
55932
|
return hooks;
|
|
55951
55933
|
};
|
|
55952
55934
|
const createRsdoctorPluginHooksRegisters = (getCompiler, createTap)=>({
|
|
55953
|
-
registerRsdoctorPluginModuleGraphTaps: createTap(
|
|
55935
|
+
registerRsdoctorPluginModuleGraphTaps: createTap(RegisterJsTapKind.RsdoctorPluginModuleGraph, function() {
|
|
55954
55936
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).moduleGraph;
|
|
55955
55937
|
}, function(queried) {
|
|
55956
55938
|
return async function(data) {
|
|
55957
55939
|
return queried.promise(data);
|
|
55958
55940
|
};
|
|
55959
55941
|
}),
|
|
55960
|
-
registerRsdoctorPluginChunkGraphTaps: createTap(
|
|
55942
|
+
registerRsdoctorPluginChunkGraphTaps: createTap(RegisterJsTapKind.RsdoctorPluginChunkGraph, function() {
|
|
55961
55943
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).chunkGraph;
|
|
55962
55944
|
}, function(queried) {
|
|
55963
55945
|
return async function(data) {
|
|
55964
55946
|
return queried.promise(data);
|
|
55965
55947
|
};
|
|
55966
55948
|
}),
|
|
55967
|
-
registerRsdoctorPluginModuleIdsTaps: createTap(
|
|
55949
|
+
registerRsdoctorPluginModuleIdsTaps: createTap(RegisterJsTapKind.RsdoctorPluginModuleIds, function() {
|
|
55968
55950
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).moduleIds;
|
|
55969
55951
|
}, function(queried) {
|
|
55970
55952
|
return async function(data) {
|
|
55971
55953
|
return queried.promise(data);
|
|
55972
55954
|
};
|
|
55973
55955
|
}),
|
|
55974
|
-
registerRsdoctorPluginModuleSourcesTaps: createTap(
|
|
55956
|
+
registerRsdoctorPluginModuleSourcesTaps: createTap(RegisterJsTapKind.RsdoctorPluginModuleSources, function() {
|
|
55975
55957
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).moduleSources;
|
|
55976
55958
|
}, function(queried) {
|
|
55977
55959
|
return async function(data) {
|
|
55978
55960
|
return queried.promise(data);
|
|
55979
55961
|
};
|
|
55980
55962
|
}),
|
|
55981
|
-
registerRsdoctorPluginAssetsTaps: createTap(
|
|
55963
|
+
registerRsdoctorPluginAssetsTaps: createTap(RegisterJsTapKind.RsdoctorPluginAssets, function() {
|
|
55982
55964
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).assets;
|
|
55983
55965
|
}, function(queried) {
|
|
55984
55966
|
return async function(data) {
|
|
@@ -55986,10 +55968,10 @@ const createRsdoctorPluginHooksRegisters = (getCompiler, createTap)=>({
|
|
|
55986
55968
|
};
|
|
55987
55969
|
})
|
|
55988
55970
|
});
|
|
55989
|
-
const RslibPlugin = base_create(
|
|
55990
|
-
const RstestPlugin = base_create(
|
|
55991
|
-
const RuntimeChunkPlugin = base_create(
|
|
55992
|
-
const RuntimePluginImpl = base_create(
|
|
55971
|
+
const RslibPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RslibPlugin, (rslib)=>rslib);
|
|
55972
|
+
const RstestPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RstestPlugin, (rstest)=>rstest);
|
|
55973
|
+
const RuntimeChunkPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RuntimeChunkPlugin, (options)=>options, 'thisCompilation');
|
|
55974
|
+
const RuntimePluginImpl = base_create(rspack_wasi_browser.BuiltinPluginName.RuntimePlugin, ()=>{}, 'compilation');
|
|
55993
55975
|
const RuntimePlugin = RuntimePluginImpl;
|
|
55994
55976
|
const RuntimePlugin_compilationHooksMap = new WeakMap();
|
|
55995
55977
|
RuntimePlugin.getCompilationHooks = (compilation)=>{
|
|
@@ -56019,28 +56001,28 @@ RuntimePlugin.getCompilationHooks = (compilation)=>{
|
|
|
56019
56001
|
return hooks;
|
|
56020
56002
|
};
|
|
56021
56003
|
const createRuntimePluginHooksRegisters = (getCompiler, createTap)=>({
|
|
56022
|
-
registerRuntimePluginCreateScriptTaps: createTap(
|
|
56004
|
+
registerRuntimePluginCreateScriptTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginCreateScript, function() {
|
|
56023
56005
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).createScript;
|
|
56024
56006
|
}, function(queried) {
|
|
56025
56007
|
return function(data) {
|
|
56026
56008
|
return queried.call(data.code, data.chunk);
|
|
56027
56009
|
};
|
|
56028
56010
|
}),
|
|
56029
|
-
registerRuntimePluginCreateLinkTaps: createTap(
|
|
56011
|
+
registerRuntimePluginCreateLinkTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginCreateLink, function() {
|
|
56030
56012
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).createLink;
|
|
56031
56013
|
}, function(queried) {
|
|
56032
56014
|
return function(data) {
|
|
56033
56015
|
return queried.call(data.code, data.chunk);
|
|
56034
56016
|
};
|
|
56035
56017
|
}),
|
|
56036
|
-
registerRuntimePluginLinkPreloadTaps: createTap(
|
|
56018
|
+
registerRuntimePluginLinkPreloadTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginLinkPreload, function() {
|
|
56037
56019
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).linkPreload;
|
|
56038
56020
|
}, function(queried) {
|
|
56039
56021
|
return function(data) {
|
|
56040
56022
|
return queried.call(data.code, data.chunk);
|
|
56041
56023
|
};
|
|
56042
56024
|
}),
|
|
56043
|
-
registerRuntimePluginLinkPrefetchTaps: createTap(
|
|
56025
|
+
registerRuntimePluginLinkPrefetchTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginLinkPrefetch, function() {
|
|
56044
56026
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).linkPrefetch;
|
|
56045
56027
|
}, function(queried) {
|
|
56046
56028
|
return function(data) {
|
|
@@ -56062,7 +56044,7 @@ class Coordinator {
|
|
|
56062
56044
|
configurable: false,
|
|
56063
56045
|
writable: false,
|
|
56064
56046
|
value: ()=>{
|
|
56065
|
-
if (!this.#binding) this.#binding = new
|
|
56047
|
+
if (!this.#binding) this.#binding = new JsCoordinator(()=>{
|
|
56066
56048
|
if (!this.#serverCompiler) throw new Error("[RscPlugin] Coordinator.getOrInitBinding() called before the server compiler was attached. Call coordinator.applyServerCompiler(serverCompiler) first.");
|
|
56067
56049
|
return this.#serverCompiler[GET_COMPILER_ID]();
|
|
56068
56050
|
});
|
|
@@ -56120,9 +56102,13 @@ class RscServerPlugin extends RspackBuiltinPlugin {
|
|
|
56120
56102
|
}
|
|
56121
56103
|
raw(compiler) {
|
|
56122
56104
|
this.#options.coordinator.applyServerCompiler(compiler);
|
|
56105
|
+
const { coordinator, onServerComponentChanges } = this.#options;
|
|
56106
|
+
let onManifest;
|
|
56107
|
+
if (this.#options.onManifest) onManifest = (json)=>Promise.resolve(this.#options.onManifest(JSON.parse(json)));
|
|
56123
56108
|
return createBuiltinPlugin(this.name, {
|
|
56124
|
-
coordinator:
|
|
56125
|
-
onServerComponentChanges
|
|
56109
|
+
coordinator: coordinator[GET_OR_INIT_BINDING](),
|
|
56110
|
+
onServerComponentChanges,
|
|
56111
|
+
onManifest
|
|
56126
56112
|
});
|
|
56127
56113
|
}
|
|
56128
56114
|
}
|
|
@@ -56152,20 +56138,20 @@ const rsc = {
|
|
|
56152
56138
|
ssr: 'server-side-rendering'
|
|
56153
56139
|
}
|
|
56154
56140
|
};
|
|
56155
|
-
const SideEffectsFlagPlugin = base_create(
|
|
56156
|
-
const SizeLimitsPlugin = base_create(
|
|
56141
|
+
const SideEffectsFlagPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SideEffectsFlagPlugin, ()=>{}, 'compilation');
|
|
56142
|
+
const SizeLimitsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SizeLimitsPlugin, (options)=>{
|
|
56157
56143
|
const hints = false === options.hints ? void 0 : options.hints;
|
|
56158
56144
|
return {
|
|
56159
56145
|
...options,
|
|
56160
56146
|
hints
|
|
56161
56147
|
};
|
|
56162
56148
|
});
|
|
56163
|
-
const SourceMapDevToolPlugin = base_create(
|
|
56149
|
+
const SourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
56164
56150
|
var SubresourceIntegrityPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
56165
56151
|
const SubresourceIntegrityPlugin_PLUGIN_NAME = 'SubresourceIntegrityPlugin';
|
|
56166
56152
|
const NATIVE_HTML_PLUGIN = 'HtmlRspackPlugin';
|
|
56167
56153
|
const HTTP_PROTOCOL_REGEX = /^https?:/;
|
|
56168
|
-
const NativeSubresourceIntegrityPlugin = base_create(
|
|
56154
|
+
const NativeSubresourceIntegrityPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SubresourceIntegrityPlugin, function(options) {
|
|
56169
56155
|
let htmlPlugin = 'Disabled';
|
|
56170
56156
|
if (options.htmlPlugin === NATIVE_HTML_PLUGIN) htmlPlugin = 'Native';
|
|
56171
56157
|
else if ('string' == typeof options.htmlPlugin) htmlPlugin = 'JavaScript';
|
|
@@ -56361,7 +56347,7 @@ function getRawExtractCommentsOptions(extractComments) {
|
|
|
56361
56347
|
return res;
|
|
56362
56348
|
}
|
|
56363
56349
|
}
|
|
56364
|
-
const SwcJsMinimizerRspackPlugin = base_create(
|
|
56350
|
+
const SwcJsMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SwcJsMinimizerRspackPlugin, function(options) {
|
|
56365
56351
|
let compress = options?.minimizerOptions?.compress ?? true;
|
|
56366
56352
|
const mangle = options?.minimizerOptions?.mangle ?? true;
|
|
56367
56353
|
const ecma = options?.minimizerOptions?.ecma ?? (this.target?.esVersion && this.target.esVersion > 2022 ? 2022 : this.target.esVersion) ?? 5;
|
|
@@ -56391,9 +56377,9 @@ const SwcJsMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_.
|
|
|
56391
56377
|
}
|
|
56392
56378
|
};
|
|
56393
56379
|
}, 'compilation');
|
|
56394
|
-
const URLPlugin = base_create(
|
|
56380
|
+
const URLPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.URLPlugin, ()=>{}, 'compilation');
|
|
56395
56381
|
class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
|
|
56396
|
-
name =
|
|
56382
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
56397
56383
|
raw(compiler) {
|
|
56398
56384
|
compiler.options.output.chunkLoading = "import-scripts";
|
|
56399
56385
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -56404,7 +56390,8 @@ class WorkerPlugin extends RspackBuiltinPlugin {
|
|
|
56404
56390
|
wasmLoading;
|
|
56405
56391
|
module;
|
|
56406
56392
|
workerPublicPath;
|
|
56407
|
-
name =
|
|
56393
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.WorkerPlugin;
|
|
56394
|
+
affectedHooks = 'compilation';
|
|
56408
56395
|
constructor(chunkLoading, wasmLoading, module, workerPublicPath){
|
|
56409
56396
|
super(), this.chunkLoading = chunkLoading, this.wasmLoading = wasmLoading, this.module = module, this.workerPublicPath = workerPublicPath;
|
|
56410
56397
|
}
|
|
@@ -56846,7 +56833,7 @@ function eachParent(file, callback) {
|
|
|
56846
56833
|
do {
|
|
56847
56834
|
const result = callback(loc);
|
|
56848
56835
|
if (void 0 !== result) return result;
|
|
56849
|
-
}while (loc !== (loc = path_browserify.dirname(loc)))
|
|
56836
|
+
}while (loc !== (loc = path_browserify.dirname(loc)))
|
|
56850
56837
|
}
|
|
56851
56838
|
function findConfigFile(from) {
|
|
56852
56839
|
return eachParent(from, (dir)=>{
|
|
@@ -57447,7 +57434,7 @@ const TARGETS = [
|
|
|
57447
57434
|
/^browserslist(?::(.+))?$/,
|
|
57448
57435
|
(rest, context)=>{
|
|
57449
57436
|
const inlineQuery = rest ? rest.trim() : null;
|
|
57450
|
-
const browsers =
|
|
57437
|
+
const browsers = rspack_wasi_browser.loadBrowserslist(inlineQuery, context);
|
|
57451
57438
|
if (!browsers || !inlineQuery && !hasBrowserslistConfig(context) && !target_process.env.BROWSERSLIST) throw new Error(`No browserslist config found to handle the 'browserslist' target.
|
|
57452
57439
|
See https://github.com/browserslist/browserslist#queries for possible ways to provide a config.
|
|
57453
57440
|
The recommended way is to add a 'browserslist' key to your package.json and list supported browsers (resp. node.js versions).
|
|
@@ -57779,7 +57766,6 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
57779
57766
|
production
|
|
57780
57767
|
});
|
|
57781
57768
|
options.resolve = cleverMerge(getResolveDefaults({
|
|
57782
|
-
context: options.context,
|
|
57783
57769
|
targetProperties,
|
|
57784
57770
|
mode: options.mode
|
|
57785
57771
|
}), options.resolve);
|
|
@@ -58241,7 +58227,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
58241
58227
|
});
|
|
58242
58228
|
D(output, 'bundlerInfo', {});
|
|
58243
58229
|
if ('object' == typeof output.bundlerInfo) {
|
|
58244
|
-
D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
58230
|
+
D(output.bundlerInfo, 'version', "2.0.0-beta.8");
|
|
58245
58231
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
58246
58232
|
D(output.bundlerInfo, 'force', !output.library);
|
|
58247
58233
|
}
|
|
@@ -58294,7 +58280,6 @@ const applyPerformanceDefaults = (performance, { production })=>{
|
|
|
58294
58280
|
F(performance, 'hints', ()=>production ? 'warning' : false);
|
|
58295
58281
|
};
|
|
58296
58282
|
const applyOptimizationDefaults = (optimization, { production, development })=>{
|
|
58297
|
-
D(optimization, 'removeAvailableModules', true);
|
|
58298
58283
|
D(optimization, 'removeEmptyChunks', true);
|
|
58299
58284
|
D(optimization, 'mergeDuplicateChunks', true);
|
|
58300
58285
|
F(optimization, 'moduleIds', ()=>{
|
|
@@ -58383,7 +58368,7 @@ const getResolveLoaderDefaults = ()=>{
|
|
|
58383
58368
|
};
|
|
58384
58369
|
return resolveOptions;
|
|
58385
58370
|
};
|
|
58386
|
-
const getResolveDefaults = ({
|
|
58371
|
+
const getResolveDefaults = ({ targetProperties, mode })=>{
|
|
58387
58372
|
const conditions = [
|
|
58388
58373
|
'webpack'
|
|
58389
58374
|
];
|
|
@@ -58397,8 +58382,7 @@ const getResolveDefaults = ({ context, targetProperties, mode })=>{
|
|
|
58397
58382
|
}
|
|
58398
58383
|
const jsExtensions = [
|
|
58399
58384
|
'.js',
|
|
58400
|
-
'.json'
|
|
58401
|
-
'.wasm'
|
|
58385
|
+
'.json'
|
|
58402
58386
|
];
|
|
58403
58387
|
const tp = targetProperties;
|
|
58404
58388
|
const browserField = tp && tp.web && (!tp.node || tp.electron && tp.electronRenderer);
|
|
@@ -58451,9 +58435,7 @@ const getResolveDefaults = ({ context, targetProperties, mode })=>{
|
|
|
58451
58435
|
exportsFields: [
|
|
58452
58436
|
'exports'
|
|
58453
58437
|
],
|
|
58454
|
-
roots: [
|
|
58455
|
-
context
|
|
58456
|
-
],
|
|
58438
|
+
roots: [],
|
|
58457
58439
|
mainFields: [
|
|
58458
58440
|
'main'
|
|
58459
58441
|
],
|
|
@@ -58477,17 +58459,16 @@ const getResolveDefaults = ({ context, targetProperties, mode })=>{
|
|
|
58477
58459
|
unknown: cjsDeps()
|
|
58478
58460
|
}
|
|
58479
58461
|
};
|
|
58480
|
-
const styleConditions = [];
|
|
58481
|
-
styleConditions.push('webpack');
|
|
58482
|
-
styleConditions.push('development' === mode ? 'development' : 'production');
|
|
58483
|
-
styleConditions.push('style');
|
|
58484
58462
|
resolveOptions.byDependency['css-import'] = {
|
|
58485
58463
|
mainFiles: [],
|
|
58486
58464
|
mainFields: [
|
|
58487
58465
|
'style',
|
|
58488
58466
|
'...'
|
|
58489
58467
|
],
|
|
58490
|
-
conditionNames:
|
|
58468
|
+
conditionNames: [
|
|
58469
|
+
'development' === mode ? 'development' : 'production',
|
|
58470
|
+
'style'
|
|
58471
|
+
],
|
|
58491
58472
|
extensions: [
|
|
58492
58473
|
'.css'
|
|
58493
58474
|
],
|
|
@@ -59281,13 +59262,13 @@ class ThreadsafeInputNodeFS {
|
|
|
59281
59262
|
Object.assign(this, NOOP_FILESYSTEM);
|
|
59282
59263
|
if (!fs) return;
|
|
59283
59264
|
this.readDir = memoizeFn(()=>{
|
|
59284
|
-
const readDirFn =
|
|
59265
|
+
const readDirFn = util_util_default().promisify(fs.readdir.bind(fs));
|
|
59285
59266
|
return async (filePath)=>{
|
|
59286
59267
|
const res = await readDirFn(filePath);
|
|
59287
59268
|
return res;
|
|
59288
59269
|
};
|
|
59289
59270
|
});
|
|
59290
|
-
this.readFile = memoizeFn(()=>
|
|
59271
|
+
this.readFile = memoizeFn(()=>util_util_default().promisify(fs.readFile.bind(fs)));
|
|
59291
59272
|
this.stat = memoizeFn(()=>(name)=>new Promise((resolve, reject)=>{
|
|
59292
59273
|
fs.stat(name, (err, stats)=>{
|
|
59293
59274
|
if (err) return reject(err);
|
|
@@ -59338,34 +59319,34 @@ class ThreadsafeOutputNodeFS {
|
|
|
59338
59319
|
constructor(fs){
|
|
59339
59320
|
Object.assign(this, NOOP_FILESYSTEM);
|
|
59340
59321
|
if (!fs) return;
|
|
59341
|
-
this.writeFile = memoizeFn(()=>
|
|
59342
|
-
this.removeFile = memoizeFn(()=>
|
|
59343
|
-
this.mkdir = memoizeFn(()=>
|
|
59344
|
-
this.mkdirp = memoizeFn(()=>
|
|
59345
|
-
this.removeDirAll = memoizeFn(()=>
|
|
59322
|
+
this.writeFile = memoizeFn(()=>util_util_default().promisify(fs.writeFile.bind(fs)));
|
|
59323
|
+
this.removeFile = memoizeFn(()=>util_util_default().promisify(fs.unlink.bind(fs)));
|
|
59324
|
+
this.mkdir = memoizeFn(()=>util_util_default().promisify(fs.mkdir.bind(fs)));
|
|
59325
|
+
this.mkdirp = memoizeFn(()=>util_util_default().promisify(mkdirp.bind(null, fs)));
|
|
59326
|
+
this.removeDirAll = memoizeFn(()=>util_util_default().promisify(rmrf.bind(null, fs)));
|
|
59346
59327
|
this.readDir = memoizeFn(()=>{
|
|
59347
|
-
const readDirFn =
|
|
59328
|
+
const readDirFn = util_util_default().promisify(fs.readdir.bind(fs));
|
|
59348
59329
|
return async (filePath)=>{
|
|
59349
59330
|
const res = await readDirFn(filePath);
|
|
59350
59331
|
return res;
|
|
59351
59332
|
};
|
|
59352
59333
|
});
|
|
59353
|
-
this.readFile = memoizeFn(()=>
|
|
59334
|
+
this.readFile = memoizeFn(()=>util_util_default().promisify(fs.readFile.bind(fs)));
|
|
59354
59335
|
this.stat = memoizeFn(()=>{
|
|
59355
|
-
const statFn =
|
|
59336
|
+
const statFn = util_util_default().promisify(fs.stat.bind(fs));
|
|
59356
59337
|
return async (filePath)=>{
|
|
59357
59338
|
const res = await statFn(filePath);
|
|
59358
59339
|
return res && __to_binding_stat(res);
|
|
59359
59340
|
};
|
|
59360
59341
|
});
|
|
59361
59342
|
this.lstat = memoizeFn(()=>{
|
|
59362
|
-
const statFn =
|
|
59343
|
+
const statFn = util_util_default().promisify((fs.lstat || fs.stat).bind(fs));
|
|
59363
59344
|
return async (filePath)=>{
|
|
59364
59345
|
const res = await statFn(filePath);
|
|
59365
59346
|
return res && __to_binding_stat(res);
|
|
59366
59347
|
};
|
|
59367
59348
|
});
|
|
59368
|
-
this.chmod = memoizeFn(()=>
|
|
59349
|
+
this.chmod = memoizeFn(()=>util_util_default().promisify(fs.chmod.bind(fs)));
|
|
59369
59350
|
}
|
|
59370
59351
|
static __to_binding(fs) {
|
|
59371
59352
|
return new this(fs);
|
|
@@ -59375,17 +59356,17 @@ class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
|
|
|
59375
59356
|
constructor(fs){
|
|
59376
59357
|
super(fs);
|
|
59377
59358
|
if (!fs) return;
|
|
59378
|
-
this.open = memoizeFn(()=>
|
|
59379
|
-
this.rename = memoizeFn(()=>
|
|
59380
|
-
this.close = memoizeFn(()=>
|
|
59359
|
+
this.open = memoizeFn(()=>util_util_default().promisify(fs.open.bind(fs)));
|
|
59360
|
+
this.rename = memoizeFn(()=>util_util_default().promisify(fs.rename.bind(fs)));
|
|
59361
|
+
this.close = memoizeFn(()=>util_util_default().promisify(fs.close.bind(fs)));
|
|
59381
59362
|
this.write = memoizeFn(()=>{
|
|
59382
|
-
const writeFn =
|
|
59363
|
+
const writeFn = util_util_default().promisify(fs.write.bind(fs));
|
|
59383
59364
|
return async (fd, content, position)=>writeFn(fd, content, {
|
|
59384
59365
|
position
|
|
59385
59366
|
});
|
|
59386
59367
|
});
|
|
59387
59368
|
this.writeAll = memoizeFn(()=>{
|
|
59388
|
-
const writeFn =
|
|
59369
|
+
const writeFn = util_util_default().promisify(fs.writeFile.bind(fs));
|
|
59389
59370
|
return async (fd, content)=>writeFn(fd, content);
|
|
59390
59371
|
});
|
|
59391
59372
|
this.read = memoizeFn(()=>{
|
|
@@ -59800,7 +59781,7 @@ class ResolverFactory {
|
|
|
59800
59781
|
return resolver_factory.#binding;
|
|
59801
59782
|
}
|
|
59802
59783
|
constructor(pnp, resolveOptions, loaderResolveOptions){
|
|
59803
|
-
this.#binding = new
|
|
59784
|
+
this.#binding = new rspack_wasi_browser.JsResolverFactory(pnp, getRawResolve(resolveOptions), getRawResolve(loaderResolveOptions));
|
|
59804
59785
|
}
|
|
59805
59786
|
#create(type, resolveOptionsWithDepType) {
|
|
59806
59787
|
const { dependencyType, resolveToContext, ...resolve } = resolveOptionsWithDepType;
|
|
@@ -59903,7 +59884,7 @@ class MultiStats {
|
|
|
59903
59884
|
return obj;
|
|
59904
59885
|
});
|
|
59905
59886
|
if (childOptions.version) {
|
|
59906
|
-
obj.rspackVersion = "2.0.0-beta.
|
|
59887
|
+
obj.rspackVersion = "2.0.0-beta.8";
|
|
59907
59888
|
obj.version = "5.75.0";
|
|
59908
59889
|
}
|
|
59909
59890
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -60514,7 +60495,7 @@ class NativeWatchFileSystem {
|
|
|
60514
60495
|
pollInterval: 'boolean' == typeof options.poll ? 0 : options.poll,
|
|
60515
60496
|
ignored: toJsWatcherIgnored(options.ignored)
|
|
60516
60497
|
};
|
|
60517
|
-
const nativeWatcher = new
|
|
60498
|
+
const nativeWatcher = new rspack_wasi_browser.NativeWatcher(nativeWatcherOptions);
|
|
60518
60499
|
this.#inner = nativeWatcher;
|
|
60519
60500
|
return nativeWatcher;
|
|
60520
60501
|
}
|
|
@@ -60590,7 +60571,7 @@ class NodeWatchFileSystem {
|
|
|
60590
60571
|
pause: ()=>{
|
|
60591
60572
|
if (this.watcher) this.watcher.pause();
|
|
60592
60573
|
},
|
|
60593
|
-
getAggregatedRemovals:
|
|
60574
|
+
getAggregatedRemovals: util_util_default().deprecate(()=>{
|
|
60594
60575
|
const items = this.watcher?.aggregatedRemovals;
|
|
60595
60576
|
if (items && this.inputFileSystem?.purge) {
|
|
60596
60577
|
const fs = this.inputFileSystem;
|
|
@@ -60598,7 +60579,7 @@ class NodeWatchFileSystem {
|
|
|
60598
60579
|
}
|
|
60599
60580
|
return items ?? new Set();
|
|
60600
60581
|
}, "Watcher.getAggregatedRemovals is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_GET_AGGREGATED_REMOVALS'),
|
|
60601
|
-
getAggregatedChanges:
|
|
60582
|
+
getAggregatedChanges: util_util_default().deprecate(()=>{
|
|
60602
60583
|
const items = this.watcher?.aggregatedChanges;
|
|
60603
60584
|
if (items && this.inputFileSystem?.purge) {
|
|
60604
60585
|
const fs = this.inputFileSystem;
|
|
@@ -60606,8 +60587,8 @@ class NodeWatchFileSystem {
|
|
|
60606
60587
|
}
|
|
60607
60588
|
return items ?? new Set();
|
|
60608
60589
|
}, "Watcher.getAggregatedChanges is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_GET_AGGREGATED_CHANGES'),
|
|
60609
|
-
getFileTimeInfoEntries:
|
|
60610
|
-
getContextTimeInfoEntries:
|
|
60590
|
+
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'),
|
|
60591
|
+
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'),
|
|
60611
60592
|
getInfo: ()=>{
|
|
60612
60593
|
const removals = this.watcher?.aggregatedRemovals ?? new Set();
|
|
60613
60594
|
const changes = this.watcher?.aggregatedChanges ?? new Set();
|
|
@@ -60703,7 +60684,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
60703
60684
|
const writeColored = (prefix, colorPrefix, colorSuffix)=>(...args)=>{
|
|
60704
60685
|
if (currentCollapsed > 0) return;
|
|
60705
60686
|
clearStatusMessage();
|
|
60706
|
-
const str = indent(
|
|
60687
|
+
const str = indent(util_util.format(...args), prefix, colorPrefix, colorSuffix);
|
|
60707
60688
|
stream.write(`${str}\n`);
|
|
60708
60689
|
writeStatusMessage();
|
|
60709
60690
|
};
|
|
@@ -60763,7 +60744,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
60763
60744
|
}
|
|
60764
60745
|
};
|
|
60765
60746
|
}
|
|
60766
|
-
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.
|
|
60747
|
+
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
60767
60748
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
60768
60749
|
class NodeEnvironmentPlugin {
|
|
60769
60750
|
options;
|
|
@@ -60845,7 +60826,7 @@ class IgnoreWarningsPlugin {
|
|
|
60845
60826
|
compilation.hooks.processWarnings.tap(this.name, (warnings)=>warnings.filter((warning)=>{
|
|
60846
60827
|
const plainWarning = warning.message ? {
|
|
60847
60828
|
...warning,
|
|
60848
|
-
message:
|
|
60829
|
+
message: util_util_default().stripVTControlCharacters(warning.message)
|
|
60849
60830
|
} : warning;
|
|
60850
60831
|
return !this._ignorePattern.some((ignore)=>ignore(plainWarning, compilation));
|
|
60851
60832
|
}));
|
|
@@ -61560,7 +61541,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61560
61541
|
const [label, first, second] = entry.args;
|
|
61561
61542
|
if ('number' == typeof first && 'number' == typeof second) message = `${label}: ${1000 * first + second / 1000000} ms`;
|
|
61562
61543
|
}
|
|
61563
|
-
if (!message) message = entry.args?.length ?
|
|
61544
|
+
if (!message) message = entry.args?.length ? util_util.format(entry.args[0], ...entry.args.slice(1)) : '';
|
|
61564
61545
|
const newEntry = {
|
|
61565
61546
|
type,
|
|
61566
61547
|
message: message || '',
|
|
@@ -61589,7 +61570,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61589
61570
|
},
|
|
61590
61571
|
version: (object)=>{
|
|
61591
61572
|
object.version = "5.75.0";
|
|
61592
|
-
object.rspackVersion = "2.0.0-beta.
|
|
61573
|
+
object.rspackVersion = "2.0.0-beta.8";
|
|
61593
61574
|
},
|
|
61594
61575
|
env: (object, _compilation, _context, { _env })=>{
|
|
61595
61576
|
object.env = _env;
|
|
@@ -63174,17 +63155,20 @@ class RspackOptionsApply {
|
|
|
63174
63155
|
if (options.optimization.mangleExports) new MangleExportsPlugin('size' !== options.optimization.mangleExports).apply(compiler);
|
|
63175
63156
|
let enableLibSplitChunks = false;
|
|
63176
63157
|
if (options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) {
|
|
63177
|
-
|
|
63178
|
-
|
|
63179
|
-
if (options.output.library?.preserveModules &&
|
|
63180
|
-
|
|
63181
|
-
|
|
63182
|
-
|
|
63183
|
-
|
|
63184
|
-
|
|
63185
|
-
|
|
63186
|
-
|
|
63187
|
-
|
|
63158
|
+
const hasModernModule = options.output.enabledLibraryTypes.includes('modern-module');
|
|
63159
|
+
const hasNonModernModule = options.output.enabledLibraryTypes.some((t)=>'modern-module' !== t);
|
|
63160
|
+
if (options.output.library?.preserveModules && !hasModernModule) {
|
|
63161
|
+
const logger = compiler.getInfrastructureLogger('rspack.RspackOptionsApply');
|
|
63162
|
+
logger.warn('`preserveModules` only works for `modern-module` library type and will be ignored for other library types.');
|
|
63163
|
+
}
|
|
63164
|
+
if (hasModernModule && hasNonModernModule) {
|
|
63165
|
+
const logger = compiler.getInfrastructureLogger('rspack.RspackOptionsApply');
|
|
63166
|
+
logger.warn('`modern-module` is used together with other library types. ESM format has impact on chunkLoading and chunkFormat, which may not be compatible with other library types.');
|
|
63167
|
+
}
|
|
63168
|
+
for (const type of options.output.enabledLibraryTypes){
|
|
63169
|
+
if ('modern-module' === type) enableLibSplitChunks = true;
|
|
63170
|
+
new EnableLibraryPlugin(type).apply(compiler);
|
|
63171
|
+
}
|
|
63188
63172
|
}
|
|
63189
63173
|
if (!enableLibSplitChunks && options.optimization.splitChunks) new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler);
|
|
63190
63174
|
if (options.optimization.removeEmptyChunks) new RemoveEmptyChunksPlugin().apply(compiler);
|
|
@@ -63376,7 +63360,7 @@ function rspack_rspack(options, callback) {
|
|
|
63376
63360
|
const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
63377
63361
|
const getOptions = (uid)=>getPluginOptions(getCompiler().__internal__get_compilation(), uid);
|
|
63378
63362
|
return {
|
|
63379
|
-
registerHtmlPluginBeforeAssetTagGenerationTaps: createTap(
|
|
63363
|
+
registerHtmlPluginBeforeAssetTagGenerationTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginBeforeAssetTagGeneration, function() {
|
|
63380
63364
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeAssetTagGeneration;
|
|
63381
63365
|
}, function(queried) {
|
|
63382
63366
|
return async function(data) {
|
|
@@ -63392,7 +63376,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63392
63376
|
return res;
|
|
63393
63377
|
};
|
|
63394
63378
|
}),
|
|
63395
|
-
registerHtmlPluginAlterAssetTagsTaps: createTap(
|
|
63379
|
+
registerHtmlPluginAlterAssetTagsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAlterAssetTags, function() {
|
|
63396
63380
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTags;
|
|
63397
63381
|
}, function(queried) {
|
|
63398
63382
|
return async function(data) {
|
|
@@ -63408,7 +63392,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63408
63392
|
return res;
|
|
63409
63393
|
};
|
|
63410
63394
|
}),
|
|
63411
|
-
registerHtmlPluginAlterAssetTagGroupsTaps: createTap(
|
|
63395
|
+
registerHtmlPluginAlterAssetTagGroupsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAlterAssetTagGroups, function() {
|
|
63412
63396
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTagGroups;
|
|
63413
63397
|
}, function(queried) {
|
|
63414
63398
|
return async function(data) {
|
|
@@ -63424,7 +63408,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63424
63408
|
return res;
|
|
63425
63409
|
};
|
|
63426
63410
|
}),
|
|
63427
|
-
registerHtmlPluginAfterTemplateExecutionTaps: createTap(
|
|
63411
|
+
registerHtmlPluginAfterTemplateExecutionTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAfterTemplateExecution, function() {
|
|
63428
63412
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterTemplateExecution;
|
|
63429
63413
|
}, function(queried) {
|
|
63430
63414
|
return async function(data) {
|
|
@@ -63439,7 +63423,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63439
63423
|
return res;
|
|
63440
63424
|
};
|
|
63441
63425
|
}),
|
|
63442
|
-
registerHtmlPluginBeforeEmitTaps: createTap(
|
|
63426
|
+
registerHtmlPluginBeforeEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginBeforeEmit, function() {
|
|
63443
63427
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeEmit;
|
|
63444
63428
|
}, function(queried) {
|
|
63445
63429
|
return async function(data) {
|
|
@@ -63455,7 +63439,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63455
63439
|
return res;
|
|
63456
63440
|
};
|
|
63457
63441
|
}),
|
|
63458
|
-
registerHtmlPluginAfterEmitTaps: createTap(
|
|
63442
|
+
registerHtmlPluginAfterEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAfterEmit, function() {
|
|
63459
63443
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterEmit;
|
|
63460
63444
|
}, function(queried) {
|
|
63461
63445
|
return async function(data) {
|
|
@@ -63484,7 +63468,7 @@ class CodeGenerationResult {
|
|
|
63484
63468
|
}
|
|
63485
63469
|
}
|
|
63486
63470
|
const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>({
|
|
63487
|
-
registerCompilationAdditionalTreeRuntimeRequirementsTaps: createTap(
|
|
63471
|
+
registerCompilationAdditionalTreeRuntimeRequirementsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAdditionalTreeRuntimeRequirements, function() {
|
|
63488
63472
|
return getCompiler().__internal__get_compilation().hooks.additionalTreeRuntimeRequirements;
|
|
63489
63473
|
}, function(queried) {
|
|
63490
63474
|
return function({ chunk, runtimeRequirements }) {
|
|
@@ -63495,7 +63479,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63495
63479
|
};
|
|
63496
63480
|
};
|
|
63497
63481
|
}),
|
|
63498
|
-
registerCompilationRuntimeRequirementInTreeTaps: createMapTap(
|
|
63482
|
+
registerCompilationRuntimeRequirementInTreeTaps: createMapTap(rspack_wasi_browser.RegisterJsTapKind.CompilationRuntimeRequirementInTree, function() {
|
|
63499
63483
|
return getCompiler().__internal__get_compilation().hooks.runtimeRequirementInTree;
|
|
63500
63484
|
}, function(queried) {
|
|
63501
63485
|
return function({ chunk, allRuntimeRequirements, runtimeRequirements }) {
|
|
@@ -63517,7 +63501,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63517
63501
|
};
|
|
63518
63502
|
};
|
|
63519
63503
|
}),
|
|
63520
|
-
registerCompilationRuntimeModuleTaps: createTap(
|
|
63504
|
+
registerCompilationRuntimeModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationRuntimeModule, function() {
|
|
63521
63505
|
return getCompiler().__internal__get_compilation().hooks.runtimeModule;
|
|
63522
63506
|
}, function(queried) {
|
|
63523
63507
|
return function({ module, chunk }) {
|
|
@@ -63530,28 +63514,28 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63530
63514
|
if (newSource && newSource !== originSource) return module;
|
|
63531
63515
|
};
|
|
63532
63516
|
}),
|
|
63533
|
-
registerCompilationBuildModuleTaps: createTap(
|
|
63517
|
+
registerCompilationBuildModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationBuildModule, function() {
|
|
63534
63518
|
return getCompiler().__internal__get_compilation().hooks.buildModule;
|
|
63535
63519
|
}, function(queried) {
|
|
63536
63520
|
return function(module) {
|
|
63537
63521
|
return queried.call(module);
|
|
63538
63522
|
};
|
|
63539
63523
|
}),
|
|
63540
|
-
registerCompilationStillValidModuleTaps: createTap(
|
|
63524
|
+
registerCompilationStillValidModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationStillValidModule, function() {
|
|
63541
63525
|
return getCompiler().__internal__get_compilation().hooks.stillValidModule;
|
|
63542
63526
|
}, function(queried) {
|
|
63543
63527
|
return function(module) {
|
|
63544
63528
|
return queried.call(module);
|
|
63545
63529
|
};
|
|
63546
63530
|
}),
|
|
63547
|
-
registerCompilationSucceedModuleTaps: createTap(
|
|
63531
|
+
registerCompilationSucceedModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationSucceedModule, function() {
|
|
63548
63532
|
return getCompiler().__internal__get_compilation().hooks.succeedModule;
|
|
63549
63533
|
}, function(queried) {
|
|
63550
63534
|
return function(module) {
|
|
63551
63535
|
return queried.call(module);
|
|
63552
63536
|
};
|
|
63553
63537
|
}),
|
|
63554
|
-
registerCompilationExecuteModuleTaps: createTap(
|
|
63538
|
+
registerCompilationExecuteModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationExecuteModule, function() {
|
|
63555
63539
|
return getCompiler().__internal__get_compilation().hooks.executeModule;
|
|
63556
63540
|
}, function(queried) {
|
|
63557
63541
|
return function({ entry, id, codegenResults, runtimeModules }) {
|
|
@@ -63597,42 +63581,42 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63597
63581
|
}
|
|
63598
63582
|
};
|
|
63599
63583
|
}),
|
|
63600
|
-
registerCompilationFinishModulesTaps: createTap(
|
|
63584
|
+
registerCompilationFinishModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationFinishModules, function() {
|
|
63601
63585
|
return getCompiler().__internal__get_compilation().hooks.finishModules;
|
|
63602
63586
|
}, function(queried) {
|
|
63603
63587
|
return async function() {
|
|
63604
63588
|
return queried.promise(getCompiler().__internal__get_compilation().modules);
|
|
63605
63589
|
};
|
|
63606
63590
|
}),
|
|
63607
|
-
registerCompilationOptimizeModulesTaps: createTap(
|
|
63591
|
+
registerCompilationOptimizeModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationOptimizeModules, function() {
|
|
63608
63592
|
return getCompiler().__internal__get_compilation().hooks.optimizeModules;
|
|
63609
63593
|
}, function(queried) {
|
|
63610
63594
|
return function() {
|
|
63611
63595
|
return queried.call(getCompiler().__internal__get_compilation().modules.values());
|
|
63612
63596
|
};
|
|
63613
63597
|
}),
|
|
63614
|
-
registerCompilationAfterOptimizeModulesTaps: createTap(
|
|
63598
|
+
registerCompilationAfterOptimizeModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAfterOptimizeModules, function() {
|
|
63615
63599
|
return getCompiler().__internal__get_compilation().hooks.afterOptimizeModules;
|
|
63616
63600
|
}, function(queried) {
|
|
63617
63601
|
return function() {
|
|
63618
63602
|
queried.call(getCompiler().__internal__get_compilation().modules.values());
|
|
63619
63603
|
};
|
|
63620
63604
|
}),
|
|
63621
|
-
registerCompilationOptimizeTreeTaps: createTap(
|
|
63605
|
+
registerCompilationOptimizeTreeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationOptimizeTree, function() {
|
|
63622
63606
|
return getCompiler().__internal__get_compilation().hooks.optimizeTree;
|
|
63623
63607
|
}, function(queried) {
|
|
63624
63608
|
return async function() {
|
|
63625
63609
|
return queried.promise(getCompiler().__internal__get_compilation().chunks, getCompiler().__internal__get_compilation().modules);
|
|
63626
63610
|
};
|
|
63627
63611
|
}),
|
|
63628
|
-
registerCompilationOptimizeChunkModulesTaps: createTap(
|
|
63612
|
+
registerCompilationOptimizeChunkModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationOptimizeChunkModules, function() {
|
|
63629
63613
|
return getCompiler().__internal__get_compilation().hooks.optimizeChunkModules;
|
|
63630
63614
|
}, function(queried) {
|
|
63631
63615
|
return async function() {
|
|
63632
63616
|
return queried.promise(getCompiler().__internal__get_compilation().chunks, getCompiler().__internal__get_compilation().modules);
|
|
63633
63617
|
};
|
|
63634
63618
|
}),
|
|
63635
|
-
registerCompilationBeforeModuleIdsTaps: createTap(
|
|
63619
|
+
registerCompilationBeforeModuleIdsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationBeforeModuleIds, function() {
|
|
63636
63620
|
return getCompiler().__internal__get_compilation().hooks.beforeModuleIds;
|
|
63637
63621
|
}, function(queried) {
|
|
63638
63622
|
return function(arg) {
|
|
@@ -63667,7 +63651,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63667
63651
|
};
|
|
63668
63652
|
};
|
|
63669
63653
|
}),
|
|
63670
|
-
registerCompilationChunkHashTaps: createTap(
|
|
63654
|
+
registerCompilationChunkHashTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationChunkHash, function() {
|
|
63671
63655
|
return getCompiler().__internal__get_compilation().hooks.chunkHash;
|
|
63672
63656
|
}, function(queried) {
|
|
63673
63657
|
return function(chunk) {
|
|
@@ -63679,35 +63663,35 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63679
63663
|
return 'string' == typeof digestResult ? compilation_Buffer.from(digestResult) : digestResult;
|
|
63680
63664
|
};
|
|
63681
63665
|
}),
|
|
63682
|
-
registerCompilationChunkAssetTaps: createTap(
|
|
63666
|
+
registerCompilationChunkAssetTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationChunkAsset, function() {
|
|
63683
63667
|
return getCompiler().__internal__get_compilation().hooks.chunkAsset;
|
|
63684
63668
|
}, function(queried) {
|
|
63685
63669
|
return function({ chunk, filename }) {
|
|
63686
63670
|
return queried.call(chunk, filename);
|
|
63687
63671
|
};
|
|
63688
63672
|
}),
|
|
63689
|
-
registerCompilationProcessAssetsTaps: createTap(
|
|
63673
|
+
registerCompilationProcessAssetsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationProcessAssets, function() {
|
|
63690
63674
|
return getCompiler().__internal__get_compilation().hooks.processAssets;
|
|
63691
63675
|
}, function(queried) {
|
|
63692
63676
|
return async function() {
|
|
63693
63677
|
return queried.promise(getCompiler().__internal__get_compilation().assets);
|
|
63694
63678
|
};
|
|
63695
63679
|
}),
|
|
63696
|
-
registerCompilationAfterProcessAssetsTaps: createTap(
|
|
63680
|
+
registerCompilationAfterProcessAssetsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAfterProcessAssets, function() {
|
|
63697
63681
|
return getCompiler().__internal__get_compilation().hooks.afterProcessAssets;
|
|
63698
63682
|
}, function(queried) {
|
|
63699
63683
|
return function() {
|
|
63700
63684
|
return queried.call(getCompiler().__internal__get_compilation().assets);
|
|
63701
63685
|
};
|
|
63702
63686
|
}),
|
|
63703
|
-
registerCompilationSealTaps: createTap(
|
|
63687
|
+
registerCompilationSealTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationSeal, function() {
|
|
63704
63688
|
return getCompiler().__internal__get_compilation().hooks.seal;
|
|
63705
63689
|
}, function(queried) {
|
|
63706
63690
|
return function() {
|
|
63707
63691
|
return queried.call();
|
|
63708
63692
|
};
|
|
63709
63693
|
}),
|
|
63710
|
-
registerCompilationAfterSealTaps: createTap(
|
|
63694
|
+
registerCompilationAfterSealTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAfterSeal, function() {
|
|
63711
63695
|
return getCompiler().__internal__get_compilation().hooks.afterSeal;
|
|
63712
63696
|
}, function(queried) {
|
|
63713
63697
|
return async function() {
|
|
@@ -63716,7 +63700,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63716
63700
|
})
|
|
63717
63701
|
});
|
|
63718
63702
|
const createCompilerHooksRegisters = (getCompiler, createTap)=>({
|
|
63719
|
-
registerCompilerThisCompilationTaps: createTap(
|
|
63703
|
+
registerCompilerThisCompilationTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerThisCompilation, function() {
|
|
63720
63704
|
return getCompiler().hooks.thisCompilation;
|
|
63721
63705
|
}, function(queried) {
|
|
63722
63706
|
return function(native) {
|
|
@@ -63724,49 +63708,49 @@ const createCompilerHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63724
63708
|
return queried.call(getCompiler().__internal__get_compilation(), getCompiler().__internal__get_compilation_params());
|
|
63725
63709
|
};
|
|
63726
63710
|
}),
|
|
63727
|
-
registerCompilerCompilationTaps: createTap(
|
|
63711
|
+
registerCompilerCompilationTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerCompilation, function() {
|
|
63728
63712
|
return getCompiler().hooks.compilation;
|
|
63729
63713
|
}, function(queried) {
|
|
63730
63714
|
return function() {
|
|
63731
63715
|
return queried.call(getCompiler().__internal__get_compilation(), getCompiler().__internal__get_compilation_params());
|
|
63732
63716
|
};
|
|
63733
63717
|
}),
|
|
63734
|
-
registerCompilerMakeTaps: createTap(
|
|
63718
|
+
registerCompilerMakeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerMake, function() {
|
|
63735
63719
|
return getCompiler().hooks.make;
|
|
63736
63720
|
}, function(queried) {
|
|
63737
63721
|
return async function() {
|
|
63738
63722
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63739
63723
|
};
|
|
63740
63724
|
}),
|
|
63741
|
-
registerCompilerFinishMakeTaps: createTap(
|
|
63725
|
+
registerCompilerFinishMakeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerFinishMake, function() {
|
|
63742
63726
|
return getCompiler().hooks.finishMake;
|
|
63743
63727
|
}, function(queried) {
|
|
63744
63728
|
return async function() {
|
|
63745
63729
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63746
63730
|
};
|
|
63747
63731
|
}),
|
|
63748
|
-
registerCompilerShouldEmitTaps: createTap(
|
|
63732
|
+
registerCompilerShouldEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerShouldEmit, function() {
|
|
63749
63733
|
return getCompiler().hooks.shouldEmit;
|
|
63750
63734
|
}, function(queried) {
|
|
63751
63735
|
return function() {
|
|
63752
63736
|
return queried.call(getCompiler().__internal__get_compilation());
|
|
63753
63737
|
};
|
|
63754
63738
|
}),
|
|
63755
|
-
registerCompilerEmitTaps: createTap(
|
|
63739
|
+
registerCompilerEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerEmit, function() {
|
|
63756
63740
|
return getCompiler().hooks.emit;
|
|
63757
63741
|
}, function(queried) {
|
|
63758
63742
|
return async function() {
|
|
63759
63743
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63760
63744
|
};
|
|
63761
63745
|
}),
|
|
63762
|
-
registerCompilerAfterEmitTaps: createTap(
|
|
63746
|
+
registerCompilerAfterEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerAfterEmit, function() {
|
|
63763
63747
|
return getCompiler().hooks.afterEmit;
|
|
63764
63748
|
}, function(queried) {
|
|
63765
63749
|
return async function() {
|
|
63766
63750
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63767
63751
|
};
|
|
63768
63752
|
}),
|
|
63769
|
-
registerCompilerAssetEmittedTaps: createTap(
|
|
63753
|
+
registerCompilerAssetEmittedTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerAssetEmitted, function() {
|
|
63770
63754
|
return getCompiler().hooks.assetEmitted;
|
|
63771
63755
|
}, function(queried) {
|
|
63772
63756
|
return async function({ filename, targetPath, outputPath }) {
|
|
@@ -63901,14 +63885,14 @@ class ContextModuleFactoryAfterResolveData {
|
|
|
63901
63885
|
});
|
|
63902
63886
|
}
|
|
63903
63887
|
}
|
|
63904
|
-
Object.defineProperty(
|
|
63888
|
+
Object.defineProperty(rspack_wasi_browser.Module.prototype, 'identifier', {
|
|
63905
63889
|
enumerable: true,
|
|
63906
63890
|
configurable: true,
|
|
63907
63891
|
value () {
|
|
63908
|
-
return this[
|
|
63892
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
63909
63893
|
}
|
|
63910
63894
|
});
|
|
63911
|
-
Object.defineProperty(
|
|
63895
|
+
Object.defineProperty(rspack_wasi_browser.Module.prototype, 'originalSource', {
|
|
63912
63896
|
enumerable: true,
|
|
63913
63897
|
configurable: true,
|
|
63914
63898
|
value () {
|
|
@@ -63917,7 +63901,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].Module.prototy
|
|
|
63917
63901
|
return null;
|
|
63918
63902
|
}
|
|
63919
63903
|
});
|
|
63920
|
-
Object.defineProperty(
|
|
63904
|
+
Object.defineProperty(rspack_wasi_browser.Module.prototype, 'emitFile', {
|
|
63921
63905
|
enumerable: true,
|
|
63922
63906
|
configurable: true,
|
|
63923
63907
|
value (filename, source, assetInfo) {
|
|
@@ -63925,7 +63909,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].Module.prototy
|
|
|
63925
63909
|
}
|
|
63926
63910
|
});
|
|
63927
63911
|
const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
63928
|
-
registerContextModuleFactoryBeforeResolveTaps: createTap(
|
|
63912
|
+
registerContextModuleFactoryBeforeResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.ContextModuleFactoryBeforeResolve, function() {
|
|
63929
63913
|
return getCompiler().__internal__get_compilation_params().contextModuleFactory.hooks.beforeResolve;
|
|
63930
63914
|
}, function(queried) {
|
|
63931
63915
|
return async function(bindingData) {
|
|
@@ -63934,7 +63918,7 @@ const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63934
63918
|
return result ? ContextModuleFactoryBeforeResolveData.__to_binding(result) : false;
|
|
63935
63919
|
};
|
|
63936
63920
|
}),
|
|
63937
|
-
registerContextModuleFactoryAfterResolveTaps: createTap(
|
|
63921
|
+
registerContextModuleFactoryAfterResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.ContextModuleFactoryAfterResolve, function() {
|
|
63938
63922
|
return getCompiler().__internal__get_compilation_params().contextModuleFactory.hooks.afterResolve;
|
|
63939
63923
|
}, function(queried) {
|
|
63940
63924
|
return async function(bindingData) {
|
|
@@ -63946,7 +63930,7 @@ const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63946
63930
|
});
|
|
63947
63931
|
var javascriptModules_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
63948
63932
|
const createJavaScriptModulesHooksRegisters = (getCompiler, createTap)=>({
|
|
63949
|
-
registerJavascriptModulesChunkHashTaps: createTap(
|
|
63933
|
+
registerJavascriptModulesChunkHashTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.JavascriptModulesChunkHash, function() {
|
|
63950
63934
|
return JavascriptModulesPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).chunkHash;
|
|
63951
63935
|
}, function(queried) {
|
|
63952
63936
|
return function(chunk) {
|
|
@@ -63960,7 +63944,7 @@ const createJavaScriptModulesHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63960
63944
|
})
|
|
63961
63945
|
});
|
|
63962
63946
|
const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createMapTap)=>({
|
|
63963
|
-
registerNormalModuleFactoryBeforeResolveTaps: createTap(
|
|
63947
|
+
registerNormalModuleFactoryBeforeResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryBeforeResolve, function() {
|
|
63964
63948
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.beforeResolve;
|
|
63965
63949
|
}, function(queried) {
|
|
63966
63950
|
return async function(resolveData) {
|
|
@@ -63971,7 +63955,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63971
63955
|
];
|
|
63972
63956
|
};
|
|
63973
63957
|
}),
|
|
63974
|
-
registerNormalModuleFactoryFactorizeTaps: createTap(
|
|
63958
|
+
registerNormalModuleFactoryFactorizeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryFactorize, function() {
|
|
63975
63959
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.factorize;
|
|
63976
63960
|
}, function(queried) {
|
|
63977
63961
|
return async function(resolveData) {
|
|
@@ -63979,7 +63963,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63979
63963
|
return resolveData;
|
|
63980
63964
|
};
|
|
63981
63965
|
}),
|
|
63982
|
-
registerNormalModuleFactoryResolveTaps: createTap(
|
|
63966
|
+
registerNormalModuleFactoryResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryResolve, function() {
|
|
63983
63967
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.resolve;
|
|
63984
63968
|
}, function(queried) {
|
|
63985
63969
|
return async function(resolveData) {
|
|
@@ -63987,7 +63971,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63987
63971
|
return resolveData;
|
|
63988
63972
|
};
|
|
63989
63973
|
}),
|
|
63990
|
-
registerNormalModuleFactoryResolveForSchemeTaps: createMapTap(
|
|
63974
|
+
registerNormalModuleFactoryResolveForSchemeTaps: createMapTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryResolveForScheme, function() {
|
|
63991
63975
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.resolveForScheme;
|
|
63992
63976
|
}, function(queried) {
|
|
63993
63977
|
return async function(args) {
|
|
@@ -63998,7 +63982,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63998
63982
|
];
|
|
63999
63983
|
};
|
|
64000
63984
|
}),
|
|
64001
|
-
registerNormalModuleFactoryAfterResolveTaps: createTap(
|
|
63985
|
+
registerNormalModuleFactoryAfterResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryAfterResolve, function() {
|
|
64002
63986
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.afterResolve;
|
|
64003
63987
|
}, function(queried) {
|
|
64004
63988
|
return async function(resolveData) {
|
|
@@ -64009,7 +63993,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
64009
63993
|
];
|
|
64010
63994
|
};
|
|
64011
63995
|
}),
|
|
64012
|
-
registerNormalModuleFactoryCreateModuleTaps: createTap(
|
|
63996
|
+
registerNormalModuleFactoryCreateModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryCreateModule, function() {
|
|
64013
63997
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.createModule;
|
|
64014
63998
|
}, function(queried) {
|
|
64015
63999
|
return async function(args) {
|
|
@@ -64766,8 +64750,9 @@ class Compiler {
|
|
|
64766
64750
|
this.hooks.shutdown.callAsync((err)=>{
|
|
64767
64751
|
if (err) return callback(err);
|
|
64768
64752
|
this.cache.shutdown(()=>{
|
|
64769
|
-
this.#instance?.close();
|
|
64770
|
-
callback();
|
|
64753
|
+
const closePromise = this.#instance?.close();
|
|
64754
|
+
if (closePromise) closePromise.then(()=>callback(), callback);
|
|
64755
|
+
else callback();
|
|
64771
64756
|
});
|
|
64772
64757
|
});
|
|
64773
64758
|
}
|
|
@@ -64828,7 +64813,7 @@ class Compiler {
|
|
|
64828
64813
|
const rawOptions = getRawOptions(options, this);
|
|
64829
64814
|
rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
64830
64815
|
rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
64831
|
-
const instanceBinding = __webpack_require__("@rspack/binding");
|
|
64816
|
+
const instanceBinding = __webpack_require__("@rspack/binding?91dc");
|
|
64832
64817
|
this.#registers = this.#createHooksRegisters();
|
|
64833
64818
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
64834
64819
|
try {
|
|
@@ -64966,14 +64951,14 @@ class Compiler {
|
|
|
64966
64951
|
return this.#moduleExecutionResultsMap;
|
|
64967
64952
|
}
|
|
64968
64953
|
}
|
|
64969
|
-
Object.defineProperty(
|
|
64954
|
+
Object.defineProperty(rspack_wasi_browser.ConcatenatedModule.prototype, 'identifier', {
|
|
64970
64955
|
enumerable: true,
|
|
64971
64956
|
configurable: true,
|
|
64972
64957
|
value () {
|
|
64973
|
-
return this[
|
|
64958
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
64974
64959
|
}
|
|
64975
64960
|
});
|
|
64976
|
-
Object.defineProperty(
|
|
64961
|
+
Object.defineProperty(rspack_wasi_browser.ConcatenatedModule.prototype, 'originalSource', {
|
|
64977
64962
|
enumerable: true,
|
|
64978
64963
|
configurable: true,
|
|
64979
64964
|
value () {
|
|
@@ -64982,21 +64967,21 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].ConcatenatedMo
|
|
|
64982
64967
|
return null;
|
|
64983
64968
|
}
|
|
64984
64969
|
});
|
|
64985
|
-
Object.defineProperty(
|
|
64970
|
+
Object.defineProperty(rspack_wasi_browser.ConcatenatedModule.prototype, 'emitFile', {
|
|
64986
64971
|
enumerable: true,
|
|
64987
64972
|
configurable: true,
|
|
64988
64973
|
value (filename, source, assetInfo) {
|
|
64989
64974
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
64990
64975
|
}
|
|
64991
64976
|
});
|
|
64992
|
-
Object.defineProperty(
|
|
64977
|
+
Object.defineProperty(rspack_wasi_browser.ContextModule.prototype, 'identifier', {
|
|
64993
64978
|
enumerable: true,
|
|
64994
64979
|
configurable: true,
|
|
64995
64980
|
value () {
|
|
64996
|
-
return this[
|
|
64981
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
64997
64982
|
}
|
|
64998
64983
|
});
|
|
64999
|
-
Object.defineProperty(
|
|
64984
|
+
Object.defineProperty(rspack_wasi_browser.ContextModule.prototype, 'originalSource', {
|
|
65000
64985
|
enumerable: true,
|
|
65001
64986
|
configurable: true,
|
|
65002
64987
|
value () {
|
|
@@ -65005,21 +64990,21 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].ContextModule.
|
|
|
65005
64990
|
return null;
|
|
65006
64991
|
}
|
|
65007
64992
|
});
|
|
65008
|
-
Object.defineProperty(
|
|
64993
|
+
Object.defineProperty(rspack_wasi_browser.ContextModule.prototype, 'emitFile', {
|
|
65009
64994
|
enumerable: true,
|
|
65010
64995
|
configurable: true,
|
|
65011
64996
|
value (filename, source, assetInfo) {
|
|
65012
64997
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
65013
64998
|
}
|
|
65014
64999
|
});
|
|
65015
|
-
Object.defineProperty(
|
|
65000
|
+
Object.defineProperty(rspack_wasi_browser.ExternalModule.prototype, 'identifier', {
|
|
65016
65001
|
enumerable: true,
|
|
65017
65002
|
configurable: true,
|
|
65018
65003
|
value () {
|
|
65019
|
-
return this[
|
|
65004
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
65020
65005
|
}
|
|
65021
65006
|
});
|
|
65022
|
-
Object.defineProperty(
|
|
65007
|
+
Object.defineProperty(rspack_wasi_browser.ExternalModule.prototype, 'originalSource', {
|
|
65023
65008
|
enumerable: true,
|
|
65024
65009
|
configurable: true,
|
|
65025
65010
|
value () {
|
|
@@ -65028,7 +65013,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].ExternalModule
|
|
|
65028
65013
|
return null;
|
|
65029
65014
|
}
|
|
65030
65015
|
});
|
|
65031
|
-
Object.defineProperty(
|
|
65016
|
+
Object.defineProperty(rspack_wasi_browser.ExternalModule.prototype, 'emitFile', {
|
|
65032
65017
|
enumerable: true,
|
|
65033
65018
|
configurable: true,
|
|
65034
65019
|
value (filename, source, assetInfo) {
|
|
@@ -65056,7 +65041,7 @@ const matchObject = (obj, str)=>{
|
|
|
65056
65041
|
}
|
|
65057
65042
|
return true;
|
|
65058
65043
|
};
|
|
65059
|
-
const FlagAllModulesAsUsedPlugin = base_create(
|
|
65044
|
+
const FlagAllModulesAsUsedPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FlagAllModulesAsUsedPlugin, (explanation)=>({
|
|
65060
65045
|
explanation
|
|
65061
65046
|
}));
|
|
65062
65047
|
class DllPlugin {
|
|
@@ -65180,7 +65165,7 @@ class LoaderOptionsPlugin {
|
|
|
65180
65165
|
apply(compiler) {
|
|
65181
65166
|
const options = this.options;
|
|
65182
65167
|
compiler.hooks.compilation.tap('LoaderOptionsPlugin', (compilation)=>{
|
|
65183
|
-
|
|
65168
|
+
NormalModule.getCompilationHooks(compilation).loader.tap('LoaderOptionsPlugin', (context)=>{
|
|
65184
65169
|
const resource = context.resourcePath;
|
|
65185
65170
|
if (!resource) return;
|
|
65186
65171
|
if (matchObject(options, resource)) {
|
|
@@ -65197,7 +65182,7 @@ class LoaderTargetPlugin {
|
|
|
65197
65182
|
}
|
|
65198
65183
|
apply(compiler) {
|
|
65199
65184
|
compiler.hooks.compilation.tap('LoaderTargetPlugin', (compilation)=>{
|
|
65200
|
-
|
|
65185
|
+
NormalModule.getCompilationHooks(compilation).loader.tap('LoaderTargetPlugin', (loaderContext)=>{
|
|
65201
65186
|
loaderContext.target = this.target;
|
|
65202
65187
|
});
|
|
65203
65188
|
});
|
|
@@ -65248,7 +65233,7 @@ function setSingleton(compiler) {
|
|
|
65248
65233
|
}
|
|
65249
65234
|
class ShareRuntimePlugin extends RspackBuiltinPlugin {
|
|
65250
65235
|
enhanced;
|
|
65251
|
-
name =
|
|
65236
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ShareRuntimePlugin;
|
|
65252
65237
|
constructor(enhanced = false){
|
|
65253
65238
|
super(), this.enhanced = enhanced;
|
|
65254
65239
|
}
|
|
@@ -65304,7 +65289,7 @@ function normalizeConsumeShareOptions(consumes, shareScope) {
|
|
|
65304
65289
|
}));
|
|
65305
65290
|
}
|
|
65306
65291
|
class ConsumeSharedPlugin extends RspackBuiltinPlugin {
|
|
65307
|
-
name =
|
|
65292
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ConsumeSharedPlugin;
|
|
65308
65293
|
_options;
|
|
65309
65294
|
constructor(options){
|
|
65310
65295
|
super();
|
|
@@ -65355,7 +65340,7 @@ function normalizeProvideShareOptions(options, shareScope, enhanced) {
|
|
|
65355
65340
|
});
|
|
65356
65341
|
}
|
|
65357
65342
|
class ProvideSharedPlugin extends RspackBuiltinPlugin {
|
|
65358
|
-
name =
|
|
65343
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ProvideSharedPlugin;
|
|
65359
65344
|
_provides;
|
|
65360
65345
|
_enhanced;
|
|
65361
65346
|
constructor(options){
|
|
@@ -65595,7 +65580,7 @@ function normalizeManifestOptions(mfConfig) {
|
|
|
65595
65580
|
};
|
|
65596
65581
|
}
|
|
65597
65582
|
class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
65598
|
-
name =
|
|
65583
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleFederationManifestPlugin;
|
|
65599
65584
|
rawOpts;
|
|
65600
65585
|
constructor(opts){
|
|
65601
65586
|
super();
|
|
@@ -65623,7 +65608,7 @@ class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
|
65623
65608
|
}
|
|
65624
65609
|
const SHARE_ENTRY_ASSET = 'collect-shared-entries.json';
|
|
65625
65610
|
class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
65626
|
-
name =
|
|
65611
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.CollectSharedEntryPlugin;
|
|
65627
65612
|
sharedOptions;
|
|
65628
65613
|
_collectedEntries;
|
|
65629
65614
|
constructor(options){
|
|
@@ -65670,7 +65655,7 @@ function assert(condition, msg) {
|
|
|
65670
65655
|
}
|
|
65671
65656
|
const HOT_UPDATE_SUFFIX = '.hot-update';
|
|
65672
65657
|
class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
65673
|
-
name =
|
|
65658
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedContainerPlugin;
|
|
65674
65659
|
filename = '';
|
|
65675
65660
|
_options;
|
|
65676
65661
|
_shareName;
|
|
@@ -65728,7 +65713,7 @@ class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
|
65728
65713
|
}
|
|
65729
65714
|
}
|
|
65730
65715
|
class SharedUsedExportsOptimizerPlugin extends RspackBuiltinPlugin {
|
|
65731
|
-
name =
|
|
65716
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedUsedExportsOptimizerPlugin;
|
|
65732
65717
|
sharedOptions;
|
|
65733
65718
|
injectTreeShakingUsedExports;
|
|
65734
65719
|
manifestOptions;
|
|
@@ -66053,7 +66038,7 @@ class TreeShakingSharedPlugin {
|
|
|
66053
66038
|
return this._independentSharePlugin?.buildAssets || {};
|
|
66054
66039
|
}
|
|
66055
66040
|
}
|
|
66056
|
-
const ModuleFederationRuntimePlugin = base_create(
|
|
66041
|
+
const ModuleFederationRuntimePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleFederationRuntimePlugin, (options = {})=>options);
|
|
66057
66042
|
class ModuleFederationPlugin {
|
|
66058
66043
|
_options;
|
|
66059
66044
|
_treeShakingSharedPlugin;
|
|
@@ -66236,7 +66221,7 @@ function getDefaultEntryRuntime(paths, options, compiler, treeShakingShareFallba
|
|
|
66236
66221
|
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${encodeURIComponent(content)}`;
|
|
66237
66222
|
}
|
|
66238
66223
|
class ContainerPlugin extends RspackBuiltinPlugin {
|
|
66239
|
-
name =
|
|
66224
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerPlugin;
|
|
66240
66225
|
_options;
|
|
66241
66226
|
constructor(options){
|
|
66242
66227
|
super();
|
|
@@ -66286,7 +66271,7 @@ class ContainerPlugin extends RspackBuiltinPlugin {
|
|
|
66286
66271
|
}
|
|
66287
66272
|
}
|
|
66288
66273
|
class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
66289
|
-
name =
|
|
66274
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerReferencePlugin;
|
|
66290
66275
|
_options;
|
|
66291
66276
|
constructor(options){
|
|
66292
66277
|
super();
|
|
@@ -66379,21 +66364,21 @@ class ModuleFederationPluginV1 {
|
|
|
66379
66364
|
}
|
|
66380
66365
|
async function minify(source, options) {
|
|
66381
66366
|
const _options = JSON.stringify(options || {});
|
|
66382
|
-
return
|
|
66367
|
+
return rspack_wasi_browser.minify(source, _options);
|
|
66383
66368
|
}
|
|
66384
66369
|
function minifySync(source, options) {
|
|
66385
66370
|
const _options = JSON.stringify(options || {});
|
|
66386
|
-
return
|
|
66371
|
+
return rspack_wasi_browser.minifySync(source, _options);
|
|
66387
66372
|
}
|
|
66388
66373
|
async function transform(source, options) {
|
|
66389
66374
|
const _options = JSON.stringify(options || {});
|
|
66390
|
-
return
|
|
66375
|
+
return rspack_wasi_browser.transform(source, _options);
|
|
66391
66376
|
}
|
|
66392
66377
|
function transformSync(source, options) {
|
|
66393
66378
|
const _options = JSON.stringify(options || {});
|
|
66394
|
-
return
|
|
66379
|
+
return rspack_wasi_browser.transformSync(source, _options);
|
|
66395
66380
|
}
|
|
66396
|
-
const exports_rspackVersion = "2.0.0-beta.
|
|
66381
|
+
const exports_rspackVersion = "2.0.0-beta.8";
|
|
66397
66382
|
const exports_version = "5.75.0";
|
|
66398
66383
|
const exports_WebpackError = Error;
|
|
66399
66384
|
const exports_config = {
|
|
@@ -66451,16 +66436,16 @@ const exports_experiments = {
|
|
|
66451
66436
|
globalTrace: {
|
|
66452
66437
|
async register (filter, layer, output) {
|
|
66453
66438
|
await trace_JavaScriptTracer.initJavaScriptTrace(layer, output);
|
|
66454
|
-
|
|
66439
|
+
registerGlobalTrace(filter, layer, output);
|
|
66455
66440
|
trace_JavaScriptTracer.initCpuProfiler();
|
|
66456
66441
|
},
|
|
66457
66442
|
async cleanup () {
|
|
66458
66443
|
await trace_JavaScriptTracer.cleanupJavaScriptTrace();
|
|
66459
|
-
|
|
66460
|
-
|
|
66444
|
+
syncTraceEvent(trace_JavaScriptTracer.events);
|
|
66445
|
+
cleanupGlobalTrace();
|
|
66461
66446
|
}
|
|
66462
66447
|
},
|
|
66463
|
-
RemoveDuplicateModulesPlugin:
|
|
66448
|
+
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin,
|
|
66464
66449
|
RsdoctorPlugin: RsdoctorPlugin,
|
|
66465
66450
|
RstestPlugin: RstestPlugin,
|
|
66466
66451
|
RslibPlugin: RslibPlugin,
|
|
@@ -66471,10 +66456,10 @@ const exports_experiments = {
|
|
|
66471
66456
|
transformSync: transformSync
|
|
66472
66457
|
},
|
|
66473
66458
|
resolver: {
|
|
66474
|
-
ResolverFactory:
|
|
66475
|
-
EnforceExtension:
|
|
66476
|
-
async:
|
|
66477
|
-
sync:
|
|
66459
|
+
ResolverFactory: external_rspack_wasi_browser_js_ResolverFactory,
|
|
66460
|
+
EnforceExtension: EnforceExtension,
|
|
66461
|
+
async: external_rspack_wasi_browser_js_async,
|
|
66462
|
+
sync: sync
|
|
66478
66463
|
},
|
|
66479
66464
|
CssChunkingPlugin: CssChunkingPlugin,
|
|
66480
66465
|
createNativePlugin: createNativePlugin,
|
|
@@ -66627,7 +66612,7 @@ class BrowserRequirePlugin {
|
|
|
66627
66612
|
if (module) return module;
|
|
66628
66613
|
}
|
|
66629
66614
|
if (!execute) throw Error(`You should provide 'execute' option if there's no mapping for module '${id}'`);
|
|
66630
|
-
const { path: loaderPath } =
|
|
66615
|
+
const { path: loaderPath } = sync('', id);
|
|
66631
66616
|
if (!loaderPath) throw new Error(`Cannot find loader of ${id}`);
|
|
66632
66617
|
const data = fs_0["default"].readFileSync(loaderPath);
|
|
66633
66618
|
const code = data?.toString() || '';
|
|
@@ -66635,7 +66620,7 @@ class BrowserRequirePlugin {
|
|
|
66635
66620
|
exports: {}
|
|
66636
66621
|
};
|
|
66637
66622
|
const exports = module.exports;
|
|
66638
|
-
const cjs = (
|
|
66623
|
+
const cjs = external_rspack_wasi_browser_js_transformSync(code, JSON.stringify({
|
|
66639
66624
|
module: {
|
|
66640
66625
|
type: 'commonjs'
|
|
66641
66626
|
}
|
|
@@ -66654,4 +66639,4 @@ const builtinMemFs = {
|
|
|
66654
66639
|
volume: fs_0.volume,
|
|
66655
66640
|
memfs: fs_0.memfs
|
|
66656
66641
|
};
|
|
66657
|
-
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,
|
|
66642
|
+
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 };
|