@rspack/browser 2.0.0-beta.6 → 2.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builtin-loader/swc/types.d.ts +8 -0
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WorkerPlugin.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 -4
- package/dist/index.js +418 -537
- package/dist/napi-binding.d.ts +14 -1
- package/dist/rslib-runtime.js +5 -8
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/wasi-worker-browser.mjs +22 -23
- package/package.json +1 -1
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, 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.0/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.0/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.0/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;
|
|
@@ -35420,14 +35310,14 @@ __webpack_require__.add({
|
|
|
35420
35310
|
watch: ()=>watch
|
|
35421
35311
|
});
|
|
35422
35312
|
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.7/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35423
|
-
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding");
|
|
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" () {},
|
|
@@ -38558,7 +38448,7 @@ __webpack_require__.add({
|
|
|
38558
38448
|
const getuid = ()=>process_1.default.getuid?.() ?? 0;
|
|
38559
38449
|
const getgid = ()=>process_1.default.getgid?.() ?? 0;
|
|
38560
38450
|
let Node$1 = class {
|
|
38561
|
-
constructor(ino, mode =
|
|
38451
|
+
constructor(ino, mode = 0o666){
|
|
38562
38452
|
this.changes = new fanout_1.FanOut();
|
|
38563
38453
|
this._uid = getuid();
|
|
38564
38454
|
this._gid = getgid();
|
|
@@ -38653,7 +38543,7 @@ __webpack_require__.add({
|
|
|
38653
38543
|
return (this.mode & S_IFMT) === S_IFCHR;
|
|
38654
38544
|
}
|
|
38655
38545
|
makeSymlink(symlink) {
|
|
38656
|
-
this.mode =
|
|
38546
|
+
this.mode = 0o666 | S_IFLNK;
|
|
38657
38547
|
this.symlink = symlink;
|
|
38658
38548
|
}
|
|
38659
38549
|
write(buf, off = 0, len = buf.length, pos = 0) {
|
|
@@ -38798,7 +38688,7 @@ __webpack_require__.add({
|
|
|
38798
38688
|
getNode() {
|
|
38799
38689
|
return this.node;
|
|
38800
38690
|
}
|
|
38801
|
-
createChild(name, node = this.vol.createNode(
|
|
38691
|
+
createChild(name, node = this.vol.createNode(0o666 | S_IFREG)) {
|
|
38802
38692
|
const link = new Link(this.vol, this, name);
|
|
38803
38693
|
link.setNode(node);
|
|
38804
38694
|
if (node.isDirectory()) {
|
|
@@ -42276,7 +42166,7 @@ __webpack_require__.add({
|
|
|
42276
42166
|
this.closeFile(file);
|
|
42277
42167
|
};
|
|
42278
42168
|
const root = this.createLink();
|
|
42279
|
-
root.setNode(this.createNode(
|
|
42169
|
+
root.setNode(this.createNode(0o777 | constants_1.constants.S_IFDIR));
|
|
42280
42170
|
root.setChild('.', root);
|
|
42281
42171
|
root.getNode().nlink++;
|
|
42282
42172
|
root.setChild('..', root);
|
|
@@ -42286,7 +42176,7 @@ __webpack_require__.add({
|
|
|
42286
42176
|
createLink(parent, name, isDirectory = false, mode) {
|
|
42287
42177
|
if (!parent) return new Link_1.Link(this, void 0, '');
|
|
42288
42178
|
if (!name) throw new Error('createLink: name cannot be empty');
|
|
42289
|
-
const finalPerm = mode ?? (isDirectory ?
|
|
42179
|
+
const finalPerm = mode ?? (isDirectory ? 0o777 : 0o666);
|
|
42290
42180
|
const hasFileType = mode && mode & constants_1.constants.S_IFMT;
|
|
42291
42181
|
const modeType = hasFileType ? mode & constants_1.constants.S_IFMT : isDirectory ? constants_1.constants.S_IFDIR : constants_1.constants.S_IFREG;
|
|
42292
42182
|
const finalMode = finalPerm & ~constants_1.constants.S_IFMT | modeType;
|
|
@@ -42466,7 +42356,7 @@ __webpack_require__.add({
|
|
|
42466
42356
|
this.releasedFds = [];
|
|
42467
42357
|
this.openFiles = 0;
|
|
42468
42358
|
this.root = this.createLink();
|
|
42469
|
-
this.root.setNode(this.createNode(
|
|
42359
|
+
this.root.setNode(this.createNode(0o777 | constants_1.constants.S_IFDIR));
|
|
42470
42360
|
}
|
|
42471
42361
|
mountSync(mountpoint, json) {
|
|
42472
42362
|
this.fromJSON(json, mountpoint);
|
|
@@ -42504,7 +42394,7 @@ __webpack_require__.add({
|
|
|
42504
42394
|
const dirNode = dirLink.getNode();
|
|
42505
42395
|
if (!dirNode.isDirectory()) throw (0, util_1.createError)("ENOTDIR", 'open', filename);
|
|
42506
42396
|
if (!dirNode.canExecute() || !dirNode.canWrite()) throw (0, util_1.createError)("EACCES", 'open', filename);
|
|
42507
|
-
modeNum ?? (modeNum =
|
|
42397
|
+
modeNum ?? (modeNum = 0o666);
|
|
42508
42398
|
link = this.createLink(dirLink, steps[steps.length - 1], false, modeNum);
|
|
42509
42399
|
} else throw err;
|
|
42510
42400
|
}
|
|
@@ -44457,7 +44347,7 @@ __webpack_require__.add({
|
|
|
44457
44347
|
break;
|
|
44458
44348
|
}
|
|
44459
44349
|
++c;
|
|
44460
|
-
}while (null !== (p = p.next))
|
|
44350
|
+
}while (null !== (p = p.next))
|
|
44461
44351
|
this.length -= c;
|
|
44462
44352
|
return ret;
|
|
44463
44353
|
}
|
|
@@ -44485,7 +44375,7 @@ __webpack_require__.add({
|
|
|
44485
44375
|
break;
|
|
44486
44376
|
}
|
|
44487
44377
|
++c;
|
|
44488
|
-
}while (null !== (p = p.next))
|
|
44378
|
+
}while (null !== (p = p.next))
|
|
44489
44379
|
this.length -= c;
|
|
44490
44380
|
return ret;
|
|
44491
44381
|
}
|
|
@@ -46021,7 +45911,7 @@ __webpack_require__.add({
|
|
|
46021
45911
|
buffered[i++] = null;
|
|
46022
45912
|
const len = objectMode ? 1 : chunk.length;
|
|
46023
45913
|
doWrite(stream, state, false, len, chunk, encoding, callback);
|
|
46024
|
-
}while (i < buffered.length && !state.writing)
|
|
45914
|
+
}while (i < buffered.length && !state.writing)
|
|
46025
45915
|
if (i === buffered.length) resetBuffer(state);
|
|
46026
45916
|
else if (i > 256) {
|
|
46027
45917
|
buffered.splice(0, i);
|
|
@@ -48385,7 +48275,7 @@ __webpack_require__.add({
|
|
|
48385
48275
|
({ done, value } = iteratorInfo[iteratorInfo.length - 1].next());
|
|
48386
48276
|
if (done) break;
|
|
48387
48277
|
[name, link] = value;
|
|
48388
|
-
}while ('.' === name || '..' === name)
|
|
48278
|
+
}while ('.' === name || '..' === name)
|
|
48389
48279
|
if (done) {
|
|
48390
48280
|
iteratorInfo.pop();
|
|
48391
48281
|
if (0 === iteratorInfo.length) break;
|
|
@@ -48394,7 +48284,7 @@ __webpack_require__.add({
|
|
|
48394
48284
|
if (this.options.recursive && link.children.size) iteratorInfo.push(link.children[Symbol.iterator]());
|
|
48395
48285
|
return Dirent_1.default.build(link, this.options.encoding);
|
|
48396
48286
|
}
|
|
48397
|
-
}while (!done)
|
|
48287
|
+
}while (!done)
|
|
48398
48288
|
return null;
|
|
48399
48289
|
}
|
|
48400
48290
|
close(callback) {
|
|
@@ -49291,7 +49181,7 @@ __webpack_require__.add({
|
|
|
49291
49181
|
};
|
|
49292
49182
|
this.mkdirSync = (path, options)=>{
|
|
49293
49183
|
const opts = (0, options_1.getMkdirOptions)(options);
|
|
49294
|
-
const modeNum = (0, util_2.modeToNumber)(opts.mode,
|
|
49184
|
+
const modeNum = (0, util_2.modeToNumber)(opts.mode, 0o777);
|
|
49295
49185
|
const filename = (0, util_2.pathToFilename)(path);
|
|
49296
49186
|
if (opts.recursive) return this._core.mkdirp(filename, modeNum);
|
|
49297
49187
|
this._core.mkdir(filename, modeNum);
|
|
@@ -49299,7 +49189,7 @@ __webpack_require__.add({
|
|
|
49299
49189
|
this.mkdir = (path, a, b)=>{
|
|
49300
49190
|
const opts = (0, options_1.getMkdirOptions)(a);
|
|
49301
49191
|
const callback = (0, util_2.validateCallback)('function' == typeof a ? a : b);
|
|
49302
|
-
const modeNum = (0, util_2.modeToNumber)(opts.mode,
|
|
49192
|
+
const modeNum = (0, util_2.modeToNumber)(opts.mode, 0o777);
|
|
49303
49193
|
const filename = (0, util_2.pathToFilename)(path);
|
|
49304
49194
|
if (opts.recursive) this.wrapAsync(this._core.mkdirp, [
|
|
49305
49195
|
filename,
|
|
@@ -49888,7 +49778,7 @@ __webpack_require__.add({
|
|
|
49888
49778
|
this.path = (0, util_2.pathToFilename)(path);
|
|
49889
49779
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
49890
49780
|
this.flags = void 0 === options.flags ? 'r' : options.flags;
|
|
49891
|
-
this.mode = void 0 === options.mode ?
|
|
49781
|
+
this.mode = void 0 === options.mode ? 0o666 : options.mode;
|
|
49892
49782
|
this.start = options.start;
|
|
49893
49783
|
this.end = options.end;
|
|
49894
49784
|
this.autoClose = void 0 === options.autoClose ? true : options.autoClose;
|
|
@@ -49984,7 +49874,7 @@ __webpack_require__.add({
|
|
|
49984
49874
|
this.path = (0, util_2.pathToFilename)(path);
|
|
49985
49875
|
this.fd = void 0 === options.fd ? null : 'number' != typeof options.fd ? options.fd.fd : options.fd;
|
|
49986
49876
|
this.flags = void 0 === options.flags ? 'w' : options.flags;
|
|
49987
|
-
this.mode = void 0 === options.mode ?
|
|
49877
|
+
this.mode = void 0 === options.mode ? 0o666 : options.mode;
|
|
49988
49878
|
this.start = options.start;
|
|
49989
49879
|
this.autoClose = void 0 === options.autoClose ? true : !!options.autoClose;
|
|
49990
49880
|
this.pos = void 0;
|
|
@@ -50400,29 +50290,29 @@ __webpack_require__.d(browserslistTargetHandler_namespaceObject, {
|
|
|
50400
50290
|
var exports_namespaceObject = {};
|
|
50401
50291
|
__webpack_require__.r(exports_namespaceObject);
|
|
50402
50292
|
__webpack_require__.d(exports_namespaceObject, {
|
|
50403
|
-
AsyncDependenciesBlock: ()=>
|
|
50293
|
+
AsyncDependenciesBlock: ()=>AsyncDependenciesBlock,
|
|
50404
50294
|
BannerPlugin: ()=>BannerPlugin,
|
|
50405
50295
|
CaseSensitivePlugin: ()=>CaseSensitivePlugin,
|
|
50406
50296
|
CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
|
|
50407
50297
|
Compilation: ()=>Compilation,
|
|
50408
50298
|
Compiler: ()=>Compiler,
|
|
50409
|
-
ConcatenatedModule: ()=>
|
|
50410
|
-
ContextModule: ()=>
|
|
50299
|
+
ConcatenatedModule: ()=>ConcatenatedModule,
|
|
50300
|
+
ContextModule: ()=>ContextModule,
|
|
50411
50301
|
ContextReplacementPlugin: ()=>ContextReplacementPlugin,
|
|
50412
50302
|
CopyRspackPlugin: ()=>CopyRspackPlugin,
|
|
50413
50303
|
CssExtractRspackPlugin: ()=>CssExtractRspackPlugin,
|
|
50414
50304
|
DefinePlugin: ()=>DefinePlugin,
|
|
50415
|
-
Dependency: ()=>
|
|
50305
|
+
Dependency: ()=>Dependency,
|
|
50416
50306
|
DllPlugin: ()=>DllPlugin,
|
|
50417
50307
|
DllReferencePlugin: ()=>DllReferencePlugin,
|
|
50418
50308
|
DynamicEntryPlugin: ()=>DynamicEntryPlugin,
|
|
50419
|
-
EntryDependency: ()=>
|
|
50309
|
+
EntryDependency: ()=>EntryDependency,
|
|
50420
50310
|
EntryOptionPlugin: ()=>lib_EntryOptionPlugin,
|
|
50421
50311
|
EntryPlugin: ()=>EntryPlugin,
|
|
50422
50312
|
EnvironmentPlugin: ()=>EnvironmentPlugin,
|
|
50423
50313
|
EvalDevToolModulePlugin: ()=>EvalDevToolModulePlugin,
|
|
50424
50314
|
EvalSourceMapDevToolPlugin: ()=>EvalSourceMapDevToolPlugin,
|
|
50425
|
-
ExternalModule: ()=>
|
|
50315
|
+
ExternalModule: ()=>ExternalModule,
|
|
50426
50316
|
ExternalsPlugin: ()=>ExternalsPlugin,
|
|
50427
50317
|
HotModuleReplacementPlugin: ()=>HotModuleReplacementPlugin,
|
|
50428
50318
|
HtmlRspackPlugin: ()=>HtmlRspackPlugin,
|
|
@@ -50430,12 +50320,12 @@ __webpack_require__.d(exports_namespaceObject, {
|
|
|
50430
50320
|
LightningCssMinimizerRspackPlugin: ()=>LightningCssMinimizerRspackPlugin,
|
|
50431
50321
|
LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
|
|
50432
50322
|
LoaderTargetPlugin: ()=>LoaderTargetPlugin,
|
|
50433
|
-
Module: ()=>
|
|
50323
|
+
Module: ()=>Module,
|
|
50434
50324
|
ModuleFilenameHelpers: ()=>ModuleFilenameHelpers_namespaceObject,
|
|
50435
50325
|
MultiCompiler: ()=>MultiCompiler,
|
|
50436
50326
|
MultiStats: ()=>MultiStats,
|
|
50437
50327
|
NoEmitOnErrorsPlugin: ()=>NoEmitOnErrorsPlugin,
|
|
50438
|
-
NormalModule: ()=>
|
|
50328
|
+
NormalModule: ()=>NormalModule,
|
|
50439
50329
|
NormalModuleReplacementPlugin: ()=>NormalModuleReplacementPlugin,
|
|
50440
50330
|
ProgressPlugin: ()=>ProgressPlugin,
|
|
50441
50331
|
ProvidePlugin: ()=>ProvidePlugin,
|
|
@@ -50463,7 +50353,7 @@ __webpack_require__.d(exports_namespaceObject, {
|
|
|
50463
50353
|
optimize: ()=>optimize,
|
|
50464
50354
|
rspackVersion: ()=>exports_rspackVersion,
|
|
50465
50355
|
sharing: ()=>sharing,
|
|
50466
|
-
sources: ()=>
|
|
50356
|
+
sources: ()=>webpack_sources_lib,
|
|
50467
50357
|
util: ()=>util,
|
|
50468
50358
|
version: ()=>exports_version,
|
|
50469
50359
|
wasm: ()=>exports_wasm,
|
|
@@ -50506,8 +50396,8 @@ const cutOffMessage = (stack, name, message)=>{
|
|
|
50506
50396
|
const firstLine = stack.slice(0, nextLine);
|
|
50507
50397
|
return firstLine === `${name}: ${message}` ? stack.slice(nextLine + 1) : stack;
|
|
50508
50398
|
};
|
|
50509
|
-
const
|
|
50510
|
-
var
|
|
50399
|
+
const util_util = __webpack_require__("../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js");
|
|
50400
|
+
var util_util_default = /*#__PURE__*/ __webpack_require__.n(util_util);
|
|
50511
50401
|
class WebpackError extends Error {
|
|
50512
50402
|
loc;
|
|
50513
50403
|
file;
|
|
@@ -50516,7 +50406,7 @@ class WebpackError extends Error {
|
|
|
50516
50406
|
details;
|
|
50517
50407
|
hideStack;
|
|
50518
50408
|
}
|
|
50519
|
-
Object.defineProperty(WebpackError.prototype,
|
|
50409
|
+
Object.defineProperty(WebpackError.prototype, util_util.inspect.custom, {
|
|
50520
50410
|
value: function() {
|
|
50521
50411
|
return this.stack + (this.details ? `\n${this.details}` : '');
|
|
50522
50412
|
},
|
|
@@ -51468,7 +51358,7 @@ class MergeCaller {
|
|
|
51468
51358
|
}
|
|
51469
51359
|
push(...data) {
|
|
51470
51360
|
if (0 === this.callArgs.length) queueMicrotask(this.finalCall);
|
|
51471
|
-
this.callArgs.push(
|
|
51361
|
+
for(let i = 0; i < data.length; i++)this.callArgs.push(data[i]);
|
|
51472
51362
|
}
|
|
51473
51363
|
}
|
|
51474
51364
|
function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
@@ -51519,12 +51409,12 @@ function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
|
51519
51409
|
}
|
|
51520
51410
|
};
|
|
51521
51411
|
}
|
|
51522
|
-
const
|
|
51412
|
+
const webpack_sources_lib = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/index.js");
|
|
51523
51413
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
51524
51414
|
class SourceAdapter {
|
|
51525
51415
|
static fromBinding(source) {
|
|
51526
|
-
if (!source.map) return new
|
|
51527
|
-
return new
|
|
51416
|
+
if (!source.map) return new webpack_sources_lib.RawSource(source.source);
|
|
51417
|
+
return new webpack_sources_lib.SourceMapSource(source.source, 'inmemory://from rust', source.map);
|
|
51528
51418
|
}
|
|
51529
51419
|
static toBinding(source) {
|
|
51530
51420
|
const content = source.source();
|
|
@@ -51542,44 +51432,35 @@ class SourceAdapter {
|
|
|
51542
51432
|
};
|
|
51543
51433
|
}
|
|
51544
51434
|
}
|
|
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', {
|
|
51435
|
+
Object.defineProperty(Chunk.prototype, 'files', {
|
|
51555
51436
|
enumerable: true,
|
|
51556
51437
|
configurable: true,
|
|
51557
51438
|
get () {
|
|
51558
51439
|
return new Set(this._files);
|
|
51559
51440
|
}
|
|
51560
51441
|
});
|
|
51561
|
-
Object.defineProperty(
|
|
51442
|
+
Object.defineProperty(Chunk.prototype, 'runtime', {
|
|
51562
51443
|
enumerable: true,
|
|
51563
51444
|
configurable: true,
|
|
51564
51445
|
get () {
|
|
51565
51446
|
return new Set(this._runtime);
|
|
51566
51447
|
}
|
|
51567
51448
|
});
|
|
51568
|
-
Object.defineProperty(
|
|
51449
|
+
Object.defineProperty(Chunk.prototype, 'auxiliaryFiles', {
|
|
51569
51450
|
enumerable: true,
|
|
51570
51451
|
configurable: true,
|
|
51571
51452
|
get () {
|
|
51572
51453
|
return new Set(this._auxiliaryFiles);
|
|
51573
51454
|
}
|
|
51574
51455
|
});
|
|
51575
|
-
Object.defineProperty(
|
|
51456
|
+
Object.defineProperty(Chunk.prototype, 'groupsIterable', {
|
|
51576
51457
|
enumerable: true,
|
|
51577
51458
|
configurable: true,
|
|
51578
51459
|
get () {
|
|
51579
51460
|
return new Set(this._groupsIterable);
|
|
51580
51461
|
}
|
|
51581
51462
|
});
|
|
51582
|
-
Object.defineProperty(
|
|
51463
|
+
Object.defineProperty(Chunk.prototype, 'getChunkMaps', {
|
|
51583
51464
|
enumerable: true,
|
|
51584
51465
|
configurable: true,
|
|
51585
51466
|
value (realHash) {
|
|
@@ -51604,7 +51485,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_.Chunk.prototype, 'getChun
|
|
|
51604
51485
|
};
|
|
51605
51486
|
}
|
|
51606
51487
|
});
|
|
51607
|
-
Object.defineProperty(
|
|
51488
|
+
Object.defineProperty(Chunk.prototype, util_util_default().inspect.custom, {
|
|
51608
51489
|
enumerable: true,
|
|
51609
51490
|
configurable: true,
|
|
51610
51491
|
value () {
|
|
@@ -51613,7 +51494,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_.Chunk.prototype, util_0_d
|
|
|
51613
51494
|
};
|
|
51614
51495
|
}
|
|
51615
51496
|
});
|
|
51616
|
-
Object.defineProperty(
|
|
51497
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'entries', {
|
|
51617
51498
|
enumerable: true,
|
|
51618
51499
|
configurable: true,
|
|
51619
51500
|
value () {
|
|
@@ -51642,42 +51523,42 @@ Object.defineProperty(external_rspack_wasi_browser_js_.Chunks.prototype, 'entrie
|
|
|
51642
51523
|
};
|
|
51643
51524
|
}
|
|
51644
51525
|
});
|
|
51645
|
-
Object.defineProperty(
|
|
51526
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'values', {
|
|
51646
51527
|
enumerable: true,
|
|
51647
51528
|
configurable: true,
|
|
51648
51529
|
value () {
|
|
51649
51530
|
return this._values().values();
|
|
51650
51531
|
}
|
|
51651
51532
|
});
|
|
51652
|
-
Object.defineProperty(
|
|
51533
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, Symbol.iterator, {
|
|
51653
51534
|
enumerable: true,
|
|
51654
51535
|
configurable: true,
|
|
51655
51536
|
value () {
|
|
51656
51537
|
return this.values();
|
|
51657
51538
|
}
|
|
51658
51539
|
});
|
|
51659
|
-
Object.defineProperty(
|
|
51540
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'keys', {
|
|
51660
51541
|
enumerable: true,
|
|
51661
51542
|
configurable: true,
|
|
51662
51543
|
value () {
|
|
51663
51544
|
return this.values();
|
|
51664
51545
|
}
|
|
51665
51546
|
});
|
|
51666
|
-
Object.defineProperty(
|
|
51547
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'forEach', {
|
|
51667
51548
|
enumerable: true,
|
|
51668
51549
|
configurable: true,
|
|
51669
51550
|
value (callbackfn, thisArg) {
|
|
51670
51551
|
for (const chunk of this._values())callbackfn.call(thisArg, chunk, chunk, this);
|
|
51671
51552
|
}
|
|
51672
51553
|
});
|
|
51673
|
-
Object.defineProperty(
|
|
51554
|
+
Object.defineProperty(external_rspack_wasi_browser_js_Chunks.prototype, 'has', {
|
|
51674
51555
|
enumerable: true,
|
|
51675
51556
|
configurable: true,
|
|
51676
51557
|
value (value) {
|
|
51677
51558
|
return this._has(value);
|
|
51678
51559
|
}
|
|
51679
51560
|
});
|
|
51680
|
-
Object.defineProperty(
|
|
51561
|
+
Object.defineProperty(ChunkGraph.prototype, 'getOrderedChunkModulesIterable', {
|
|
51681
51562
|
enumerable: true,
|
|
51682
51563
|
configurable: true,
|
|
51683
51564
|
value (chunk, compareFn) {
|
|
@@ -51686,14 +51567,14 @@ Object.defineProperty(external_rspack_wasi_browser_js_.ChunkGraph.prototype, 'ge
|
|
|
51686
51567
|
return modules;
|
|
51687
51568
|
}
|
|
51688
51569
|
});
|
|
51689
|
-
Object.defineProperty(
|
|
51570
|
+
Object.defineProperty(ChunkGraph.prototype, 'getModuleChunksIterable', {
|
|
51690
51571
|
enumerable: true,
|
|
51691
51572
|
configurable: true,
|
|
51692
51573
|
value (module) {
|
|
51693
51574
|
return this.getModuleChunks(module);
|
|
51694
51575
|
}
|
|
51695
51576
|
});
|
|
51696
|
-
Object.defineProperty(
|
|
51577
|
+
Object.defineProperty(ChunkGraph.prototype, 'getOrderedChunkModulesIterable', {
|
|
51697
51578
|
enumerable: true,
|
|
51698
51579
|
configurable: true,
|
|
51699
51580
|
value (chunk, compareFn) {
|
|
@@ -51702,14 +51583,14 @@ Object.defineProperty(external_rspack_wasi_browser_js_.ChunkGraph.prototype, 'ge
|
|
|
51702
51583
|
return modules;
|
|
51703
51584
|
}
|
|
51704
51585
|
});
|
|
51705
|
-
Object.defineProperty(
|
|
51586
|
+
Object.defineProperty(ChunkGraph.prototype, 'getModuleHash', {
|
|
51706
51587
|
enumerable: true,
|
|
51707
51588
|
configurable: true,
|
|
51708
51589
|
value (module, runtime) {
|
|
51709
51590
|
return this._getModuleHash(module, toJsRuntimeSpec(runtime));
|
|
51710
51591
|
}
|
|
51711
51592
|
});
|
|
51712
|
-
Object.defineProperty(
|
|
51593
|
+
Object.defineProperty(rspack_wasi_browser.Sources.prototype, 'get', {
|
|
51713
51594
|
enumerable: true,
|
|
51714
51595
|
configurable: true,
|
|
51715
51596
|
value (sourceType) {
|
|
@@ -51722,7 +51603,7 @@ const $proxy = Symbol.for('proxy');
|
|
|
51722
51603
|
function createDiagnosticArray(adm) {
|
|
51723
51604
|
if ($proxy in adm) return adm[$proxy];
|
|
51724
51605
|
const array = [];
|
|
51725
|
-
array[
|
|
51606
|
+
array[util_util_default().inspect.custom] = ()=>adm.values();
|
|
51726
51607
|
const splice = function(index, deleteCount, ...newItems) {
|
|
51727
51608
|
switch(arguments.length){
|
|
51728
51609
|
case 0:
|
|
@@ -51824,7 +51705,7 @@ var _computedKey, _computedKey1, _computedKey2;
|
|
|
51824
51705
|
const checkCompilation = (compilation)=>{
|
|
51825
51706
|
if (!(compilation instanceof Compilation)) throw new TypeError('The \'compilation\' argument must be an instance of Compilation. This usually occurs when multiple versions of "@rspack/core" are used, or when the code in "@rspack/core" is executed multiple times.');
|
|
51826
51707
|
};
|
|
51827
|
-
_computedKey =
|
|
51708
|
+
_computedKey = rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL;
|
|
51828
51709
|
class Compilation {
|
|
51829
51710
|
#inner;
|
|
51830
51711
|
#shutdown;
|
|
@@ -52005,7 +51886,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
52005
51886
|
this.moduleGraph = ModuleGraph.__from_binding(inner.moduleGraph);
|
|
52006
51887
|
this.#addIncludeDispatcher = new AddEntryItemDispatcher(inner.addInclude.bind(inner));
|
|
52007
51888
|
this.#addEntryDispatcher = new AddEntryItemDispatcher(inner.addEntry.bind(inner));
|
|
52008
|
-
this[
|
|
51889
|
+
this[rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL] = new WeakMap();
|
|
52009
51890
|
}
|
|
52010
51891
|
get hash() {
|
|
52011
51892
|
return this.#inner.hash;
|
|
@@ -52544,16 +52425,16 @@ function base_create(name, resolve, affectedHooks) {
|
|
|
52544
52425
|
});
|
|
52545
52426
|
return Plugin;
|
|
52546
52427
|
}
|
|
52547
|
-
const INTERNAL_PLUGIN_NAMES = Object.keys(
|
|
52428
|
+
const INTERNAL_PLUGIN_NAMES = Object.keys(rspack_wasi_browser.BuiltinPluginName);
|
|
52548
52429
|
function createNativePlugin(name, resolve, affectedHooks) {
|
|
52549
52430
|
if (INTERNAL_PLUGIN_NAMES.includes(name)) throw new Error(`Cannot register native plugin with name '${name}', it conflicts with internal plugin names.`);
|
|
52550
52431
|
return base_create(name, resolve, affectedHooks);
|
|
52551
52432
|
}
|
|
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(
|
|
52433
|
+
const APIPlugin = base_create(BuiltinPluginName.APIPlugin, ()=>{});
|
|
52434
|
+
const ArrayPushCallbackChunkFormatPlugin = base_create(BuiltinPluginName.ArrayPushCallbackChunkFormatPlugin, ()=>{});
|
|
52435
|
+
const AssetModulesPlugin = base_create(BuiltinPluginName.AssetModulesPlugin, ()=>{}, 'compilation');
|
|
52436
|
+
const AsyncWebAssemblyModulesPlugin = base_create(BuiltinPluginName.AsyncWebAssemblyModulesPlugin, ()=>{}, 'compilation');
|
|
52437
|
+
const BannerPlugin = base_create(BuiltinPluginName.BannerPlugin, (args)=>{
|
|
52557
52438
|
if ('string' == typeof args || 'function' == typeof args) return {
|
|
52558
52439
|
banner: args
|
|
52559
52440
|
};
|
|
@@ -52568,15 +52449,15 @@ const BannerPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginN
|
|
|
52568
52449
|
exclude: args.exclude
|
|
52569
52450
|
};
|
|
52570
52451
|
});
|
|
52571
|
-
const BundlerInfoRspackPlugin = base_create(
|
|
52452
|
+
const BundlerInfoRspackPlugin = base_create(BuiltinPluginName.BundlerInfoRspackPlugin, (options)=>({
|
|
52572
52453
|
version: options.version || 'unknown',
|
|
52573
52454
|
bundler: options.bundler || 'rspack',
|
|
52574
52455
|
force: options.force ?? true
|
|
52575
52456
|
}));
|
|
52576
|
-
const CaseSensitivePlugin = base_create(
|
|
52577
|
-
const ChunkPrefetchPreloadPlugin = base_create(
|
|
52457
|
+
const CaseSensitivePlugin = base_create(BuiltinPluginName.CaseSensitivePlugin, ()=>{}, 'compilation');
|
|
52458
|
+
const ChunkPrefetchPreloadPlugin = base_create(BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
|
|
52578
52459
|
class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
52579
|
-
name =
|
|
52460
|
+
name = BuiltinPluginName.CircularDependencyRspackPlugin;
|
|
52580
52461
|
_options;
|
|
52581
52462
|
constructor(options){
|
|
52582
52463
|
super();
|
|
@@ -52608,8 +52489,8 @@ class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
|
52608
52489
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
52609
52490
|
}
|
|
52610
52491
|
}
|
|
52611
|
-
const CommonJsChunkFormatPlugin = base_create(
|
|
52612
|
-
const ContextReplacementPlugin = base_create(
|
|
52492
|
+
const CommonJsChunkFormatPlugin = base_create(BuiltinPluginName.CommonJsChunkFormatPlugin, ()=>{});
|
|
52493
|
+
const ContextReplacementPlugin = base_create(BuiltinPluginName.ContextReplacementPlugin, (resourceRegExp, newContentResource, newContentRecursive, newContentRegExp)=>{
|
|
52613
52494
|
const rawOptions = {
|
|
52614
52495
|
resourceRegExp
|
|
52615
52496
|
};
|
|
@@ -52634,7 +52515,7 @@ const ContextReplacementPlugin = base_create(external_rspack_wasi_browser_js_.Bu
|
|
|
52634
52515
|
}
|
|
52635
52516
|
return rawOptions;
|
|
52636
52517
|
});
|
|
52637
|
-
const CopyRspackPlugin = base_create(
|
|
52518
|
+
const CopyRspackPlugin = base_create(BuiltinPluginName.CopyRspackPlugin, (copy)=>{
|
|
52638
52519
|
const ret = {
|
|
52639
52520
|
patterns: []
|
|
52640
52521
|
};
|
|
@@ -52654,7 +52535,7 @@ const CopyRspackPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlu
|
|
|
52654
52535
|
});
|
|
52655
52536
|
return ret;
|
|
52656
52537
|
});
|
|
52657
|
-
const CssChunkingPlugin = base_create(
|
|
52538
|
+
const CssChunkingPlugin = base_create(rspack_wasi_browser.BuiltinPluginName.CssChunkingPlugin, function(options = {}) {
|
|
52658
52539
|
if (options.nextjs) return {
|
|
52659
52540
|
strict: options.strict,
|
|
52660
52541
|
minSize: options.minSize,
|
|
@@ -52670,7 +52551,7 @@ const CssChunkingPlugin = base_create(external_rspack_wasi_browser_js_["default"
|
|
|
52670
52551
|
}
|
|
52671
52552
|
return options;
|
|
52672
52553
|
});
|
|
52673
|
-
const CssModulesPlugin = base_create(
|
|
52554
|
+
const CssModulesPlugin = base_create(BuiltinPluginName.CssModulesPlugin, ()=>{}, 'compilation');
|
|
52674
52555
|
const path_browserify = __webpack_require__("../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js");
|
|
52675
52556
|
var path_browserify_default = /*#__PURE__*/ __webpack_require__.n(path_browserify);
|
|
52676
52557
|
const utils_PLUGIN_NAME = 'css-extract-rspack-plugin';
|
|
@@ -52691,7 +52572,7 @@ class CssExtractRspackPlugin {
|
|
|
52691
52572
|
}
|
|
52692
52573
|
if (compiler.options.output.pathinfo && void 0 === this.options.pathinfo) this.options.pathinfo = true;
|
|
52693
52574
|
compiler.__internal__registerBuiltinPlugin({
|
|
52694
|
-
name:
|
|
52575
|
+
name: BuiltinPluginName.CssExtractRspackPlugin,
|
|
52695
52576
|
options: this.normalizeOptions(this.options)
|
|
52696
52577
|
});
|
|
52697
52578
|
}
|
|
@@ -52727,8 +52608,8 @@ class CssExtractRspackPlugin {
|
|
|
52727
52608
|
return normalzedOptions;
|
|
52728
52609
|
}
|
|
52729
52610
|
}
|
|
52730
|
-
const DataUriPlugin = base_create(
|
|
52731
|
-
const DefinePlugin = base_create(
|
|
52611
|
+
const DataUriPlugin = base_create(BuiltinPluginName.DataUriPlugin, ()=>{}, 'compilation');
|
|
52612
|
+
const DefinePlugin = base_create(BuiltinPluginName.DefinePlugin, function(define1) {
|
|
52732
52613
|
const supportsBigIntLiteral = this.options.output.environment?.bigIntLiteral ?? false;
|
|
52733
52614
|
return normalizeValue(define1, supportsBigIntLiteral);
|
|
52734
52615
|
}, 'compilation');
|
|
@@ -52756,25 +52637,25 @@ const normalizeValue = (define1, supportsBigIntLiteral)=>{
|
|
|
52756
52637
|
return normalizeObject(define1);
|
|
52757
52638
|
};
|
|
52758
52639
|
class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
52759
|
-
name =
|
|
52640
|
+
name = BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
52760
52641
|
affectedHooks = 'compilation';
|
|
52761
52642
|
raw() {
|
|
52762
52643
|
return createBuiltinPlugin(this.name, void 0);
|
|
52763
52644
|
}
|
|
52764
52645
|
}
|
|
52765
52646
|
class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
52766
|
-
name =
|
|
52647
|
+
name = BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
52767
52648
|
affectedHooks = 'compilation';
|
|
52768
52649
|
raw() {
|
|
52769
52650
|
return createBuiltinPlugin(this.name, void 0);
|
|
52770
52651
|
}
|
|
52771
52652
|
}
|
|
52772
|
-
const DllEntryPlugin = base_create(
|
|
52653
|
+
const DllEntryPlugin = base_create(BuiltinPluginName.DllEntryPlugin, (context, entries, options)=>({
|
|
52773
52654
|
context,
|
|
52774
52655
|
entries,
|
|
52775
52656
|
name: options.name
|
|
52776
52657
|
}));
|
|
52777
|
-
const DllReferenceAgencyPlugin = base_create(
|
|
52658
|
+
const DllReferenceAgencyPlugin = base_create(BuiltinPluginName.DllReferenceAgencyPlugin, (options)=>options);
|
|
52778
52659
|
class EntryOptionPlugin {
|
|
52779
52660
|
apply(compiler) {
|
|
52780
52661
|
compiler.hooks.entryOption.tap('EntryOptionPlugin', (context, entry)=>{
|
|
@@ -52808,7 +52689,7 @@ class EntryOptionPlugin {
|
|
|
52808
52689
|
}
|
|
52809
52690
|
}
|
|
52810
52691
|
const lib_EntryOptionPlugin = EntryOptionPlugin;
|
|
52811
|
-
const OriginEntryPlugin = base_create(
|
|
52692
|
+
const OriginEntryPlugin = base_create(BuiltinPluginName.EntryPlugin, (context, entry, options = '')=>{
|
|
52812
52693
|
const entryOptions = 'string' == typeof options ? {
|
|
52813
52694
|
name: options
|
|
52814
52695
|
} : options;
|
|
@@ -52819,7 +52700,7 @@ const OriginEntryPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPl
|
|
|
52819
52700
|
};
|
|
52820
52701
|
}, 'make');
|
|
52821
52702
|
const EntryPlugin = OriginEntryPlugin;
|
|
52822
|
-
EntryPlugin.createDependency = (request)=>new
|
|
52703
|
+
EntryPlugin.createDependency = (request)=>new EntryDependency(request);
|
|
52823
52704
|
function getRawEntryOptions(entry) {
|
|
52824
52705
|
return {
|
|
52825
52706
|
name: entry.name,
|
|
@@ -52838,7 +52719,7 @@ function getRawEntryOptions(entry) {
|
|
|
52838
52719
|
class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
52839
52720
|
context;
|
|
52840
52721
|
entry;
|
|
52841
|
-
name =
|
|
52722
|
+
name = BuiltinPluginName.DynamicEntryPlugin;
|
|
52842
52723
|
affectedHooks = 'make';
|
|
52843
52724
|
constructor(context, entry){
|
|
52844
52725
|
super(), this.context = context, this.entry = entry;
|
|
@@ -52860,8 +52741,8 @@ class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
|
52860
52741
|
return createBuiltinPlugin(this.name, raw);
|
|
52861
52742
|
}
|
|
52862
52743
|
}
|
|
52863
|
-
const ElectronTargetPlugin = base_create(
|
|
52864
|
-
const EnableChunkLoadingPluginInner = base_create(
|
|
52744
|
+
const ElectronTargetPlugin = base_create(BuiltinPluginName.ElectronTargetPlugin, (context)=>context ?? 'none');
|
|
52745
|
+
const EnableChunkLoadingPluginInner = base_create(BuiltinPluginName.EnableChunkLoadingPlugin, (type)=>type);
|
|
52865
52746
|
const enabledTypes = new WeakMap();
|
|
52866
52747
|
const getEnabledTypes = (compiler)=>{
|
|
52867
52748
|
let set = enabledTypes.get(compiler);
|
|
@@ -52913,7 +52794,7 @@ const EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
|
52913
52794
|
};
|
|
52914
52795
|
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
52915
52796
|
type;
|
|
52916
|
-
name =
|
|
52797
|
+
name = BuiltinPluginName.EnableLibraryPlugin;
|
|
52917
52798
|
constructor(type){
|
|
52918
52799
|
super(), this.type = type;
|
|
52919
52800
|
}
|
|
@@ -52931,9 +52812,9 @@ class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
|
52931
52812
|
return createBuiltinPlugin(this.name, type);
|
|
52932
52813
|
}
|
|
52933
52814
|
}
|
|
52934
|
-
const EnableWasmLoadingPlugin = base_create(
|
|
52935
|
-
const EnsureChunkConditionsPlugin = base_create(
|
|
52936
|
-
const RemoveDuplicateModulesPlugin = base_create(
|
|
52815
|
+
const EnableWasmLoadingPlugin = base_create(BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type);
|
|
52816
|
+
const EnsureChunkConditionsPlugin = base_create(BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{});
|
|
52817
|
+
const RemoveDuplicateModulesPlugin = base_create(BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
52937
52818
|
class JsSplitChunkSizes {
|
|
52938
52819
|
static __to_binding(sizes) {
|
|
52939
52820
|
if ('number' == typeof sizes) return sizes;
|
|
@@ -52948,7 +52829,7 @@ class JsSplitChunkSizes {
|
|
|
52948
52829
|
}
|
|
52949
52830
|
class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
52950
52831
|
options;
|
|
52951
|
-
name =
|
|
52832
|
+
name = BuiltinPluginName.SplitChunksPlugin;
|
|
52952
52833
|
affectedHooks = 'thisCompilation';
|
|
52953
52834
|
constructor(options){
|
|
52954
52835
|
super(), this.options = options;
|
|
@@ -53049,7 +52930,7 @@ class EsmLibraryPlugin {
|
|
|
53049
52930
|
let err;
|
|
53050
52931
|
if (err = checkConfig(compiler.options)) throw new lib_WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
|
|
53051
52932
|
compiler.__internal__registerBuiltinPlugin({
|
|
53052
|
-
name:
|
|
52933
|
+
name: BuiltinPluginName.EsmLibraryPlugin,
|
|
53053
52934
|
options: {
|
|
53054
52935
|
preserveModules: this.options.preserveModules,
|
|
53055
52936
|
splitChunks: toRawSplitChunksOptions(this.options.splitChunks ?? false, compiler)
|
|
@@ -53061,8 +52942,8 @@ function checkConfig(config) {
|
|
|
53061
52942
|
if (config.optimization.concatenateModules) return 'You should disable `config.optimization.concatenateModules`';
|
|
53062
52943
|
if (false !== config.output.chunkFormat) return 'You should disable default chunkFormat by `config.output.chunkFormat = false`';
|
|
53063
52944
|
}
|
|
53064
|
-
const EvalDevToolModulePlugin = base_create(
|
|
53065
|
-
const EvalSourceMapDevToolPlugin = base_create(
|
|
52945
|
+
const EvalDevToolModulePlugin = base_create(BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation');
|
|
52946
|
+
const EvalSourceMapDevToolPlugin = base_create(BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
53066
52947
|
var util_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
53067
52948
|
function isNil(value) {
|
|
53068
52949
|
return null == value;
|
|
@@ -53459,6 +53340,7 @@ const getSwcLoaderOptions = (o, composeOptions)=>{
|
|
|
53459
53340
|
}
|
|
53460
53341
|
}
|
|
53461
53342
|
if (options.collectTypeScriptInfo) options.collectTypeScriptInfo = resolveCollectTypeScriptInfo(options.collectTypeScriptInfo);
|
|
53343
|
+
if (options.transformImport) options.transformImport = resolvePluginImport(options.transformImport);
|
|
53462
53344
|
const { rspackExperiments } = options;
|
|
53463
53345
|
if (rspackExperiments) {
|
|
53464
53346
|
if (rspackExperiments.import || rspackExperiments.pluginImport) rspackExperiments.import = resolvePluginImport(rspackExperiments.import || rspackExperiments.pluginImport);
|
|
@@ -53467,7 +53349,7 @@ const getSwcLoaderOptions = (o, composeOptions)=>{
|
|
|
53467
53349
|
return options;
|
|
53468
53350
|
};
|
|
53469
53351
|
const $assets = Symbol('assets');
|
|
53470
|
-
Object.defineProperty(
|
|
53352
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, util_util_default().inspect.custom, {
|
|
53471
53353
|
enumerable: true,
|
|
53472
53354
|
configurable: true,
|
|
53473
53355
|
value () {
|
|
@@ -53481,13 +53363,13 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].KnownBuildInfo
|
|
|
53481
53363
|
};
|
|
53482
53364
|
}
|
|
53483
53365
|
});
|
|
53484
|
-
Object.defineProperty(
|
|
53366
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'assets', {
|
|
53485
53367
|
enumerable: true,
|
|
53486
53368
|
configurable: true,
|
|
53487
53369
|
get () {
|
|
53488
|
-
if (this[
|
|
53370
|
+
if (this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL][$assets]) return this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL][$assets];
|
|
53489
53371
|
const assets = new Proxy(Object.create(null), {
|
|
53490
|
-
ownKeys: ()=>this[
|
|
53372
|
+
ownKeys: ()=>this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL].keys(),
|
|
53491
53373
|
getOwnPropertyDescriptor () {
|
|
53492
53374
|
return {
|
|
53493
53375
|
enumerable: true,
|
|
@@ -53495,7 +53377,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].KnownBuildInfo
|
|
|
53495
53377
|
};
|
|
53496
53378
|
}
|
|
53497
53379
|
});
|
|
53498
|
-
Object.defineProperty(this[
|
|
53380
|
+
Object.defineProperty(this[rspack_wasi_browser.BUILD_INFO_ASSETS_SYMBOL], $assets, {
|
|
53499
53381
|
enumerable: false,
|
|
53500
53382
|
configurable: true,
|
|
53501
53383
|
value: assets
|
|
@@ -53503,32 +53385,32 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].KnownBuildInfo
|
|
|
53503
53385
|
return assets;
|
|
53504
53386
|
}
|
|
53505
53387
|
});
|
|
53506
|
-
Object.defineProperty(
|
|
53388
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'fileDependencies', {
|
|
53507
53389
|
enumerable: true,
|
|
53508
53390
|
configurable: true,
|
|
53509
53391
|
get () {
|
|
53510
|
-
return new Set(this[
|
|
53392
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_FILE_DEPENDENCIES_SYMBOL]);
|
|
53511
53393
|
}
|
|
53512
53394
|
});
|
|
53513
|
-
Object.defineProperty(
|
|
53395
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'contextDependencies', {
|
|
53514
53396
|
enumerable: true,
|
|
53515
53397
|
configurable: true,
|
|
53516
53398
|
get () {
|
|
53517
|
-
return new Set(this[
|
|
53399
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_CONTEXT_DEPENDENCIES_SYMBOL]);
|
|
53518
53400
|
}
|
|
53519
53401
|
});
|
|
53520
|
-
Object.defineProperty(
|
|
53402
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'missingDependencies', {
|
|
53521
53403
|
enumerable: true,
|
|
53522
53404
|
configurable: true,
|
|
53523
53405
|
get () {
|
|
53524
|
-
return new Set(this[
|
|
53406
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_MISSING_DEPENDENCIES_SYMBOL]);
|
|
53525
53407
|
}
|
|
53526
53408
|
});
|
|
53527
|
-
Object.defineProperty(
|
|
53409
|
+
Object.defineProperty(rspack_wasi_browser.KnownBuildInfo.prototype, 'buildDependencies', {
|
|
53528
53410
|
enumerable: true,
|
|
53529
53411
|
configurable: true,
|
|
53530
53412
|
get () {
|
|
53531
|
-
return new Set(this[
|
|
53413
|
+
return new Set(this[rspack_wasi_browser.BUILD_INFO_BUILD_DEPENDENCIES_SYMBOL]);
|
|
53532
53414
|
}
|
|
53533
53415
|
});
|
|
53534
53416
|
const knownBuildInfoFields = new Set([
|
|
@@ -53539,16 +53421,16 @@ const knownBuildInfoFields = new Set([
|
|
|
53539
53421
|
'buildDependencies'
|
|
53540
53422
|
]);
|
|
53541
53423
|
const commitCustomFieldsToRust = (buildInfo)=>{
|
|
53542
|
-
if (Object.keys(buildInfo).some((key)=>!knownBuildInfoFields.has(key))) buildInfo[
|
|
53424
|
+
if (Object.keys(buildInfo).some((key)=>!knownBuildInfoFields.has(key))) buildInfo[rspack_wasi_browser.COMMIT_CUSTOM_FIELDS_SYMBOL]();
|
|
53543
53425
|
};
|
|
53544
|
-
Object.defineProperty(
|
|
53426
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule.prototype, 'identifier', {
|
|
53545
53427
|
enumerable: true,
|
|
53546
53428
|
configurable: true,
|
|
53547
53429
|
value () {
|
|
53548
|
-
return this[
|
|
53430
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
53549
53431
|
}
|
|
53550
53432
|
});
|
|
53551
|
-
Object.defineProperty(
|
|
53433
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule.prototype, 'originalSource', {
|
|
53552
53434
|
enumerable: true,
|
|
53553
53435
|
configurable: true,
|
|
53554
53436
|
value () {
|
|
@@ -53557,19 +53439,19 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].NormalModule.p
|
|
|
53557
53439
|
return null;
|
|
53558
53440
|
}
|
|
53559
53441
|
});
|
|
53560
|
-
Object.defineProperty(
|
|
53442
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule.prototype, 'emitFile', {
|
|
53561
53443
|
enumerable: true,
|
|
53562
53444
|
configurable: true,
|
|
53563
53445
|
value (filename, source, assetInfo) {
|
|
53564
53446
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
53565
53447
|
}
|
|
53566
53448
|
});
|
|
53567
|
-
Object.defineProperty(
|
|
53449
|
+
Object.defineProperty(rspack_wasi_browser.NormalModule, 'getCompilationHooks', {
|
|
53568
53450
|
enumerable: true,
|
|
53569
53451
|
configurable: true,
|
|
53570
53452
|
value (compilation) {
|
|
53571
|
-
if (!(
|
|
53572
|
-
const compilationHooksMap = compilation[
|
|
53453
|
+
if (!(rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL in compilation)) throw new TypeError("The 'compilation' argument must be an instance of Compilation");
|
|
53454
|
+
const compilationHooksMap = compilation[rspack_wasi_browser.COMPILATION_HOOKS_MAP_SYMBOL];
|
|
53573
53455
|
let hooks = compilationHooksMap.get(compilation);
|
|
53574
53456
|
if (void 0 === hooks) {
|
|
53575
53457
|
hooks = {
|
|
@@ -54081,8 +53963,8 @@ function convertArgs(args, raw) {
|
|
|
54081
53963
|
else if (raw && 'string' == typeof args[0]) args[0] = utils_Buffer.from(args[0], 'utf-8');
|
|
54082
53964
|
if (raw && args[0] instanceof Uint8Array && !utils_Buffer.isBuffer(args[0])) args[0] = utils_Buffer.from(args[0].buffer);
|
|
54083
53965
|
}
|
|
54084
|
-
const utils_loadLoader = (0,
|
|
54085
|
-
const utils_runSyncOrAsync = (0,
|
|
53966
|
+
const utils_loadLoader = (0, util_util.promisify)(loadLoader);
|
|
53967
|
+
const utils_runSyncOrAsync = (0, util_util.promisify)(function(fn, context, args, callback) {
|
|
54086
53968
|
let isSync = true;
|
|
54087
53969
|
let isDone = false;
|
|
54088
53970
|
let isError = false;
|
|
@@ -54282,7 +54164,7 @@ function getCurrentLoader(loaderContext, index = loaderContext.loaderIndex) {
|
|
|
54282
54164
|
}
|
|
54283
54165
|
async function runLoaders(compiler, context) {
|
|
54284
54166
|
const loaderState = context.loaderState;
|
|
54285
|
-
const pitch = loaderState ===
|
|
54167
|
+
const pitch = loaderState === JsLoaderState.Pitching;
|
|
54286
54168
|
const { resource } = context;
|
|
54287
54169
|
const uuid = trace_JavaScriptTracer.uuid();
|
|
54288
54170
|
trace_JavaScriptTracer.startAsync({
|
|
@@ -54480,7 +54362,7 @@ async function runLoaders(compiler, context) {
|
|
|
54480
54362
|
error.module = loaderContext._module;
|
|
54481
54363
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
54482
54364
|
error,
|
|
54483
|
-
severity:
|
|
54365
|
+
severity: JsRspackSeverity.Error
|
|
54484
54366
|
});
|
|
54485
54367
|
};
|
|
54486
54368
|
loaderContext.emitWarning = function(e) {
|
|
@@ -54491,15 +54373,15 @@ async function runLoaders(compiler, context) {
|
|
|
54491
54373
|
warning.module = loaderContext._module;
|
|
54492
54374
|
compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
|
54493
54375
|
error: warning,
|
|
54494
|
-
severity:
|
|
54376
|
+
severity: JsRspackSeverity.Warn
|
|
54495
54377
|
});
|
|
54496
54378
|
};
|
|
54497
54379
|
loaderContext.emitFile = function(name, content, sourceMap, assetInfo) {
|
|
54498
54380
|
let source;
|
|
54499
54381
|
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
|
|
54382
|
+
if ('string' == typeof sourceMap && (loaderContext.sourceMap || compiler.options.devtool && isUseSimpleSourceMap(compiler.options.devtool))) source = new webpack_sources_lib.OriginalSource(content, makePathsRelative(contextDirectory, sourceMap, compiler));
|
|
54383
|
+
if (loaderContext.sourceMap) source = new webpack_sources_lib.SourceMapSource(content, name, makePathsRelative(contextDirectory, sourceMap, compiler));
|
|
54384
|
+
} else source = new webpack_sources_lib.RawSource(content);
|
|
54503
54385
|
loaderContext._module.emitFile(name, source, assetInfo);
|
|
54504
54386
|
};
|
|
54505
54387
|
loaderContext.fs = compiler.inputFileSystem;
|
|
@@ -54509,7 +54391,7 @@ async function runLoaders(compiler, context) {
|
|
|
54509
54391
|
message: 'warning' === diagnostic.severity ? `ModuleWarning: ${diagnostic.message}` : `ModuleError: ${diagnostic.message}`,
|
|
54510
54392
|
moduleIdentifier: context._module.identifier()
|
|
54511
54393
|
});
|
|
54512
|
-
compiler._lastCompilation.__internal__pushDiagnostic(
|
|
54394
|
+
compiler._lastCompilation.__internal__pushDiagnostic(formatDiagnostic(d));
|
|
54513
54395
|
}
|
|
54514
54396
|
};
|
|
54515
54397
|
const getAbsolutify = memoize(()=>absolutify.bindCache(compiler.root));
|
|
@@ -54539,7 +54421,7 @@ async function runLoaders(compiler, context) {
|
|
|
54539
54421
|
let compilation = compiler._lastCompilation;
|
|
54540
54422
|
let step = 0;
|
|
54541
54423
|
while(compilation){
|
|
54542
|
-
|
|
54424
|
+
NormalModule.getCompilationHooks(compilation).loader.call(loaderContext, loaderContext._module);
|
|
54543
54425
|
compilation = compilation.compiler.parentCompilation;
|
|
54544
54426
|
step++;
|
|
54545
54427
|
if (step > 1000) throw Error('Too many nested child compiler, exceeded max limitation 1000');
|
|
@@ -54564,7 +54446,7 @@ async function runLoaders(compiler, context) {
|
|
|
54564
54446
|
context.__internal__parseMeta[key] = value;
|
|
54565
54447
|
};
|
|
54566
54448
|
const getWorkerLoaderContext = ()=>{
|
|
54567
|
-
const normalModule = loaderContext._module instanceof
|
|
54449
|
+
const normalModule = loaderContext._module instanceof NormalModule ? loaderContext._module : void 0;
|
|
54568
54450
|
const workerLoaderContext = {
|
|
54569
54451
|
hot: loaderContext.hot,
|
|
54570
54452
|
context: loaderContext.context,
|
|
@@ -54752,7 +54634,7 @@ async function runLoaders(compiler, context) {
|
|
|
54752
54634
|
const isomorphoicRun = async (fn, args)=>{
|
|
54753
54635
|
const currentLoaderObject = getCurrentLoader(loaderContext);
|
|
54754
54636
|
const parallelism = enableParallelism(currentLoaderObject);
|
|
54755
|
-
const pitch = loaderState ===
|
|
54637
|
+
const pitch = loaderState === JsLoaderState.Pitching;
|
|
54756
54638
|
const loaderName = extractLoaderName(currentLoaderObject.request);
|
|
54757
54639
|
let result;
|
|
54758
54640
|
trace_JavaScriptTracer.startAsync({
|
|
@@ -54771,7 +54653,7 @@ async function runLoaders(compiler, context) {
|
|
|
54771
54653
|
args
|
|
54772
54654
|
}, getWorkerLoaderHandlers(), 'object' == typeof currentLoaderObject?.parallel ? currentLoaderObject.parallel : void 0) || [];
|
|
54773
54655
|
else {
|
|
54774
|
-
if (loaderState ===
|
|
54656
|
+
if (loaderState === JsLoaderState.Normal) convertArgs(args, !!currentLoaderObject?.raw);
|
|
54775
54657
|
result = await utils_runSyncOrAsync(fn, loaderContext, args) || [];
|
|
54776
54658
|
}
|
|
54777
54659
|
trace_JavaScriptTracer.endAsync({
|
|
@@ -54788,7 +54670,7 @@ async function runLoaders(compiler, context) {
|
|
|
54788
54670
|
};
|
|
54789
54671
|
try {
|
|
54790
54672
|
switch(loaderState){
|
|
54791
|
-
case
|
|
54673
|
+
case JsLoaderState.Pitching:
|
|
54792
54674
|
while(loaderContext.loaderIndex < loaderContext.loaders.length){
|
|
54793
54675
|
const currentLoaderObject = loaderContext.loaders[loaderContext.loaderIndex];
|
|
54794
54676
|
const parallelism = enableParallelism(currentLoaderObject);
|
|
@@ -54816,7 +54698,7 @@ async function runLoaders(compiler, context) {
|
|
|
54816
54698
|
}
|
|
54817
54699
|
}
|
|
54818
54700
|
break;
|
|
54819
|
-
case
|
|
54701
|
+
case JsLoaderState.Normal:
|
|
54820
54702
|
{
|
|
54821
54703
|
let content = context.content;
|
|
54822
54704
|
let sourceMap = JsSourceMap.__from_binding(context.sourceMap);
|
|
@@ -55142,23 +55024,23 @@ const getRawModuleRule = (rule, path, options, upperType)=>{
|
|
|
55142
55024
|
};
|
|
55143
55025
|
function getRawRuleSetCondition(condition) {
|
|
55144
55026
|
if ('string' == typeof condition) return {
|
|
55145
|
-
type:
|
|
55027
|
+
type: RawRuleSetConditionType.string,
|
|
55146
55028
|
string: condition
|
|
55147
55029
|
};
|
|
55148
55030
|
if (condition instanceof RegExp) return {
|
|
55149
|
-
type:
|
|
55031
|
+
type: RawRuleSetConditionType.regexp,
|
|
55150
55032
|
regexp: condition
|
|
55151
55033
|
};
|
|
55152
55034
|
if ('function' == typeof condition) return {
|
|
55153
|
-
type:
|
|
55035
|
+
type: RawRuleSetConditionType.func,
|
|
55154
55036
|
func: condition
|
|
55155
55037
|
};
|
|
55156
55038
|
if (Array.isArray(condition)) return {
|
|
55157
|
-
type:
|
|
55039
|
+
type: RawRuleSetConditionType.array,
|
|
55158
55040
|
array: condition.map((i)=>getRawRuleSetCondition(i))
|
|
55159
55041
|
};
|
|
55160
55042
|
if ('object' == typeof condition && null !== condition) return {
|
|
55161
|
-
type:
|
|
55043
|
+
type: RawRuleSetConditionType.logical,
|
|
55162
55044
|
logical: [
|
|
55163
55045
|
getRawRuleSetLogicalConditions(condition)
|
|
55164
55046
|
]
|
|
@@ -55393,7 +55275,7 @@ class ExternalsPlugin extends RspackBuiltinPlugin {
|
|
|
55393
55275
|
type;
|
|
55394
55276
|
externals;
|
|
55395
55277
|
placeInInitial;
|
|
55396
|
-
name =
|
|
55278
|
+
name = BuiltinPluginName.ExternalsPlugin;
|
|
55397
55279
|
#resolveRequestCache = new Map();
|
|
55398
55280
|
constructor(type, externals, placeInInitial){
|
|
55399
55281
|
super(), this.type = type, this.externals = externals, this.placeInInitial = placeInInitial;
|
|
@@ -55494,12 +55376,12 @@ function getRawExternalItemValue(value) {
|
|
|
55494
55376
|
]));
|
|
55495
55377
|
return value;
|
|
55496
55378
|
}
|
|
55497
|
-
const FetchCompileAsyncWasmPlugin = base_create(
|
|
55498
|
-
const FileUriPlugin = base_create(
|
|
55499
|
-
const FlagDependencyExportsPlugin = base_create(
|
|
55379
|
+
const FetchCompileAsyncWasmPlugin = base_create(BuiltinPluginName.FetchCompileAsyncWasmPlugin, ()=>{}, 'thisCompilation');
|
|
55380
|
+
const FileUriPlugin = base_create(BuiltinPluginName.FileUriPlugin, ()=>{}, 'compilation');
|
|
55381
|
+
const FlagDependencyExportsPlugin = base_create(BuiltinPluginName.FlagDependencyExportsPlugin, ()=>{}, 'compilation');
|
|
55500
55382
|
class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
55501
55383
|
global;
|
|
55502
|
-
name =
|
|
55384
|
+
name = BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
55503
55385
|
affectedHooks = 'compilation';
|
|
55504
55386
|
constructor(global){
|
|
55505
55387
|
super(), this.global = global;
|
|
@@ -55509,13 +55391,13 @@ class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
|
55509
55391
|
}
|
|
55510
55392
|
}
|
|
55511
55393
|
class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
55512
|
-
name =
|
|
55394
|
+
name = BuiltinPluginName.HotModuleReplacementPlugin;
|
|
55513
55395
|
raw(compiler) {
|
|
55514
55396
|
if (void 0 === compiler.options.output.strictModuleErrorHandling) compiler.options.output.strictModuleErrorHandling = true;
|
|
55515
55397
|
return createBuiltinPlugin(this.name, void 0);
|
|
55516
55398
|
}
|
|
55517
55399
|
}
|
|
55518
|
-
const HttpExternalsRspackPlugin = base_create(
|
|
55400
|
+
const HttpExternalsRspackPlugin = base_create(BuiltinPluginName.HttpExternalsRspackPlugin, (css, webAsync)=>({
|
|
55519
55401
|
css,
|
|
55520
55402
|
webAsync
|
|
55521
55403
|
}));
|
|
@@ -55537,7 +55419,7 @@ const defaultHttpClientForBrowser = async (url, headers)=>{
|
|
|
55537
55419
|
};
|
|
55538
55420
|
class HttpUriPlugin extends RspackBuiltinPlugin {
|
|
55539
55421
|
options;
|
|
55540
|
-
name =
|
|
55422
|
+
name = BuiltinPluginName.HttpUriPlugin;
|
|
55541
55423
|
affectedHooks = 'compilation';
|
|
55542
55424
|
constructor(options){
|
|
55543
55425
|
super(), this.options = options;
|
|
@@ -55608,7 +55490,7 @@ const cleanPluginHooks = (compilation)=>{
|
|
|
55608
55490
|
const fs_0 = __webpack_require__("./src/browser/fs.ts");
|
|
55609
55491
|
var plugin_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
55610
55492
|
let HTML_PLUGIN_UID = 0;
|
|
55611
|
-
const HtmlRspackPluginImpl = base_create(
|
|
55493
|
+
const HtmlRspackPluginImpl = base_create(BuiltinPluginName.HtmlRspackPlugin, function(c = {}) {
|
|
55612
55494
|
const uid = HTML_PLUGIN_UID++;
|
|
55613
55495
|
const meta = {};
|
|
55614
55496
|
for(const key in c.meta){
|
|
@@ -55766,12 +55648,12 @@ HtmlRspackPlugin.createHtmlTagObject = (tagName, attributes, innerHTML)=>({
|
|
|
55766
55648
|
});
|
|
55767
55649
|
HtmlRspackPlugin.getCompilationHooks = getPluginHooks;
|
|
55768
55650
|
HtmlRspackPlugin.version = 5;
|
|
55769
|
-
const IgnorePlugin = base_create(
|
|
55770
|
-
const InferAsyncModulesPlugin = base_create(
|
|
55771
|
-
const InlineExportsPlugin = base_create(
|
|
55651
|
+
const IgnorePlugin = base_create(BuiltinPluginName.IgnorePlugin, (options)=>options);
|
|
55652
|
+
const InferAsyncModulesPlugin = base_create(BuiltinPluginName.InferAsyncModulesPlugin, ()=>{}, 'compilation');
|
|
55653
|
+
const InlineExportsPlugin = base_create(BuiltinPluginName.InlineExportsPlugin, ()=>{}, 'compilation');
|
|
55772
55654
|
const JavascriptModulesPlugin_compilationHooksMap = new WeakMap();
|
|
55773
55655
|
class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
55774
|
-
name =
|
|
55656
|
+
name = BuiltinPluginName.JavascriptModulesPlugin;
|
|
55775
55657
|
affectedHooks = 'compilation';
|
|
55776
55658
|
raw() {
|
|
55777
55659
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -55791,9 +55673,9 @@ class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
|
55791
55673
|
return hooks;
|
|
55792
55674
|
}
|
|
55793
55675
|
}
|
|
55794
|
-
const JsLoaderRspackPlugin = base_create(
|
|
55795
|
-
const JsonModulesPlugin = base_create(
|
|
55796
|
-
const LibManifestPlugin = base_create(
|
|
55676
|
+
const JsLoaderRspackPlugin = base_create(BuiltinPluginName.JsLoaderRspackPlugin, (compiler)=>runLoaders.bind(null, compiler), 'thisCompilation');
|
|
55677
|
+
const JsonModulesPlugin = base_create(BuiltinPluginName.JsonModulesPlugin, ()=>{}, 'compilation');
|
|
55678
|
+
const LibManifestPlugin = base_create(BuiltinPluginName.LibManifestPlugin, (options)=>{
|
|
55797
55679
|
const { context, entryOnly, format, name, path, type } = options;
|
|
55798
55680
|
return {
|
|
55799
55681
|
context,
|
|
@@ -55804,7 +55686,7 @@ const LibManifestPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPl
|
|
|
55804
55686
|
type
|
|
55805
55687
|
};
|
|
55806
55688
|
});
|
|
55807
|
-
const LightningCssMinimizerRspackPlugin = base_create(
|
|
55689
|
+
const LightningCssMinimizerRspackPlugin = base_create(BuiltinPluginName.LightningCssMinimizerRspackPlugin, function(options) {
|
|
55808
55690
|
const { include, exclude, nonStandard, pseudoClasses, drafts } = options?.minimizerOptions ?? {};
|
|
55809
55691
|
let targets = [
|
|
55810
55692
|
'fully supports es6'
|
|
@@ -55837,13 +55719,13 @@ const LightningCssMinimizerRspackPlugin = base_create(external_rspack_wasi_brows
|
|
|
55837
55719
|
}
|
|
55838
55720
|
};
|
|
55839
55721
|
});
|
|
55840
|
-
const LimitChunkCountPlugin = base_create(
|
|
55722
|
+
const LimitChunkCountPlugin = base_create(BuiltinPluginName.LimitChunkCountPlugin, (options)=>options);
|
|
55841
55723
|
const lazyCompilationMiddleware = ()=>{
|
|
55842
55724
|
throw new Error('lazy compilation middleware is not supported in browser');
|
|
55843
55725
|
};
|
|
55844
55726
|
class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
55845
55727
|
deterministic;
|
|
55846
|
-
name =
|
|
55728
|
+
name = BuiltinPluginName.MangleExportsPlugin;
|
|
55847
55729
|
affectedHooks = 'compilation';
|
|
55848
55730
|
constructor(deterministic){
|
|
55849
55731
|
super(), this.deterministic = deterministic;
|
|
@@ -55852,45 +55734,45 @@ class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
|
55852
55734
|
return createBuiltinPlugin(this.name, this.deterministic);
|
|
55853
55735
|
}
|
|
55854
55736
|
}
|
|
55855
|
-
const MergeDuplicateChunksPlugin = base_create(
|
|
55856
|
-
const ModuleChunkFormatPlugin = base_create(
|
|
55737
|
+
const MergeDuplicateChunksPlugin = base_create(BuiltinPluginName.MergeDuplicateChunksPlugin, ()=>{});
|
|
55738
|
+
const ModuleChunkFormatPlugin = base_create(BuiltinPluginName.ModuleChunkFormatPlugin, ()=>{});
|
|
55857
55739
|
class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
55858
|
-
name =
|
|
55740
|
+
name = BuiltinPluginName.ModuleConcatenationPlugin;
|
|
55859
55741
|
affectedHooks = 'compilation';
|
|
55860
55742
|
raw() {
|
|
55861
55743
|
return createBuiltinPlugin(this.name, void 0);
|
|
55862
55744
|
}
|
|
55863
55745
|
}
|
|
55864
|
-
const ModuleInfoHeaderPlugin = base_create(
|
|
55865
|
-
const NamedChunkIdsPlugin = base_create(
|
|
55866
|
-
const NamedModuleIdsPlugin = base_create(
|
|
55746
|
+
const ModuleInfoHeaderPlugin = base_create(BuiltinPluginName.ModuleInfoHeaderPlugin, (verbose)=>verbose, 'compilation');
|
|
55747
|
+
const NamedChunkIdsPlugin = base_create(BuiltinPluginName.NamedChunkIdsPlugin, ()=>{}, 'compilation');
|
|
55748
|
+
const NamedModuleIdsPlugin = base_create(BuiltinPluginName.NamedModuleIdsPlugin, ()=>{}, 'compilation');
|
|
55867
55749
|
class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
55868
|
-
name =
|
|
55750
|
+
name = BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
55869
55751
|
affectedHooks = 'compilation';
|
|
55870
55752
|
raw() {
|
|
55871
55753
|
return createBuiltinPlugin(this.name, void 0);
|
|
55872
55754
|
}
|
|
55873
55755
|
}
|
|
55874
55756
|
class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
55875
|
-
name =
|
|
55757
|
+
name = BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
55876
55758
|
affectedHooks = 'compilation';
|
|
55877
55759
|
raw() {
|
|
55878
55760
|
return createBuiltinPlugin(this.name, void 0);
|
|
55879
55761
|
}
|
|
55880
55762
|
}
|
|
55881
|
-
const NodeTargetPlugin = base_create(
|
|
55882
|
-
const NoEmitOnErrorsPlugin = base_create(
|
|
55883
|
-
const NormalModuleReplacementPlugin = base_create(
|
|
55763
|
+
const NodeTargetPlugin = base_create(BuiltinPluginName.NodeTargetPlugin, ()=>void 0);
|
|
55764
|
+
const NoEmitOnErrorsPlugin = base_create(BuiltinPluginName.NoEmitOnErrorsPlugin, ()=>void 0);
|
|
55765
|
+
const NormalModuleReplacementPlugin = base_create(BuiltinPluginName.NormalModuleReplacementPlugin, (resourceRegExp, newResource)=>({
|
|
55884
55766
|
resourceRegExp,
|
|
55885
55767
|
newResource: 'function' == typeof newResource ? (data)=>{
|
|
55886
55768
|
newResource(data);
|
|
55887
55769
|
return data;
|
|
55888
55770
|
} : newResource
|
|
55889
55771
|
}));
|
|
55890
|
-
const OccurrenceChunkIdsPlugin = base_create(
|
|
55772
|
+
const OccurrenceChunkIdsPlugin = base_create(BuiltinPluginName.OccurrenceChunkIdsPlugin, (options)=>({
|
|
55891
55773
|
...options
|
|
55892
55774
|
}), 'compilation');
|
|
55893
|
-
const ProgressPlugin = base_create(
|
|
55775
|
+
const ProgressPlugin = base_create(BuiltinPluginName.ProgressPlugin, (progress = {})=>{
|
|
55894
55776
|
if ('function' == typeof progress) return {
|
|
55895
55777
|
handler: (percentage, msg, info)=>{
|
|
55896
55778
|
progress(percentage, msg, info);
|
|
@@ -55898,7 +55780,7 @@ const ProgressPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlugi
|
|
|
55898
55780
|
};
|
|
55899
55781
|
return progress;
|
|
55900
55782
|
});
|
|
55901
|
-
const ProvidePlugin = base_create(
|
|
55783
|
+
const ProvidePlugin = base_create(BuiltinPluginName.ProvidePlugin, (provide)=>{
|
|
55902
55784
|
const entries = Object.entries(provide).map(([key, value])=>{
|
|
55903
55785
|
if ('string' == typeof value) value = [
|
|
55904
55786
|
value
|
|
@@ -55910,9 +55792,9 @@ const ProvidePlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlugin
|
|
|
55910
55792
|
});
|
|
55911
55793
|
return Object.fromEntries(entries);
|
|
55912
55794
|
}, 'compilation');
|
|
55913
|
-
const RealContentHashPlugin = base_create(
|
|
55914
|
-
const RemoveEmptyChunksPlugin = base_create(
|
|
55915
|
-
const RsdoctorPluginImpl = base_create(
|
|
55795
|
+
const RealContentHashPlugin = base_create(BuiltinPluginName.RealContentHashPlugin, ()=>{}, 'compilation');
|
|
55796
|
+
const RemoveEmptyChunksPlugin = base_create(BuiltinPluginName.RemoveEmptyChunksPlugin, ()=>{}, 'compilation');
|
|
55797
|
+
const RsdoctorPluginImpl = base_create(BuiltinPluginName.RsdoctorPlugin, function(c = {
|
|
55916
55798
|
moduleGraphFeatures: true,
|
|
55917
55799
|
chunkGraphFeatures: true
|
|
55918
55800
|
}) {
|
|
@@ -55950,35 +55832,35 @@ RsdoctorPlugin.getCompilationHooks = (compilation)=>{
|
|
|
55950
55832
|
return hooks;
|
|
55951
55833
|
};
|
|
55952
55834
|
const createRsdoctorPluginHooksRegisters = (getCompiler, createTap)=>({
|
|
55953
|
-
registerRsdoctorPluginModuleGraphTaps: createTap(
|
|
55835
|
+
registerRsdoctorPluginModuleGraphTaps: createTap(RegisterJsTapKind.RsdoctorPluginModuleGraph, function() {
|
|
55954
55836
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).moduleGraph;
|
|
55955
55837
|
}, function(queried) {
|
|
55956
55838
|
return async function(data) {
|
|
55957
55839
|
return queried.promise(data);
|
|
55958
55840
|
};
|
|
55959
55841
|
}),
|
|
55960
|
-
registerRsdoctorPluginChunkGraphTaps: createTap(
|
|
55842
|
+
registerRsdoctorPluginChunkGraphTaps: createTap(RegisterJsTapKind.RsdoctorPluginChunkGraph, function() {
|
|
55961
55843
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).chunkGraph;
|
|
55962
55844
|
}, function(queried) {
|
|
55963
55845
|
return async function(data) {
|
|
55964
55846
|
return queried.promise(data);
|
|
55965
55847
|
};
|
|
55966
55848
|
}),
|
|
55967
|
-
registerRsdoctorPluginModuleIdsTaps: createTap(
|
|
55849
|
+
registerRsdoctorPluginModuleIdsTaps: createTap(RegisterJsTapKind.RsdoctorPluginModuleIds, function() {
|
|
55968
55850
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).moduleIds;
|
|
55969
55851
|
}, function(queried) {
|
|
55970
55852
|
return async function(data) {
|
|
55971
55853
|
return queried.promise(data);
|
|
55972
55854
|
};
|
|
55973
55855
|
}),
|
|
55974
|
-
registerRsdoctorPluginModuleSourcesTaps: createTap(
|
|
55856
|
+
registerRsdoctorPluginModuleSourcesTaps: createTap(RegisterJsTapKind.RsdoctorPluginModuleSources, function() {
|
|
55975
55857
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).moduleSources;
|
|
55976
55858
|
}, function(queried) {
|
|
55977
55859
|
return async function(data) {
|
|
55978
55860
|
return queried.promise(data);
|
|
55979
55861
|
};
|
|
55980
55862
|
}),
|
|
55981
|
-
registerRsdoctorPluginAssetsTaps: createTap(
|
|
55863
|
+
registerRsdoctorPluginAssetsTaps: createTap(RegisterJsTapKind.RsdoctorPluginAssets, function() {
|
|
55982
55864
|
return RsdoctorPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).assets;
|
|
55983
55865
|
}, function(queried) {
|
|
55984
55866
|
return async function(data) {
|
|
@@ -55986,10 +55868,10 @@ const createRsdoctorPluginHooksRegisters = (getCompiler, createTap)=>({
|
|
|
55986
55868
|
};
|
|
55987
55869
|
})
|
|
55988
55870
|
});
|
|
55989
|
-
const RslibPlugin = base_create(
|
|
55990
|
-
const RstestPlugin = base_create(
|
|
55991
|
-
const RuntimeChunkPlugin = base_create(
|
|
55992
|
-
const RuntimePluginImpl = base_create(
|
|
55871
|
+
const RslibPlugin = base_create(BuiltinPluginName.RslibPlugin, (rslib)=>rslib);
|
|
55872
|
+
const RstestPlugin = base_create(BuiltinPluginName.RstestPlugin, (rstest)=>rstest);
|
|
55873
|
+
const RuntimeChunkPlugin = base_create(BuiltinPluginName.RuntimeChunkPlugin, (options)=>options, 'thisCompilation');
|
|
55874
|
+
const RuntimePluginImpl = base_create(rspack_wasi_browser.BuiltinPluginName.RuntimePlugin, ()=>{}, 'compilation');
|
|
55993
55875
|
const RuntimePlugin = RuntimePluginImpl;
|
|
55994
55876
|
const RuntimePlugin_compilationHooksMap = new WeakMap();
|
|
55995
55877
|
RuntimePlugin.getCompilationHooks = (compilation)=>{
|
|
@@ -56019,28 +55901,28 @@ RuntimePlugin.getCompilationHooks = (compilation)=>{
|
|
|
56019
55901
|
return hooks;
|
|
56020
55902
|
};
|
|
56021
55903
|
const createRuntimePluginHooksRegisters = (getCompiler, createTap)=>({
|
|
56022
|
-
registerRuntimePluginCreateScriptTaps: createTap(
|
|
55904
|
+
registerRuntimePluginCreateScriptTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginCreateScript, function() {
|
|
56023
55905
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).createScript;
|
|
56024
55906
|
}, function(queried) {
|
|
56025
55907
|
return function(data) {
|
|
56026
55908
|
return queried.call(data.code, data.chunk);
|
|
56027
55909
|
};
|
|
56028
55910
|
}),
|
|
56029
|
-
registerRuntimePluginCreateLinkTaps: createTap(
|
|
55911
|
+
registerRuntimePluginCreateLinkTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginCreateLink, function() {
|
|
56030
55912
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).createLink;
|
|
56031
55913
|
}, function(queried) {
|
|
56032
55914
|
return function(data) {
|
|
56033
55915
|
return queried.call(data.code, data.chunk);
|
|
56034
55916
|
};
|
|
56035
55917
|
}),
|
|
56036
|
-
registerRuntimePluginLinkPreloadTaps: createTap(
|
|
55918
|
+
registerRuntimePluginLinkPreloadTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginLinkPreload, function() {
|
|
56037
55919
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).linkPreload;
|
|
56038
55920
|
}, function(queried) {
|
|
56039
55921
|
return function(data) {
|
|
56040
55922
|
return queried.call(data.code, data.chunk);
|
|
56041
55923
|
};
|
|
56042
55924
|
}),
|
|
56043
|
-
registerRuntimePluginLinkPrefetchTaps: createTap(
|
|
55925
|
+
registerRuntimePluginLinkPrefetchTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.RuntimePluginLinkPrefetch, function() {
|
|
56044
55926
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).linkPrefetch;
|
|
56045
55927
|
}, function(queried) {
|
|
56046
55928
|
return function(data) {
|
|
@@ -56062,7 +55944,7 @@ class Coordinator {
|
|
|
56062
55944
|
configurable: false,
|
|
56063
55945
|
writable: false,
|
|
56064
55946
|
value: ()=>{
|
|
56065
|
-
if (!this.#binding) this.#binding = new
|
|
55947
|
+
if (!this.#binding) this.#binding = new JsCoordinator(()=>{
|
|
56066
55948
|
if (!this.#serverCompiler) throw new Error("[RscPlugin] Coordinator.getOrInitBinding() called before the server compiler was attached. Call coordinator.applyServerCompiler(serverCompiler) first.");
|
|
56067
55949
|
return this.#serverCompiler[GET_COMPILER_ID]();
|
|
56068
55950
|
});
|
|
@@ -56120,9 +56002,13 @@ class RscServerPlugin extends RspackBuiltinPlugin {
|
|
|
56120
56002
|
}
|
|
56121
56003
|
raw(compiler) {
|
|
56122
56004
|
this.#options.coordinator.applyServerCompiler(compiler);
|
|
56005
|
+
const { coordinator, onServerComponentChanges } = this.#options;
|
|
56006
|
+
let onManifest;
|
|
56007
|
+
if (this.#options.onManifest) onManifest = (json)=>Promise.resolve(this.#options.onManifest(JSON.parse(json)));
|
|
56123
56008
|
return createBuiltinPlugin(this.name, {
|
|
56124
|
-
coordinator:
|
|
56125
|
-
onServerComponentChanges
|
|
56009
|
+
coordinator: coordinator[GET_OR_INIT_BINDING](),
|
|
56010
|
+
onServerComponentChanges,
|
|
56011
|
+
onManifest
|
|
56126
56012
|
});
|
|
56127
56013
|
}
|
|
56128
56014
|
}
|
|
@@ -56152,20 +56038,20 @@ const rsc = {
|
|
|
56152
56038
|
ssr: 'server-side-rendering'
|
|
56153
56039
|
}
|
|
56154
56040
|
};
|
|
56155
|
-
const SideEffectsFlagPlugin = base_create(
|
|
56156
|
-
const SizeLimitsPlugin = base_create(
|
|
56041
|
+
const SideEffectsFlagPlugin = base_create(BuiltinPluginName.SideEffectsFlagPlugin, ()=>{}, 'compilation');
|
|
56042
|
+
const SizeLimitsPlugin = base_create(BuiltinPluginName.SizeLimitsPlugin, (options)=>{
|
|
56157
56043
|
const hints = false === options.hints ? void 0 : options.hints;
|
|
56158
56044
|
return {
|
|
56159
56045
|
...options,
|
|
56160
56046
|
hints
|
|
56161
56047
|
};
|
|
56162
56048
|
});
|
|
56163
|
-
const SourceMapDevToolPlugin = base_create(
|
|
56049
|
+
const SourceMapDevToolPlugin = base_create(BuiltinPluginName.SourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
56164
56050
|
var SubresourceIntegrityPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
56165
56051
|
const SubresourceIntegrityPlugin_PLUGIN_NAME = 'SubresourceIntegrityPlugin';
|
|
56166
56052
|
const NATIVE_HTML_PLUGIN = 'HtmlRspackPlugin';
|
|
56167
56053
|
const HTTP_PROTOCOL_REGEX = /^https?:/;
|
|
56168
|
-
const NativeSubresourceIntegrityPlugin = base_create(
|
|
56054
|
+
const NativeSubresourceIntegrityPlugin = base_create(BuiltinPluginName.SubresourceIntegrityPlugin, function(options) {
|
|
56169
56055
|
let htmlPlugin = 'Disabled';
|
|
56170
56056
|
if (options.htmlPlugin === NATIVE_HTML_PLUGIN) htmlPlugin = 'Native';
|
|
56171
56057
|
else if ('string' == typeof options.htmlPlugin) htmlPlugin = 'JavaScript';
|
|
@@ -56361,7 +56247,7 @@ function getRawExtractCommentsOptions(extractComments) {
|
|
|
56361
56247
|
return res;
|
|
56362
56248
|
}
|
|
56363
56249
|
}
|
|
56364
|
-
const SwcJsMinimizerRspackPlugin = base_create(
|
|
56250
|
+
const SwcJsMinimizerRspackPlugin = base_create(BuiltinPluginName.SwcJsMinimizerRspackPlugin, function(options) {
|
|
56365
56251
|
let compress = options?.minimizerOptions?.compress ?? true;
|
|
56366
56252
|
const mangle = options?.minimizerOptions?.mangle ?? true;
|
|
56367
56253
|
const ecma = options?.minimizerOptions?.ecma ?? (this.target?.esVersion && this.target.esVersion > 2022 ? 2022 : this.target.esVersion) ?? 5;
|
|
@@ -56391,9 +56277,9 @@ const SwcJsMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_.
|
|
|
56391
56277
|
}
|
|
56392
56278
|
};
|
|
56393
56279
|
}, 'compilation');
|
|
56394
|
-
const URLPlugin = base_create(
|
|
56280
|
+
const URLPlugin = base_create(BuiltinPluginName.URLPlugin, ()=>{}, 'compilation');
|
|
56395
56281
|
class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
|
|
56396
|
-
name =
|
|
56282
|
+
name = BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
56397
56283
|
raw(compiler) {
|
|
56398
56284
|
compiler.options.output.chunkLoading = "import-scripts";
|
|
56399
56285
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -56404,7 +56290,8 @@ class WorkerPlugin extends RspackBuiltinPlugin {
|
|
|
56404
56290
|
wasmLoading;
|
|
56405
56291
|
module;
|
|
56406
56292
|
workerPublicPath;
|
|
56407
|
-
name =
|
|
56293
|
+
name = BuiltinPluginName.WorkerPlugin;
|
|
56294
|
+
affectedHooks = 'compilation';
|
|
56408
56295
|
constructor(chunkLoading, wasmLoading, module, workerPublicPath){
|
|
56409
56296
|
super(), this.chunkLoading = chunkLoading, this.wasmLoading = wasmLoading, this.module = module, this.workerPublicPath = workerPublicPath;
|
|
56410
56297
|
}
|
|
@@ -56846,7 +56733,7 @@ function eachParent(file, callback) {
|
|
|
56846
56733
|
do {
|
|
56847
56734
|
const result = callback(loc);
|
|
56848
56735
|
if (void 0 !== result) return result;
|
|
56849
|
-
}while (loc !== (loc = path_browserify.dirname(loc)))
|
|
56736
|
+
}while (loc !== (loc = path_browserify.dirname(loc)))
|
|
56850
56737
|
}
|
|
56851
56738
|
function findConfigFile(from) {
|
|
56852
56739
|
return eachParent(from, (dir)=>{
|
|
@@ -57447,7 +57334,7 @@ const TARGETS = [
|
|
|
57447
57334
|
/^browserslist(?::(.+))?$/,
|
|
57448
57335
|
(rest, context)=>{
|
|
57449
57336
|
const inlineQuery = rest ? rest.trim() : null;
|
|
57450
|
-
const browsers =
|
|
57337
|
+
const browsers = rspack_wasi_browser.loadBrowserslist(inlineQuery, context);
|
|
57451
57338
|
if (!browsers || !inlineQuery && !hasBrowserslistConfig(context) && !target_process.env.BROWSERSLIST) throw new Error(`No browserslist config found to handle the 'browserslist' target.
|
|
57452
57339
|
See https://github.com/browserslist/browserslist#queries for possible ways to provide a config.
|
|
57453
57340
|
The recommended way is to add a 'browserslist' key to your package.json and list supported browsers (resp. node.js versions).
|
|
@@ -57779,7 +57666,6 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
57779
57666
|
production
|
|
57780
57667
|
});
|
|
57781
57668
|
options.resolve = cleverMerge(getResolveDefaults({
|
|
57782
|
-
context: options.context,
|
|
57783
57669
|
targetProperties,
|
|
57784
57670
|
mode: options.mode
|
|
57785
57671
|
}), options.resolve);
|
|
@@ -58241,7 +58127,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
58241
58127
|
});
|
|
58242
58128
|
D(output, 'bundlerInfo', {});
|
|
58243
58129
|
if ('object' == typeof output.bundlerInfo) {
|
|
58244
|
-
D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
58130
|
+
D(output.bundlerInfo, 'version', "2.0.0-beta.7");
|
|
58245
58131
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
58246
58132
|
D(output.bundlerInfo, 'force', !output.library);
|
|
58247
58133
|
}
|
|
@@ -58294,7 +58180,6 @@ const applyPerformanceDefaults = (performance, { production })=>{
|
|
|
58294
58180
|
F(performance, 'hints', ()=>production ? 'warning' : false);
|
|
58295
58181
|
};
|
|
58296
58182
|
const applyOptimizationDefaults = (optimization, { production, development })=>{
|
|
58297
|
-
D(optimization, 'removeAvailableModules', true);
|
|
58298
58183
|
D(optimization, 'removeEmptyChunks', true);
|
|
58299
58184
|
D(optimization, 'mergeDuplicateChunks', true);
|
|
58300
58185
|
F(optimization, 'moduleIds', ()=>{
|
|
@@ -58383,7 +58268,7 @@ const getResolveLoaderDefaults = ()=>{
|
|
|
58383
58268
|
};
|
|
58384
58269
|
return resolveOptions;
|
|
58385
58270
|
};
|
|
58386
|
-
const getResolveDefaults = ({
|
|
58271
|
+
const getResolveDefaults = ({ targetProperties, mode })=>{
|
|
58387
58272
|
const conditions = [
|
|
58388
58273
|
'webpack'
|
|
58389
58274
|
];
|
|
@@ -58397,8 +58282,7 @@ const getResolveDefaults = ({ context, targetProperties, mode })=>{
|
|
|
58397
58282
|
}
|
|
58398
58283
|
const jsExtensions = [
|
|
58399
58284
|
'.js',
|
|
58400
|
-
'.json'
|
|
58401
|
-
'.wasm'
|
|
58285
|
+
'.json'
|
|
58402
58286
|
];
|
|
58403
58287
|
const tp = targetProperties;
|
|
58404
58288
|
const browserField = tp && tp.web && (!tp.node || tp.electron && tp.electronRenderer);
|
|
@@ -58451,9 +58335,7 @@ const getResolveDefaults = ({ context, targetProperties, mode })=>{
|
|
|
58451
58335
|
exportsFields: [
|
|
58452
58336
|
'exports'
|
|
58453
58337
|
],
|
|
58454
|
-
roots: [
|
|
58455
|
-
context
|
|
58456
|
-
],
|
|
58338
|
+
roots: [],
|
|
58457
58339
|
mainFields: [
|
|
58458
58340
|
'main'
|
|
58459
58341
|
],
|
|
@@ -58477,17 +58359,16 @@ const getResolveDefaults = ({ context, targetProperties, mode })=>{
|
|
|
58477
58359
|
unknown: cjsDeps()
|
|
58478
58360
|
}
|
|
58479
58361
|
};
|
|
58480
|
-
const styleConditions = [];
|
|
58481
|
-
styleConditions.push('webpack');
|
|
58482
|
-
styleConditions.push('development' === mode ? 'development' : 'production');
|
|
58483
|
-
styleConditions.push('style');
|
|
58484
58362
|
resolveOptions.byDependency['css-import'] = {
|
|
58485
58363
|
mainFiles: [],
|
|
58486
58364
|
mainFields: [
|
|
58487
58365
|
'style',
|
|
58488
58366
|
'...'
|
|
58489
58367
|
],
|
|
58490
|
-
conditionNames:
|
|
58368
|
+
conditionNames: [
|
|
58369
|
+
'development' === mode ? 'development' : 'production',
|
|
58370
|
+
'style'
|
|
58371
|
+
],
|
|
58491
58372
|
extensions: [
|
|
58492
58373
|
'.css'
|
|
58493
58374
|
],
|
|
@@ -59281,13 +59162,13 @@ class ThreadsafeInputNodeFS {
|
|
|
59281
59162
|
Object.assign(this, NOOP_FILESYSTEM);
|
|
59282
59163
|
if (!fs) return;
|
|
59283
59164
|
this.readDir = memoizeFn(()=>{
|
|
59284
|
-
const readDirFn =
|
|
59165
|
+
const readDirFn = util_util_default().promisify(fs.readdir.bind(fs));
|
|
59285
59166
|
return async (filePath)=>{
|
|
59286
59167
|
const res = await readDirFn(filePath);
|
|
59287
59168
|
return res;
|
|
59288
59169
|
};
|
|
59289
59170
|
});
|
|
59290
|
-
this.readFile = memoizeFn(()=>
|
|
59171
|
+
this.readFile = memoizeFn(()=>util_util_default().promisify(fs.readFile.bind(fs)));
|
|
59291
59172
|
this.stat = memoizeFn(()=>(name)=>new Promise((resolve, reject)=>{
|
|
59292
59173
|
fs.stat(name, (err, stats)=>{
|
|
59293
59174
|
if (err) return reject(err);
|
|
@@ -59338,34 +59219,34 @@ class ThreadsafeOutputNodeFS {
|
|
|
59338
59219
|
constructor(fs){
|
|
59339
59220
|
Object.assign(this, NOOP_FILESYSTEM);
|
|
59340
59221
|
if (!fs) return;
|
|
59341
|
-
this.writeFile = memoizeFn(()=>
|
|
59342
|
-
this.removeFile = memoizeFn(()=>
|
|
59343
|
-
this.mkdir = memoizeFn(()=>
|
|
59344
|
-
this.mkdirp = memoizeFn(()=>
|
|
59345
|
-
this.removeDirAll = memoizeFn(()=>
|
|
59222
|
+
this.writeFile = memoizeFn(()=>util_util_default().promisify(fs.writeFile.bind(fs)));
|
|
59223
|
+
this.removeFile = memoizeFn(()=>util_util_default().promisify(fs.unlink.bind(fs)));
|
|
59224
|
+
this.mkdir = memoizeFn(()=>util_util_default().promisify(fs.mkdir.bind(fs)));
|
|
59225
|
+
this.mkdirp = memoizeFn(()=>util_util_default().promisify(mkdirp.bind(null, fs)));
|
|
59226
|
+
this.removeDirAll = memoizeFn(()=>util_util_default().promisify(rmrf.bind(null, fs)));
|
|
59346
59227
|
this.readDir = memoizeFn(()=>{
|
|
59347
|
-
const readDirFn =
|
|
59228
|
+
const readDirFn = util_util_default().promisify(fs.readdir.bind(fs));
|
|
59348
59229
|
return async (filePath)=>{
|
|
59349
59230
|
const res = await readDirFn(filePath);
|
|
59350
59231
|
return res;
|
|
59351
59232
|
};
|
|
59352
59233
|
});
|
|
59353
|
-
this.readFile = memoizeFn(()=>
|
|
59234
|
+
this.readFile = memoizeFn(()=>util_util_default().promisify(fs.readFile.bind(fs)));
|
|
59354
59235
|
this.stat = memoizeFn(()=>{
|
|
59355
|
-
const statFn =
|
|
59236
|
+
const statFn = util_util_default().promisify(fs.stat.bind(fs));
|
|
59356
59237
|
return async (filePath)=>{
|
|
59357
59238
|
const res = await statFn(filePath);
|
|
59358
59239
|
return res && __to_binding_stat(res);
|
|
59359
59240
|
};
|
|
59360
59241
|
});
|
|
59361
59242
|
this.lstat = memoizeFn(()=>{
|
|
59362
|
-
const statFn =
|
|
59243
|
+
const statFn = util_util_default().promisify((fs.lstat || fs.stat).bind(fs));
|
|
59363
59244
|
return async (filePath)=>{
|
|
59364
59245
|
const res = await statFn(filePath);
|
|
59365
59246
|
return res && __to_binding_stat(res);
|
|
59366
59247
|
};
|
|
59367
59248
|
});
|
|
59368
|
-
this.chmod = memoizeFn(()=>
|
|
59249
|
+
this.chmod = memoizeFn(()=>util_util_default().promisify(fs.chmod.bind(fs)));
|
|
59369
59250
|
}
|
|
59370
59251
|
static __to_binding(fs) {
|
|
59371
59252
|
return new this(fs);
|
|
@@ -59375,17 +59256,17 @@ class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
|
|
|
59375
59256
|
constructor(fs){
|
|
59376
59257
|
super(fs);
|
|
59377
59258
|
if (!fs) return;
|
|
59378
|
-
this.open = memoizeFn(()=>
|
|
59379
|
-
this.rename = memoizeFn(()=>
|
|
59380
|
-
this.close = memoizeFn(()=>
|
|
59259
|
+
this.open = memoizeFn(()=>util_util_default().promisify(fs.open.bind(fs)));
|
|
59260
|
+
this.rename = memoizeFn(()=>util_util_default().promisify(fs.rename.bind(fs)));
|
|
59261
|
+
this.close = memoizeFn(()=>util_util_default().promisify(fs.close.bind(fs)));
|
|
59381
59262
|
this.write = memoizeFn(()=>{
|
|
59382
|
-
const writeFn =
|
|
59263
|
+
const writeFn = util_util_default().promisify(fs.write.bind(fs));
|
|
59383
59264
|
return async (fd, content, position)=>writeFn(fd, content, {
|
|
59384
59265
|
position
|
|
59385
59266
|
});
|
|
59386
59267
|
});
|
|
59387
59268
|
this.writeAll = memoizeFn(()=>{
|
|
59388
|
-
const writeFn =
|
|
59269
|
+
const writeFn = util_util_default().promisify(fs.writeFile.bind(fs));
|
|
59389
59270
|
return async (fd, content)=>writeFn(fd, content);
|
|
59390
59271
|
});
|
|
59391
59272
|
this.read = memoizeFn(()=>{
|
|
@@ -59800,7 +59681,7 @@ class ResolverFactory {
|
|
|
59800
59681
|
return resolver_factory.#binding;
|
|
59801
59682
|
}
|
|
59802
59683
|
constructor(pnp, resolveOptions, loaderResolveOptions){
|
|
59803
|
-
this.#binding = new
|
|
59684
|
+
this.#binding = new rspack_wasi_browser.JsResolverFactory(pnp, getRawResolve(resolveOptions), getRawResolve(loaderResolveOptions));
|
|
59804
59685
|
}
|
|
59805
59686
|
#create(type, resolveOptionsWithDepType) {
|
|
59806
59687
|
const { dependencyType, resolveToContext, ...resolve } = resolveOptionsWithDepType;
|
|
@@ -59903,7 +59784,7 @@ class MultiStats {
|
|
|
59903
59784
|
return obj;
|
|
59904
59785
|
});
|
|
59905
59786
|
if (childOptions.version) {
|
|
59906
|
-
obj.rspackVersion = "2.0.0-beta.
|
|
59787
|
+
obj.rspackVersion = "2.0.0-beta.7";
|
|
59907
59788
|
obj.version = "5.75.0";
|
|
59908
59789
|
}
|
|
59909
59790
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -60514,7 +60395,7 @@ class NativeWatchFileSystem {
|
|
|
60514
60395
|
pollInterval: 'boolean' == typeof options.poll ? 0 : options.poll,
|
|
60515
60396
|
ignored: toJsWatcherIgnored(options.ignored)
|
|
60516
60397
|
};
|
|
60517
|
-
const nativeWatcher = new
|
|
60398
|
+
const nativeWatcher = new rspack_wasi_browser.NativeWatcher(nativeWatcherOptions);
|
|
60518
60399
|
this.#inner = nativeWatcher;
|
|
60519
60400
|
return nativeWatcher;
|
|
60520
60401
|
}
|
|
@@ -60590,7 +60471,7 @@ class NodeWatchFileSystem {
|
|
|
60590
60471
|
pause: ()=>{
|
|
60591
60472
|
if (this.watcher) this.watcher.pause();
|
|
60592
60473
|
},
|
|
60593
|
-
getAggregatedRemovals:
|
|
60474
|
+
getAggregatedRemovals: util_util_default().deprecate(()=>{
|
|
60594
60475
|
const items = this.watcher?.aggregatedRemovals;
|
|
60595
60476
|
if (items && this.inputFileSystem?.purge) {
|
|
60596
60477
|
const fs = this.inputFileSystem;
|
|
@@ -60598,7 +60479,7 @@ class NodeWatchFileSystem {
|
|
|
60598
60479
|
}
|
|
60599
60480
|
return items ?? new Set();
|
|
60600
60481
|
}, "Watcher.getAggregatedRemovals is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_GET_AGGREGATED_REMOVALS'),
|
|
60601
|
-
getAggregatedChanges:
|
|
60482
|
+
getAggregatedChanges: util_util_default().deprecate(()=>{
|
|
60602
60483
|
const items = this.watcher?.aggregatedChanges;
|
|
60603
60484
|
if (items && this.inputFileSystem?.purge) {
|
|
60604
60485
|
const fs = this.inputFileSystem;
|
|
@@ -60606,8 +60487,8 @@ class NodeWatchFileSystem {
|
|
|
60606
60487
|
}
|
|
60607
60488
|
return items ?? new Set();
|
|
60608
60489
|
}, "Watcher.getAggregatedChanges is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_GET_AGGREGATED_CHANGES'),
|
|
60609
|
-
getFileTimeInfoEntries:
|
|
60610
|
-
getContextTimeInfoEntries:
|
|
60490
|
+
getFileTimeInfoEntries: util_util_default().deprecate(()=>fetchTimeInfo().fileTimeInfoEntries, "Watcher.getFileTimeInfoEntries is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_FILE_TIME_INFO_ENTRIES'),
|
|
60491
|
+
getContextTimeInfoEntries: util_util_default().deprecate(()=>fetchTimeInfo().contextTimeInfoEntries, "Watcher.getContextTimeInfoEntries is deprecated in favor of Watcher.getInfo since that's more performant.", 'DEP_WEBPACK_WATCHER_CONTEXT_TIME_INFO_ENTRIES'),
|
|
60611
60492
|
getInfo: ()=>{
|
|
60612
60493
|
const removals = this.watcher?.aggregatedRemovals ?? new Set();
|
|
60613
60494
|
const changes = this.watcher?.aggregatedChanges ?? new Set();
|
|
@@ -60703,7 +60584,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
60703
60584
|
const writeColored = (prefix, colorPrefix, colorSuffix)=>(...args)=>{
|
|
60704
60585
|
if (currentCollapsed > 0) return;
|
|
60705
60586
|
clearStatusMessage();
|
|
60706
|
-
const str = indent(
|
|
60587
|
+
const str = indent(util_util.format(...args), prefix, colorPrefix, colorSuffix);
|
|
60707
60588
|
stream.write(`${str}\n`);
|
|
60708
60589
|
writeStatusMessage();
|
|
60709
60590
|
};
|
|
@@ -60763,7 +60644,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
60763
60644
|
}
|
|
60764
60645
|
};
|
|
60765
60646
|
}
|
|
60766
|
-
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.
|
|
60647
|
+
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
60767
60648
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
60768
60649
|
class NodeEnvironmentPlugin {
|
|
60769
60650
|
options;
|
|
@@ -60845,7 +60726,7 @@ class IgnoreWarningsPlugin {
|
|
|
60845
60726
|
compilation.hooks.processWarnings.tap(this.name, (warnings)=>warnings.filter((warning)=>{
|
|
60846
60727
|
const plainWarning = warning.message ? {
|
|
60847
60728
|
...warning,
|
|
60848
|
-
message:
|
|
60729
|
+
message: util_util_default().stripVTControlCharacters(warning.message)
|
|
60849
60730
|
} : warning;
|
|
60850
60731
|
return !this._ignorePattern.some((ignore)=>ignore(plainWarning, compilation));
|
|
60851
60732
|
}));
|
|
@@ -61560,7 +61441,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61560
61441
|
const [label, first, second] = entry.args;
|
|
61561
61442
|
if ('number' == typeof first && 'number' == typeof second) message = `${label}: ${1000 * first + second / 1000000} ms`;
|
|
61562
61443
|
}
|
|
61563
|
-
if (!message) message = entry.args?.length ?
|
|
61444
|
+
if (!message) message = entry.args?.length ? util_util.format(entry.args[0], ...entry.args.slice(1)) : '';
|
|
61564
61445
|
const newEntry = {
|
|
61565
61446
|
type,
|
|
61566
61447
|
message: message || '',
|
|
@@ -61589,7 +61470,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61589
61470
|
},
|
|
61590
61471
|
version: (object)=>{
|
|
61591
61472
|
object.version = "5.75.0";
|
|
61592
|
-
object.rspackVersion = "2.0.0-beta.
|
|
61473
|
+
object.rspackVersion = "2.0.0-beta.7";
|
|
61593
61474
|
},
|
|
61594
61475
|
env: (object, _compilation, _context, { _env })=>{
|
|
61595
61476
|
object.env = _env;
|
|
@@ -63376,7 +63257,7 @@ function rspack_rspack(options, callback) {
|
|
|
63376
63257
|
const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
63377
63258
|
const getOptions = (uid)=>getPluginOptions(getCompiler().__internal__get_compilation(), uid);
|
|
63378
63259
|
return {
|
|
63379
|
-
registerHtmlPluginBeforeAssetTagGenerationTaps: createTap(
|
|
63260
|
+
registerHtmlPluginBeforeAssetTagGenerationTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginBeforeAssetTagGeneration, function() {
|
|
63380
63261
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeAssetTagGeneration;
|
|
63381
63262
|
}, function(queried) {
|
|
63382
63263
|
return async function(data) {
|
|
@@ -63392,7 +63273,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63392
63273
|
return res;
|
|
63393
63274
|
};
|
|
63394
63275
|
}),
|
|
63395
|
-
registerHtmlPluginAlterAssetTagsTaps: createTap(
|
|
63276
|
+
registerHtmlPluginAlterAssetTagsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAlterAssetTags, function() {
|
|
63396
63277
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTags;
|
|
63397
63278
|
}, function(queried) {
|
|
63398
63279
|
return async function(data) {
|
|
@@ -63408,7 +63289,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63408
63289
|
return res;
|
|
63409
63290
|
};
|
|
63410
63291
|
}),
|
|
63411
|
-
registerHtmlPluginAlterAssetTagGroupsTaps: createTap(
|
|
63292
|
+
registerHtmlPluginAlterAssetTagGroupsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAlterAssetTagGroups, function() {
|
|
63412
63293
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTagGroups;
|
|
63413
63294
|
}, function(queried) {
|
|
63414
63295
|
return async function(data) {
|
|
@@ -63424,7 +63305,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63424
63305
|
return res;
|
|
63425
63306
|
};
|
|
63426
63307
|
}),
|
|
63427
|
-
registerHtmlPluginAfterTemplateExecutionTaps: createTap(
|
|
63308
|
+
registerHtmlPluginAfterTemplateExecutionTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAfterTemplateExecution, function() {
|
|
63428
63309
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterTemplateExecution;
|
|
63429
63310
|
}, function(queried) {
|
|
63430
63311
|
return async function(data) {
|
|
@@ -63439,7 +63320,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63439
63320
|
return res;
|
|
63440
63321
|
};
|
|
63441
63322
|
}),
|
|
63442
|
-
registerHtmlPluginBeforeEmitTaps: createTap(
|
|
63323
|
+
registerHtmlPluginBeforeEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginBeforeEmit, function() {
|
|
63443
63324
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeEmit;
|
|
63444
63325
|
}, function(queried) {
|
|
63445
63326
|
return async function(data) {
|
|
@@ -63455,7 +63336,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
63455
63336
|
return res;
|
|
63456
63337
|
};
|
|
63457
63338
|
}),
|
|
63458
|
-
registerHtmlPluginAfterEmitTaps: createTap(
|
|
63339
|
+
registerHtmlPluginAfterEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.HtmlPluginAfterEmit, function() {
|
|
63459
63340
|
return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterEmit;
|
|
63460
63341
|
}, function(queried) {
|
|
63461
63342
|
return async function(data) {
|
|
@@ -63484,7 +63365,7 @@ class CodeGenerationResult {
|
|
|
63484
63365
|
}
|
|
63485
63366
|
}
|
|
63486
63367
|
const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>({
|
|
63487
|
-
registerCompilationAdditionalTreeRuntimeRequirementsTaps: createTap(
|
|
63368
|
+
registerCompilationAdditionalTreeRuntimeRequirementsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAdditionalTreeRuntimeRequirements, function() {
|
|
63488
63369
|
return getCompiler().__internal__get_compilation().hooks.additionalTreeRuntimeRequirements;
|
|
63489
63370
|
}, function(queried) {
|
|
63490
63371
|
return function({ chunk, runtimeRequirements }) {
|
|
@@ -63495,7 +63376,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63495
63376
|
};
|
|
63496
63377
|
};
|
|
63497
63378
|
}),
|
|
63498
|
-
registerCompilationRuntimeRequirementInTreeTaps: createMapTap(
|
|
63379
|
+
registerCompilationRuntimeRequirementInTreeTaps: createMapTap(rspack_wasi_browser.RegisterJsTapKind.CompilationRuntimeRequirementInTree, function() {
|
|
63499
63380
|
return getCompiler().__internal__get_compilation().hooks.runtimeRequirementInTree;
|
|
63500
63381
|
}, function(queried) {
|
|
63501
63382
|
return function({ chunk, allRuntimeRequirements, runtimeRequirements }) {
|
|
@@ -63517,7 +63398,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63517
63398
|
};
|
|
63518
63399
|
};
|
|
63519
63400
|
}),
|
|
63520
|
-
registerCompilationRuntimeModuleTaps: createTap(
|
|
63401
|
+
registerCompilationRuntimeModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationRuntimeModule, function() {
|
|
63521
63402
|
return getCompiler().__internal__get_compilation().hooks.runtimeModule;
|
|
63522
63403
|
}, function(queried) {
|
|
63523
63404
|
return function({ module, chunk }) {
|
|
@@ -63530,28 +63411,28 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63530
63411
|
if (newSource && newSource !== originSource) return module;
|
|
63531
63412
|
};
|
|
63532
63413
|
}),
|
|
63533
|
-
registerCompilationBuildModuleTaps: createTap(
|
|
63414
|
+
registerCompilationBuildModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationBuildModule, function() {
|
|
63534
63415
|
return getCompiler().__internal__get_compilation().hooks.buildModule;
|
|
63535
63416
|
}, function(queried) {
|
|
63536
63417
|
return function(module) {
|
|
63537
63418
|
return queried.call(module);
|
|
63538
63419
|
};
|
|
63539
63420
|
}),
|
|
63540
|
-
registerCompilationStillValidModuleTaps: createTap(
|
|
63421
|
+
registerCompilationStillValidModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationStillValidModule, function() {
|
|
63541
63422
|
return getCompiler().__internal__get_compilation().hooks.stillValidModule;
|
|
63542
63423
|
}, function(queried) {
|
|
63543
63424
|
return function(module) {
|
|
63544
63425
|
return queried.call(module);
|
|
63545
63426
|
};
|
|
63546
63427
|
}),
|
|
63547
|
-
registerCompilationSucceedModuleTaps: createTap(
|
|
63428
|
+
registerCompilationSucceedModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationSucceedModule, function() {
|
|
63548
63429
|
return getCompiler().__internal__get_compilation().hooks.succeedModule;
|
|
63549
63430
|
}, function(queried) {
|
|
63550
63431
|
return function(module) {
|
|
63551
63432
|
return queried.call(module);
|
|
63552
63433
|
};
|
|
63553
63434
|
}),
|
|
63554
|
-
registerCompilationExecuteModuleTaps: createTap(
|
|
63435
|
+
registerCompilationExecuteModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationExecuteModule, function() {
|
|
63555
63436
|
return getCompiler().__internal__get_compilation().hooks.executeModule;
|
|
63556
63437
|
}, function(queried) {
|
|
63557
63438
|
return function({ entry, id, codegenResults, runtimeModules }) {
|
|
@@ -63597,42 +63478,42 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63597
63478
|
}
|
|
63598
63479
|
};
|
|
63599
63480
|
}),
|
|
63600
|
-
registerCompilationFinishModulesTaps: createTap(
|
|
63481
|
+
registerCompilationFinishModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationFinishModules, function() {
|
|
63601
63482
|
return getCompiler().__internal__get_compilation().hooks.finishModules;
|
|
63602
63483
|
}, function(queried) {
|
|
63603
63484
|
return async function() {
|
|
63604
63485
|
return queried.promise(getCompiler().__internal__get_compilation().modules);
|
|
63605
63486
|
};
|
|
63606
63487
|
}),
|
|
63607
|
-
registerCompilationOptimizeModulesTaps: createTap(
|
|
63488
|
+
registerCompilationOptimizeModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationOptimizeModules, function() {
|
|
63608
63489
|
return getCompiler().__internal__get_compilation().hooks.optimizeModules;
|
|
63609
63490
|
}, function(queried) {
|
|
63610
63491
|
return function() {
|
|
63611
63492
|
return queried.call(getCompiler().__internal__get_compilation().modules.values());
|
|
63612
63493
|
};
|
|
63613
63494
|
}),
|
|
63614
|
-
registerCompilationAfterOptimizeModulesTaps: createTap(
|
|
63495
|
+
registerCompilationAfterOptimizeModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAfterOptimizeModules, function() {
|
|
63615
63496
|
return getCompiler().__internal__get_compilation().hooks.afterOptimizeModules;
|
|
63616
63497
|
}, function(queried) {
|
|
63617
63498
|
return function() {
|
|
63618
63499
|
queried.call(getCompiler().__internal__get_compilation().modules.values());
|
|
63619
63500
|
};
|
|
63620
63501
|
}),
|
|
63621
|
-
registerCompilationOptimizeTreeTaps: createTap(
|
|
63502
|
+
registerCompilationOptimizeTreeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationOptimizeTree, function() {
|
|
63622
63503
|
return getCompiler().__internal__get_compilation().hooks.optimizeTree;
|
|
63623
63504
|
}, function(queried) {
|
|
63624
63505
|
return async function() {
|
|
63625
63506
|
return queried.promise(getCompiler().__internal__get_compilation().chunks, getCompiler().__internal__get_compilation().modules);
|
|
63626
63507
|
};
|
|
63627
63508
|
}),
|
|
63628
|
-
registerCompilationOptimizeChunkModulesTaps: createTap(
|
|
63509
|
+
registerCompilationOptimizeChunkModulesTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationOptimizeChunkModules, function() {
|
|
63629
63510
|
return getCompiler().__internal__get_compilation().hooks.optimizeChunkModules;
|
|
63630
63511
|
}, function(queried) {
|
|
63631
63512
|
return async function() {
|
|
63632
63513
|
return queried.promise(getCompiler().__internal__get_compilation().chunks, getCompiler().__internal__get_compilation().modules);
|
|
63633
63514
|
};
|
|
63634
63515
|
}),
|
|
63635
|
-
registerCompilationBeforeModuleIdsTaps: createTap(
|
|
63516
|
+
registerCompilationBeforeModuleIdsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationBeforeModuleIds, function() {
|
|
63636
63517
|
return getCompiler().__internal__get_compilation().hooks.beforeModuleIds;
|
|
63637
63518
|
}, function(queried) {
|
|
63638
63519
|
return function(arg) {
|
|
@@ -63667,7 +63548,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63667
63548
|
};
|
|
63668
63549
|
};
|
|
63669
63550
|
}),
|
|
63670
|
-
registerCompilationChunkHashTaps: createTap(
|
|
63551
|
+
registerCompilationChunkHashTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationChunkHash, function() {
|
|
63671
63552
|
return getCompiler().__internal__get_compilation().hooks.chunkHash;
|
|
63672
63553
|
}, function(queried) {
|
|
63673
63554
|
return function(chunk) {
|
|
@@ -63679,35 +63560,35 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63679
63560
|
return 'string' == typeof digestResult ? compilation_Buffer.from(digestResult) : digestResult;
|
|
63680
63561
|
};
|
|
63681
63562
|
}),
|
|
63682
|
-
registerCompilationChunkAssetTaps: createTap(
|
|
63563
|
+
registerCompilationChunkAssetTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationChunkAsset, function() {
|
|
63683
63564
|
return getCompiler().__internal__get_compilation().hooks.chunkAsset;
|
|
63684
63565
|
}, function(queried) {
|
|
63685
63566
|
return function({ chunk, filename }) {
|
|
63686
63567
|
return queried.call(chunk, filename);
|
|
63687
63568
|
};
|
|
63688
63569
|
}),
|
|
63689
|
-
registerCompilationProcessAssetsTaps: createTap(
|
|
63570
|
+
registerCompilationProcessAssetsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationProcessAssets, function() {
|
|
63690
63571
|
return getCompiler().__internal__get_compilation().hooks.processAssets;
|
|
63691
63572
|
}, function(queried) {
|
|
63692
63573
|
return async function() {
|
|
63693
63574
|
return queried.promise(getCompiler().__internal__get_compilation().assets);
|
|
63694
63575
|
};
|
|
63695
63576
|
}),
|
|
63696
|
-
registerCompilationAfterProcessAssetsTaps: createTap(
|
|
63577
|
+
registerCompilationAfterProcessAssetsTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAfterProcessAssets, function() {
|
|
63697
63578
|
return getCompiler().__internal__get_compilation().hooks.afterProcessAssets;
|
|
63698
63579
|
}, function(queried) {
|
|
63699
63580
|
return function() {
|
|
63700
63581
|
return queried.call(getCompiler().__internal__get_compilation().assets);
|
|
63701
63582
|
};
|
|
63702
63583
|
}),
|
|
63703
|
-
registerCompilationSealTaps: createTap(
|
|
63584
|
+
registerCompilationSealTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationSeal, function() {
|
|
63704
63585
|
return getCompiler().__internal__get_compilation().hooks.seal;
|
|
63705
63586
|
}, function(queried) {
|
|
63706
63587
|
return function() {
|
|
63707
63588
|
return queried.call();
|
|
63708
63589
|
};
|
|
63709
63590
|
}),
|
|
63710
|
-
registerCompilationAfterSealTaps: createTap(
|
|
63591
|
+
registerCompilationAfterSealTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilationAfterSeal, function() {
|
|
63711
63592
|
return getCompiler().__internal__get_compilation().hooks.afterSeal;
|
|
63712
63593
|
}, function(queried) {
|
|
63713
63594
|
return async function() {
|
|
@@ -63716,7 +63597,7 @@ const createCompilationHooksRegisters = (getCompiler, createTap, createMapTap)=>
|
|
|
63716
63597
|
})
|
|
63717
63598
|
});
|
|
63718
63599
|
const createCompilerHooksRegisters = (getCompiler, createTap)=>({
|
|
63719
|
-
registerCompilerThisCompilationTaps: createTap(
|
|
63600
|
+
registerCompilerThisCompilationTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerThisCompilation, function() {
|
|
63720
63601
|
return getCompiler().hooks.thisCompilation;
|
|
63721
63602
|
}, function(queried) {
|
|
63722
63603
|
return function(native) {
|
|
@@ -63724,49 +63605,49 @@ const createCompilerHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63724
63605
|
return queried.call(getCompiler().__internal__get_compilation(), getCompiler().__internal__get_compilation_params());
|
|
63725
63606
|
};
|
|
63726
63607
|
}),
|
|
63727
|
-
registerCompilerCompilationTaps: createTap(
|
|
63608
|
+
registerCompilerCompilationTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerCompilation, function() {
|
|
63728
63609
|
return getCompiler().hooks.compilation;
|
|
63729
63610
|
}, function(queried) {
|
|
63730
63611
|
return function() {
|
|
63731
63612
|
return queried.call(getCompiler().__internal__get_compilation(), getCompiler().__internal__get_compilation_params());
|
|
63732
63613
|
};
|
|
63733
63614
|
}),
|
|
63734
|
-
registerCompilerMakeTaps: createTap(
|
|
63615
|
+
registerCompilerMakeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerMake, function() {
|
|
63735
63616
|
return getCompiler().hooks.make;
|
|
63736
63617
|
}, function(queried) {
|
|
63737
63618
|
return async function() {
|
|
63738
63619
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63739
63620
|
};
|
|
63740
63621
|
}),
|
|
63741
|
-
registerCompilerFinishMakeTaps: createTap(
|
|
63622
|
+
registerCompilerFinishMakeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerFinishMake, function() {
|
|
63742
63623
|
return getCompiler().hooks.finishMake;
|
|
63743
63624
|
}, function(queried) {
|
|
63744
63625
|
return async function() {
|
|
63745
63626
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63746
63627
|
};
|
|
63747
63628
|
}),
|
|
63748
|
-
registerCompilerShouldEmitTaps: createTap(
|
|
63629
|
+
registerCompilerShouldEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerShouldEmit, function() {
|
|
63749
63630
|
return getCompiler().hooks.shouldEmit;
|
|
63750
63631
|
}, function(queried) {
|
|
63751
63632
|
return function() {
|
|
63752
63633
|
return queried.call(getCompiler().__internal__get_compilation());
|
|
63753
63634
|
};
|
|
63754
63635
|
}),
|
|
63755
|
-
registerCompilerEmitTaps: createTap(
|
|
63636
|
+
registerCompilerEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerEmit, function() {
|
|
63756
63637
|
return getCompiler().hooks.emit;
|
|
63757
63638
|
}, function(queried) {
|
|
63758
63639
|
return async function() {
|
|
63759
63640
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63760
63641
|
};
|
|
63761
63642
|
}),
|
|
63762
|
-
registerCompilerAfterEmitTaps: createTap(
|
|
63643
|
+
registerCompilerAfterEmitTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerAfterEmit, function() {
|
|
63763
63644
|
return getCompiler().hooks.afterEmit;
|
|
63764
63645
|
}, function(queried) {
|
|
63765
63646
|
return async function() {
|
|
63766
63647
|
return queried.promise(getCompiler().__internal__get_compilation());
|
|
63767
63648
|
};
|
|
63768
63649
|
}),
|
|
63769
|
-
registerCompilerAssetEmittedTaps: createTap(
|
|
63650
|
+
registerCompilerAssetEmittedTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.CompilerAssetEmitted, function() {
|
|
63770
63651
|
return getCompiler().hooks.assetEmitted;
|
|
63771
63652
|
}, function(queried) {
|
|
63772
63653
|
return async function({ filename, targetPath, outputPath }) {
|
|
@@ -63901,14 +63782,14 @@ class ContextModuleFactoryAfterResolveData {
|
|
|
63901
63782
|
});
|
|
63902
63783
|
}
|
|
63903
63784
|
}
|
|
63904
|
-
Object.defineProperty(
|
|
63785
|
+
Object.defineProperty(rspack_wasi_browser.Module.prototype, 'identifier', {
|
|
63905
63786
|
enumerable: true,
|
|
63906
63787
|
configurable: true,
|
|
63907
63788
|
value () {
|
|
63908
|
-
return this[
|
|
63789
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
63909
63790
|
}
|
|
63910
63791
|
});
|
|
63911
|
-
Object.defineProperty(
|
|
63792
|
+
Object.defineProperty(rspack_wasi_browser.Module.prototype, 'originalSource', {
|
|
63912
63793
|
enumerable: true,
|
|
63913
63794
|
configurable: true,
|
|
63914
63795
|
value () {
|
|
@@ -63917,7 +63798,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].Module.prototy
|
|
|
63917
63798
|
return null;
|
|
63918
63799
|
}
|
|
63919
63800
|
});
|
|
63920
|
-
Object.defineProperty(
|
|
63801
|
+
Object.defineProperty(rspack_wasi_browser.Module.prototype, 'emitFile', {
|
|
63921
63802
|
enumerable: true,
|
|
63922
63803
|
configurable: true,
|
|
63923
63804
|
value (filename, source, assetInfo) {
|
|
@@ -63925,7 +63806,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].Module.prototy
|
|
|
63925
63806
|
}
|
|
63926
63807
|
});
|
|
63927
63808
|
const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
63928
|
-
registerContextModuleFactoryBeforeResolveTaps: createTap(
|
|
63809
|
+
registerContextModuleFactoryBeforeResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.ContextModuleFactoryBeforeResolve, function() {
|
|
63929
63810
|
return getCompiler().__internal__get_compilation_params().contextModuleFactory.hooks.beforeResolve;
|
|
63930
63811
|
}, function(queried) {
|
|
63931
63812
|
return async function(bindingData) {
|
|
@@ -63934,7 +63815,7 @@ const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63934
63815
|
return result ? ContextModuleFactoryBeforeResolveData.__to_binding(result) : false;
|
|
63935
63816
|
};
|
|
63936
63817
|
}),
|
|
63937
|
-
registerContextModuleFactoryAfterResolveTaps: createTap(
|
|
63818
|
+
registerContextModuleFactoryAfterResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.ContextModuleFactoryAfterResolve, function() {
|
|
63938
63819
|
return getCompiler().__internal__get_compilation_params().contextModuleFactory.hooks.afterResolve;
|
|
63939
63820
|
}, function(queried) {
|
|
63940
63821
|
return async function(bindingData) {
|
|
@@ -63946,7 +63827,7 @@ const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63946
63827
|
});
|
|
63947
63828
|
var javascriptModules_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
63948
63829
|
const createJavaScriptModulesHooksRegisters = (getCompiler, createTap)=>({
|
|
63949
|
-
registerJavascriptModulesChunkHashTaps: createTap(
|
|
63830
|
+
registerJavascriptModulesChunkHashTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.JavascriptModulesChunkHash, function() {
|
|
63950
63831
|
return JavascriptModulesPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).chunkHash;
|
|
63951
63832
|
}, function(queried) {
|
|
63952
63833
|
return function(chunk) {
|
|
@@ -63960,7 +63841,7 @@ const createJavaScriptModulesHooksRegisters = (getCompiler, createTap)=>({
|
|
|
63960
63841
|
})
|
|
63961
63842
|
});
|
|
63962
63843
|
const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createMapTap)=>({
|
|
63963
|
-
registerNormalModuleFactoryBeforeResolveTaps: createTap(
|
|
63844
|
+
registerNormalModuleFactoryBeforeResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryBeforeResolve, function() {
|
|
63964
63845
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.beforeResolve;
|
|
63965
63846
|
}, function(queried) {
|
|
63966
63847
|
return async function(resolveData) {
|
|
@@ -63971,7 +63852,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63971
63852
|
];
|
|
63972
63853
|
};
|
|
63973
63854
|
}),
|
|
63974
|
-
registerNormalModuleFactoryFactorizeTaps: createTap(
|
|
63855
|
+
registerNormalModuleFactoryFactorizeTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryFactorize, function() {
|
|
63975
63856
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.factorize;
|
|
63976
63857
|
}, function(queried) {
|
|
63977
63858
|
return async function(resolveData) {
|
|
@@ -63979,7 +63860,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63979
63860
|
return resolveData;
|
|
63980
63861
|
};
|
|
63981
63862
|
}),
|
|
63982
|
-
registerNormalModuleFactoryResolveTaps: createTap(
|
|
63863
|
+
registerNormalModuleFactoryResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryResolve, function() {
|
|
63983
63864
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.resolve;
|
|
63984
63865
|
}, function(queried) {
|
|
63985
63866
|
return async function(resolveData) {
|
|
@@ -63987,7 +63868,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63987
63868
|
return resolveData;
|
|
63988
63869
|
};
|
|
63989
63870
|
}),
|
|
63990
|
-
registerNormalModuleFactoryResolveForSchemeTaps: createMapTap(
|
|
63871
|
+
registerNormalModuleFactoryResolveForSchemeTaps: createMapTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryResolveForScheme, function() {
|
|
63991
63872
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.resolveForScheme;
|
|
63992
63873
|
}, function(queried) {
|
|
63993
63874
|
return async function(args) {
|
|
@@ -63998,7 +63879,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
63998
63879
|
];
|
|
63999
63880
|
};
|
|
64000
63881
|
}),
|
|
64001
|
-
registerNormalModuleFactoryAfterResolveTaps: createTap(
|
|
63882
|
+
registerNormalModuleFactoryAfterResolveTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryAfterResolve, function() {
|
|
64002
63883
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.afterResolve;
|
|
64003
63884
|
}, function(queried) {
|
|
64004
63885
|
return async function(resolveData) {
|
|
@@ -64009,7 +63890,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
64009
63890
|
];
|
|
64010
63891
|
};
|
|
64011
63892
|
}),
|
|
64012
|
-
registerNormalModuleFactoryCreateModuleTaps: createTap(
|
|
63893
|
+
registerNormalModuleFactoryCreateModuleTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.NormalModuleFactoryCreateModule, function() {
|
|
64013
63894
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.createModule;
|
|
64014
63895
|
}, function(queried) {
|
|
64015
63896
|
return async function(args) {
|
|
@@ -64828,7 +64709,7 @@ class Compiler {
|
|
|
64828
64709
|
const rawOptions = getRawOptions(options, this);
|
|
64829
64710
|
rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
64830
64711
|
rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
64831
|
-
const instanceBinding = __webpack_require__("@rspack/binding");
|
|
64712
|
+
const instanceBinding = __webpack_require__("@rspack/binding?91dc");
|
|
64832
64713
|
this.#registers = this.#createHooksRegisters();
|
|
64833
64714
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
64834
64715
|
try {
|
|
@@ -64966,14 +64847,14 @@ class Compiler {
|
|
|
64966
64847
|
return this.#moduleExecutionResultsMap;
|
|
64967
64848
|
}
|
|
64968
64849
|
}
|
|
64969
|
-
Object.defineProperty(
|
|
64850
|
+
Object.defineProperty(rspack_wasi_browser.ConcatenatedModule.prototype, 'identifier', {
|
|
64970
64851
|
enumerable: true,
|
|
64971
64852
|
configurable: true,
|
|
64972
64853
|
value () {
|
|
64973
|
-
return this[
|
|
64854
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
64974
64855
|
}
|
|
64975
64856
|
});
|
|
64976
|
-
Object.defineProperty(
|
|
64857
|
+
Object.defineProperty(rspack_wasi_browser.ConcatenatedModule.prototype, 'originalSource', {
|
|
64977
64858
|
enumerable: true,
|
|
64978
64859
|
configurable: true,
|
|
64979
64860
|
value () {
|
|
@@ -64982,21 +64863,21 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].ConcatenatedMo
|
|
|
64982
64863
|
return null;
|
|
64983
64864
|
}
|
|
64984
64865
|
});
|
|
64985
|
-
Object.defineProperty(
|
|
64866
|
+
Object.defineProperty(rspack_wasi_browser.ConcatenatedModule.prototype, 'emitFile', {
|
|
64986
64867
|
enumerable: true,
|
|
64987
64868
|
configurable: true,
|
|
64988
64869
|
value (filename, source, assetInfo) {
|
|
64989
64870
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
64990
64871
|
}
|
|
64991
64872
|
});
|
|
64992
|
-
Object.defineProperty(
|
|
64873
|
+
Object.defineProperty(rspack_wasi_browser.ContextModule.prototype, 'identifier', {
|
|
64993
64874
|
enumerable: true,
|
|
64994
64875
|
configurable: true,
|
|
64995
64876
|
value () {
|
|
64996
|
-
return this[
|
|
64877
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
64997
64878
|
}
|
|
64998
64879
|
});
|
|
64999
|
-
Object.defineProperty(
|
|
64880
|
+
Object.defineProperty(rspack_wasi_browser.ContextModule.prototype, 'originalSource', {
|
|
65000
64881
|
enumerable: true,
|
|
65001
64882
|
configurable: true,
|
|
65002
64883
|
value () {
|
|
@@ -65005,21 +64886,21 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].ContextModule.
|
|
|
65005
64886
|
return null;
|
|
65006
64887
|
}
|
|
65007
64888
|
});
|
|
65008
|
-
Object.defineProperty(
|
|
64889
|
+
Object.defineProperty(rspack_wasi_browser.ContextModule.prototype, 'emitFile', {
|
|
65009
64890
|
enumerable: true,
|
|
65010
64891
|
configurable: true,
|
|
65011
64892
|
value (filename, source, assetInfo) {
|
|
65012
64893
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
65013
64894
|
}
|
|
65014
64895
|
});
|
|
65015
|
-
Object.defineProperty(
|
|
64896
|
+
Object.defineProperty(rspack_wasi_browser.ExternalModule.prototype, 'identifier', {
|
|
65016
64897
|
enumerable: true,
|
|
65017
64898
|
configurable: true,
|
|
65018
64899
|
value () {
|
|
65019
|
-
return this[
|
|
64900
|
+
return this[rspack_wasi_browser.MODULE_IDENTIFIER_SYMBOL];
|
|
65020
64901
|
}
|
|
65021
64902
|
});
|
|
65022
|
-
Object.defineProperty(
|
|
64903
|
+
Object.defineProperty(rspack_wasi_browser.ExternalModule.prototype, 'originalSource', {
|
|
65023
64904
|
enumerable: true,
|
|
65024
64905
|
configurable: true,
|
|
65025
64906
|
value () {
|
|
@@ -65028,7 +64909,7 @@ Object.defineProperty(external_rspack_wasi_browser_js_["default"].ExternalModule
|
|
|
65028
64909
|
return null;
|
|
65029
64910
|
}
|
|
65030
64911
|
});
|
|
65031
|
-
Object.defineProperty(
|
|
64912
|
+
Object.defineProperty(rspack_wasi_browser.ExternalModule.prototype, 'emitFile', {
|
|
65032
64913
|
enumerable: true,
|
|
65033
64914
|
configurable: true,
|
|
65034
64915
|
value (filename, source, assetInfo) {
|
|
@@ -65056,7 +64937,7 @@ const matchObject = (obj, str)=>{
|
|
|
65056
64937
|
}
|
|
65057
64938
|
return true;
|
|
65058
64939
|
};
|
|
65059
|
-
const FlagAllModulesAsUsedPlugin = base_create(
|
|
64940
|
+
const FlagAllModulesAsUsedPlugin = base_create(BuiltinPluginName.FlagAllModulesAsUsedPlugin, (explanation)=>({
|
|
65060
64941
|
explanation
|
|
65061
64942
|
}));
|
|
65062
64943
|
class DllPlugin {
|
|
@@ -65180,7 +65061,7 @@ class LoaderOptionsPlugin {
|
|
|
65180
65061
|
apply(compiler) {
|
|
65181
65062
|
const options = this.options;
|
|
65182
65063
|
compiler.hooks.compilation.tap('LoaderOptionsPlugin', (compilation)=>{
|
|
65183
|
-
|
|
65064
|
+
NormalModule.getCompilationHooks(compilation).loader.tap('LoaderOptionsPlugin', (context)=>{
|
|
65184
65065
|
const resource = context.resourcePath;
|
|
65185
65066
|
if (!resource) return;
|
|
65186
65067
|
if (matchObject(options, resource)) {
|
|
@@ -65197,7 +65078,7 @@ class LoaderTargetPlugin {
|
|
|
65197
65078
|
}
|
|
65198
65079
|
apply(compiler) {
|
|
65199
65080
|
compiler.hooks.compilation.tap('LoaderTargetPlugin', (compilation)=>{
|
|
65200
|
-
|
|
65081
|
+
NormalModule.getCompilationHooks(compilation).loader.tap('LoaderTargetPlugin', (loaderContext)=>{
|
|
65201
65082
|
loaderContext.target = this.target;
|
|
65202
65083
|
});
|
|
65203
65084
|
});
|
|
@@ -65248,7 +65129,7 @@ function setSingleton(compiler) {
|
|
|
65248
65129
|
}
|
|
65249
65130
|
class ShareRuntimePlugin extends RspackBuiltinPlugin {
|
|
65250
65131
|
enhanced;
|
|
65251
|
-
name =
|
|
65132
|
+
name = BuiltinPluginName.ShareRuntimePlugin;
|
|
65252
65133
|
constructor(enhanced = false){
|
|
65253
65134
|
super(), this.enhanced = enhanced;
|
|
65254
65135
|
}
|
|
@@ -65304,7 +65185,7 @@ function normalizeConsumeShareOptions(consumes, shareScope) {
|
|
|
65304
65185
|
}));
|
|
65305
65186
|
}
|
|
65306
65187
|
class ConsumeSharedPlugin extends RspackBuiltinPlugin {
|
|
65307
|
-
name =
|
|
65188
|
+
name = BuiltinPluginName.ConsumeSharedPlugin;
|
|
65308
65189
|
_options;
|
|
65309
65190
|
constructor(options){
|
|
65310
65191
|
super();
|
|
@@ -65355,7 +65236,7 @@ function normalizeProvideShareOptions(options, shareScope, enhanced) {
|
|
|
65355
65236
|
});
|
|
65356
65237
|
}
|
|
65357
65238
|
class ProvideSharedPlugin extends RspackBuiltinPlugin {
|
|
65358
|
-
name =
|
|
65239
|
+
name = BuiltinPluginName.ProvideSharedPlugin;
|
|
65359
65240
|
_provides;
|
|
65360
65241
|
_enhanced;
|
|
65361
65242
|
constructor(options){
|
|
@@ -65595,7 +65476,7 @@ function normalizeManifestOptions(mfConfig) {
|
|
|
65595
65476
|
};
|
|
65596
65477
|
}
|
|
65597
65478
|
class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
65598
|
-
name =
|
|
65479
|
+
name = BuiltinPluginName.ModuleFederationManifestPlugin;
|
|
65599
65480
|
rawOpts;
|
|
65600
65481
|
constructor(opts){
|
|
65601
65482
|
super();
|
|
@@ -65623,7 +65504,7 @@ class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
|
65623
65504
|
}
|
|
65624
65505
|
const SHARE_ENTRY_ASSET = 'collect-shared-entries.json';
|
|
65625
65506
|
class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
65626
|
-
name =
|
|
65507
|
+
name = BuiltinPluginName.CollectSharedEntryPlugin;
|
|
65627
65508
|
sharedOptions;
|
|
65628
65509
|
_collectedEntries;
|
|
65629
65510
|
constructor(options){
|
|
@@ -65670,7 +65551,7 @@ function assert(condition, msg) {
|
|
|
65670
65551
|
}
|
|
65671
65552
|
const HOT_UPDATE_SUFFIX = '.hot-update';
|
|
65672
65553
|
class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
65673
|
-
name =
|
|
65554
|
+
name = BuiltinPluginName.SharedContainerPlugin;
|
|
65674
65555
|
filename = '';
|
|
65675
65556
|
_options;
|
|
65676
65557
|
_shareName;
|
|
@@ -65728,7 +65609,7 @@ class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
|
65728
65609
|
}
|
|
65729
65610
|
}
|
|
65730
65611
|
class SharedUsedExportsOptimizerPlugin extends RspackBuiltinPlugin {
|
|
65731
|
-
name =
|
|
65612
|
+
name = BuiltinPluginName.SharedUsedExportsOptimizerPlugin;
|
|
65732
65613
|
sharedOptions;
|
|
65733
65614
|
injectTreeShakingUsedExports;
|
|
65734
65615
|
manifestOptions;
|
|
@@ -66053,7 +65934,7 @@ class TreeShakingSharedPlugin {
|
|
|
66053
65934
|
return this._independentSharePlugin?.buildAssets || {};
|
|
66054
65935
|
}
|
|
66055
65936
|
}
|
|
66056
|
-
const ModuleFederationRuntimePlugin = base_create(
|
|
65937
|
+
const ModuleFederationRuntimePlugin = base_create(BuiltinPluginName.ModuleFederationRuntimePlugin, (options = {})=>options);
|
|
66057
65938
|
class ModuleFederationPlugin {
|
|
66058
65939
|
_options;
|
|
66059
65940
|
_treeShakingSharedPlugin;
|
|
@@ -66236,7 +66117,7 @@ function getDefaultEntryRuntime(paths, options, compiler, treeShakingShareFallba
|
|
|
66236
66117
|
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${encodeURIComponent(content)}`;
|
|
66237
66118
|
}
|
|
66238
66119
|
class ContainerPlugin extends RspackBuiltinPlugin {
|
|
66239
|
-
name =
|
|
66120
|
+
name = BuiltinPluginName.ContainerPlugin;
|
|
66240
66121
|
_options;
|
|
66241
66122
|
constructor(options){
|
|
66242
66123
|
super();
|
|
@@ -66286,7 +66167,7 @@ class ContainerPlugin extends RspackBuiltinPlugin {
|
|
|
66286
66167
|
}
|
|
66287
66168
|
}
|
|
66288
66169
|
class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
66289
|
-
name =
|
|
66170
|
+
name = BuiltinPluginName.ContainerReferencePlugin;
|
|
66290
66171
|
_options;
|
|
66291
66172
|
constructor(options){
|
|
66292
66173
|
super();
|
|
@@ -66379,21 +66260,21 @@ class ModuleFederationPluginV1 {
|
|
|
66379
66260
|
}
|
|
66380
66261
|
async function minify(source, options) {
|
|
66381
66262
|
const _options = JSON.stringify(options || {});
|
|
66382
|
-
return
|
|
66263
|
+
return rspack_wasi_browser.minify(source, _options);
|
|
66383
66264
|
}
|
|
66384
66265
|
function minifySync(source, options) {
|
|
66385
66266
|
const _options = JSON.stringify(options || {});
|
|
66386
|
-
return
|
|
66267
|
+
return rspack_wasi_browser.minifySync(source, _options);
|
|
66387
66268
|
}
|
|
66388
66269
|
async function transform(source, options) {
|
|
66389
66270
|
const _options = JSON.stringify(options || {});
|
|
66390
|
-
return
|
|
66271
|
+
return rspack_wasi_browser.transform(source, _options);
|
|
66391
66272
|
}
|
|
66392
66273
|
function transformSync(source, options) {
|
|
66393
66274
|
const _options = JSON.stringify(options || {});
|
|
66394
|
-
return
|
|
66275
|
+
return rspack_wasi_browser.transformSync(source, _options);
|
|
66395
66276
|
}
|
|
66396
|
-
const exports_rspackVersion = "2.0.0-beta.
|
|
66277
|
+
const exports_rspackVersion = "2.0.0-beta.7";
|
|
66397
66278
|
const exports_version = "5.75.0";
|
|
66398
66279
|
const exports_WebpackError = Error;
|
|
66399
66280
|
const exports_config = {
|
|
@@ -66451,13 +66332,13 @@ const exports_experiments = {
|
|
|
66451
66332
|
globalTrace: {
|
|
66452
66333
|
async register (filter, layer, output) {
|
|
66453
66334
|
await trace_JavaScriptTracer.initJavaScriptTrace(layer, output);
|
|
66454
|
-
|
|
66335
|
+
registerGlobalTrace(filter, layer, output);
|
|
66455
66336
|
trace_JavaScriptTracer.initCpuProfiler();
|
|
66456
66337
|
},
|
|
66457
66338
|
async cleanup () {
|
|
66458
66339
|
await trace_JavaScriptTracer.cleanupJavaScriptTrace();
|
|
66459
|
-
|
|
66460
|
-
|
|
66340
|
+
syncTraceEvent(trace_JavaScriptTracer.events);
|
|
66341
|
+
cleanupGlobalTrace();
|
|
66461
66342
|
}
|
|
66462
66343
|
},
|
|
66463
66344
|
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
|
|
@@ -66471,10 +66352,10 @@ const exports_experiments = {
|
|
|
66471
66352
|
transformSync: transformSync
|
|
66472
66353
|
},
|
|
66473
66354
|
resolver: {
|
|
66474
|
-
ResolverFactory:
|
|
66475
|
-
EnforceExtension:
|
|
66476
|
-
async:
|
|
66477
|
-
sync:
|
|
66355
|
+
ResolverFactory: external_rspack_wasi_browser_js_ResolverFactory,
|
|
66356
|
+
EnforceExtension: EnforceExtension,
|
|
66357
|
+
async: external_rspack_wasi_browser_js_async,
|
|
66358
|
+
sync: sync
|
|
66478
66359
|
},
|
|
66479
66360
|
CssChunkingPlugin: CssChunkingPlugin,
|
|
66480
66361
|
createNativePlugin: createNativePlugin,
|
|
@@ -66627,7 +66508,7 @@ class BrowserRequirePlugin {
|
|
|
66627
66508
|
if (module) return module;
|
|
66628
66509
|
}
|
|
66629
66510
|
if (!execute) throw Error(`You should provide 'execute' option if there's no mapping for module '${id}'`);
|
|
66630
|
-
const { path: loaderPath } =
|
|
66511
|
+
const { path: loaderPath } = sync('', id);
|
|
66631
66512
|
if (!loaderPath) throw new Error(`Cannot find loader of ${id}`);
|
|
66632
66513
|
const data = fs_0["default"].readFileSync(loaderPath);
|
|
66633
66514
|
const code = data?.toString() || '';
|
|
@@ -66635,7 +66516,7 @@ class BrowserRequirePlugin {
|
|
|
66635
66516
|
exports: {}
|
|
66636
66517
|
};
|
|
66637
66518
|
const exports = module.exports;
|
|
66638
|
-
const cjs = (
|
|
66519
|
+
const cjs = external_rspack_wasi_browser_js_transformSync(code, JSON.stringify({
|
|
66639
66520
|
module: {
|
|
66640
66521
|
type: 'commonjs'
|
|
66641
66522
|
}
|
|
@@ -66654,4 +66535,4 @@ const builtinMemFs = {
|
|
|
66654
66535
|
volume: fs_0.volume,
|
|
66655
66536
|
memfs: fs_0.memfs
|
|
66656
66537
|
};
|
|
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,
|
|
66538
|
+
export { AsyncDependenciesBlock, BannerPlugin, BrowserHttpImportEsmPlugin, BrowserRequirePlugin, CaseSensitivePlugin, CircularDependencyRspackPlugin, Compilation, Compiler, ConcatenatedModule, ContextModule, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, DefaultRuntimeGlobals as RuntimeGlobals, DefinePlugin, Dependency, DllPlugin, DllReferencePlugin, DynamicEntryPlugin, EntryDependency, EntryPlugin, EnvironmentPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, ExternalModule, ExternalsPlugin, HotModuleReplacementPlugin, HtmlRspackPlugin, IgnorePlugin, LightningCssMinimizerRspackPlugin, LoaderOptionsPlugin, LoaderTargetPlugin, Module, ModuleFilenameHelpers_namespaceObject as ModuleFilenameHelpers, MultiCompiler, MultiStats, NoEmitOnErrorsPlugin, NormalModule, NormalModuleReplacementPlugin, ProgressPlugin, ProvidePlugin, RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply, RuntimeModule, RuntimePlugin, SourceMapDevToolPlugin, Stats, SubresourceIntegrityPlugin, SwcJsMinimizerRspackPlugin, Template, ValidationError, builtinMemFs, container, electron, exports_WebpackError as WebpackError, exports_config as config, exports_experiments as experiments, exports_library as library, exports_node as node, exports_rspackVersion as rspackVersion, exports_version as version, exports_wasm as wasm, javascript, lazyCompilationMiddleware, lib_EntryOptionPlugin as EntryOptionPlugin, optimize, sharing, src_rspack_0 as "module.exports", src_rspack_0 as rspack, statsFactoryUtils_StatsErrorCode as StatsErrorCode, util, web, webpack_sources_lib as sources, webworker };
|