@rspack/core 1.3.11 → 1.3.12
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/compiled/watchpack/index.js +56 -18
- package/compiled/watchpack/package.json +1 -1
- package/compiled/webpack-sources/index.js +1539 -339
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types.d.ts +320 -0
- package/compiled/zod/dist/types/index.d.ts +3 -0
- package/compiled/zod/{lib → dist/types/v3}/ZodError.d.ts +7 -7
- package/compiled/zod/{lib → dist/types/v3}/errors.d.ts +2 -2
- package/compiled/zod/dist/types/v3/external.d.ts +6 -0
- package/compiled/zod/{lib → dist/types/v3}/helpers/errorUtil.d.ts +1 -1
- package/compiled/zod/{lib → dist/types/v3}/helpers/parseUtil.d.ts +4 -4
- package/compiled/zod/{lib → dist/types/v3}/helpers/partialUtil.d.ts +1 -1
- package/compiled/zod/{lib → dist/types/v3}/helpers/util.d.ts +12 -9
- package/compiled/zod/dist/types/v3/index.d.ts +4 -0
- package/compiled/zod/{lib → dist/types/v3}/locales/en.d.ts +1 -1
- package/compiled/zod/{lib/__tests__ → dist/types/v3/tests}/Mocker.d.ts +6 -6
- package/compiled/zod/{lib → dist/types/v3}/types.d.ts +118 -149
- package/compiled/zod/dist/types/v4/classic/checks.d.ts +1 -0
- package/compiled/zod/dist/types/v4/classic/coerce.d.ts +17 -0
- package/compiled/zod/dist/types/v4/classic/compat.d.ts +48 -0
- package/compiled/zod/dist/types/v4/classic/errors.d.ts +30 -0
- package/compiled/zod/dist/types/v4/classic/external.d.ts +8 -0
- package/compiled/zod/dist/types/v4/classic/index.d.ts +4 -0
- package/compiled/zod/dist/types/v4/classic/iso.d.ts +22 -0
- package/compiled/zod/dist/types/v4/classic/parse.d.ts +23 -0
- package/compiled/zod/dist/types/v4/classic/schemas.d.ts +657 -0
- package/compiled/zod/dist/types/v4/core/api.d.ts +273 -0
- package/compiled/zod/dist/types/v4/core/checks.d.ts +277 -0
- package/compiled/zod/dist/types/v4/core/config.d.ts +9 -0
- package/compiled/zod/dist/types/v4/core/core.d.ts +43 -0
- package/compiled/zod/dist/types/v4/core/doc.d.ts +14 -0
- package/compiled/zod/dist/types/v4/core/errors.d.ts +205 -0
- package/compiled/zod/dist/types/v4/core/function.d.ts +47 -0
- package/compiled/zod/dist/types/v4/core/index.d.ts +15 -0
- package/compiled/zod/dist/types/v4/core/json-schema.d.ts +100 -0
- package/compiled/zod/dist/types/v4/core/parse.d.ts +25 -0
- package/compiled/zod/dist/types/v4/core/regexes.d.ts +62 -0
- package/compiled/zod/dist/types/v4/core/registries.d.ts +32 -0
- package/compiled/zod/dist/types/v4/core/schemas.d.ts +983 -0
- package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
- package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
- package/compiled/zod/dist/types/v4/core/util.d.ts +186 -0
- package/compiled/zod/dist/types/v4/core/versions.d.ts +5 -0
- package/compiled/zod/dist/types/v4/core/zsf.d.ts +91 -0
- package/compiled/zod/dist/types/v4/index.d.ts +3 -0
- package/compiled/zod/dist/types/v4/locales/ar.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/az.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/be.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ca.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/cs.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/de.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/en.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/es.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fa.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fi.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fr.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/frCA.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/he.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/hu.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/id.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/index.d.ts +34 -0
- package/compiled/zod/dist/types/v4/locales/it.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ja.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ko.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/mk.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ms.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/no.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ota.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/pl.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/pt.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ru.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/sl.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ta.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/th.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/tr.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ua.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ur.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/vi.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/zh-tw.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/checks.d.ts +1 -0
- package/compiled/zod/dist/types/v4/mini/coerce.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/external.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/index.d.ts +3 -0
- package/compiled/zod/dist/types/v4/mini/iso.d.ts +22 -0
- package/compiled/zod/dist/types/v4/mini/parse.d.ts +1 -0
- package/compiled/zod/dist/types/v4/mini/schemas.d.ts +407 -0
- package/compiled/zod/index.js +555 -602
- package/compiled/zod/license +1 -1
- package/compiled/zod/package.json +1 -1
- package/compiled/zod/v3/index.d.ts +1 -0
- package/compiled/zod/v4/core/index.d.ts +1 -0
- package/compiled/zod/v4/index.d.ts +1 -0
- package/compiled/zod/v4/locales/en.d.ts +2 -0
- package/compiled/zod/v4/locales/index.d.ts +1 -0
- package/compiled/zod/v4-mini/index.d.ts +1 -0
- package/dist/Compilation.d.ts +2 -2
- package/dist/Compiler.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -3
- package/dist/builtin-plugin/RstestPlugin.d.ts +11 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/exports.d.ts +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +171 -210
- package/dist/node/NodeWatchFileSystem.d.ts +2 -2
- package/dist/trace/index.d.ts +5 -0
- package/package.json +7 -8
- package/compiled/webpack-sources/index.d.ts +0 -130
- package/compiled/zod/index.d.ts +0 -2
- package/compiled/zod/lib/external.d.ts +0 -6
- package/compiled/zod/lib/index.d.ts +0 -4
- package/dist/setupEnv.d.ts +0 -1
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/datetime.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/discriminatedUnion.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/index.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/ipv4.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/object.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/primitives.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/realworld.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/string.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/union.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/helpers/enumUtil.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/helpers/typeAliases.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/standard-schema.d.ts +0 -0
package/dist/index.js
CHANGED
@@ -210,6 +210,9 @@ var __webpack_modules__ = {
|
|
210
210
|
browserslist: function(module) {
|
211
211
|
module.exports = require("../compiled/browserslist/index.js");
|
212
212
|
},
|
213
|
+
watchpack: function(module) {
|
214
|
+
module.exports = require("../compiled/watchpack/index.js");
|
215
|
+
},
|
213
216
|
"webpack-sources": function(module) {
|
214
217
|
module.exports = require("../compiled/webpack-sources/index.js");
|
215
218
|
},
|
@@ -222,9 +225,6 @@ var __webpack_modules__ = {
|
|
222
225
|
"@rspack/binding": function(module) {
|
223
226
|
module.exports = require("@rspack/binding");
|
224
227
|
},
|
225
|
-
"node:child_process": function(module) {
|
226
|
-
module.exports = require("node:child_process");
|
227
|
-
},
|
228
228
|
"node:http": function(module) {
|
229
229
|
module.exports = require("node:http");
|
230
230
|
},
|
@@ -237,6 +237,12 @@ var __webpack_modules__ = {
|
|
237
237
|
"node:url": function(module) {
|
238
238
|
module.exports = require("node:url");
|
239
239
|
},
|
240
|
+
"node:vm": function(module) {
|
241
|
+
module.exports = require("node:vm");
|
242
|
+
},
|
243
|
+
"node:zlib": function(module) {
|
244
|
+
module.exports = require("node:zlib");
|
245
|
+
},
|
240
246
|
process: function(module) {
|
241
247
|
module.exports = require("process");
|
242
248
|
},
|
@@ -280,6 +286,7 @@ var __webpack_exports__ = {};
|
|
280
286
|
for(var __webpack_i__ in (()=>{
|
281
287
|
let createMd4, createXxhash64, service_pool, bindingVersionCheck_result, loadLoader_url;
|
282
288
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
289
|
+
RstestPlugin: ()=>RstestPlugin,
|
283
290
|
RuntimePlugin: ()=>RuntimePlugin,
|
284
291
|
LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
|
285
292
|
Compiler: ()=>Compiler,
|
@@ -401,6 +408,7 @@ for(var __webpack_i__ in (()=>{
|
|
401
408
|
ProgressPlugin: ()=>ProgressPlugin,
|
402
409
|
ProvidePlugin: ()=>ProvidePlugin,
|
403
410
|
RspackOptionsApply: ()=>RspackOptionsApply,
|
411
|
+
RstestPlugin: ()=>RstestPlugin,
|
404
412
|
RuntimeGlobals: ()=>RuntimeGlobals,
|
405
413
|
RuntimeModule: ()=>RuntimeModule,
|
406
414
|
RuntimePlugin: ()=>RuntimePlugin,
|
@@ -429,8 +437,6 @@ for(var __webpack_i__ in (()=>{
|
|
429
437
|
web: ()=>web,
|
430
438
|
webworker: ()=>webworker
|
431
439
|
});
|
432
|
-
var external_node_os_ = __webpack_require__("node:os");
|
433
|
-
"darwin" === __webpack_require__.n(external_node_os_)().platform() && void 0 === process.env.WATCHPACK_WATCHER_LIMIT && (process.env.WATCHPACK_WATCHER_LIMIT = "20");
|
434
440
|
var binding_ = __webpack_require__("@rspack/binding"), binding_default = __webpack_require__.n(binding_);
|
435
441
|
let lite_tapable_namespaceObject = require("@rspack/lite-tapable"), CHUNK_GROUP_MAPPINGS = new WeakMap();
|
436
442
|
class ChunkGroup {
|
@@ -729,53 +735,6 @@ for(var __webpack_i__ in (()=>{
|
|
729
735
|
return this.#inner.getOutgoingConnectionsInOrder(module);
|
730
736
|
}
|
731
737
|
}
|
732
|
-
function isNil(value) {
|
733
|
-
return null == value;
|
734
|
-
}
|
735
|
-
let toBuffer = (bufLike)=>{
|
736
|
-
if (Buffer.isBuffer(bufLike)) return bufLike;
|
737
|
-
if ("string" == typeof bufLike) return Buffer.from(bufLike);
|
738
|
-
if (bufLike instanceof Uint8Array) return Buffer.from(bufLike.buffer);
|
739
|
-
throw Error("Buffer, Uint8Array or string expected");
|
740
|
-
}, toObject = (input)=>{
|
741
|
-
let s;
|
742
|
-
if (Buffer.isBuffer(input)) s = input.toString("utf8");
|
743
|
-
else if (input && "object" == typeof input) return input;
|
744
|
-
else if ("string" == typeof input) s = input;
|
745
|
-
else throw Error("Buffer or string or object expected");
|
746
|
-
return JSON.parse(s);
|
747
|
-
};
|
748
|
-
function serializeObject(map) {
|
749
|
-
if (!isNil(map)) return "string" == typeof map ? map ? toBuffer(map) : void 0 : toBuffer(JSON.stringify(map));
|
750
|
-
}
|
751
|
-
function concatErrorMsgAndStack(err) {
|
752
|
-
return "string" == typeof err ? Error(err) : (!("hideStack" in err && err.hideStack) && "stack" in err ? err.message = err.stack || err.toString() : err.message = err.toString(), err.stack = err.stack || void 0, "loc" in err && (err.loc = JSON.stringify(err.loc)), err);
|
753
|
-
}
|
754
|
-
function stringifyLoaderObject(o) {
|
755
|
-
return o.path + o.query + o.fragment;
|
756
|
-
}
|
757
|
-
let unsupported = (name, issue)=>{
|
758
|
-
let s = `${name} is not supported by rspack.`;
|
759
|
-
throw issue && (s += ` Please refer to issue ${issue} for more information.`), Error(s);
|
760
|
-
};
|
761
|
-
class JsRspackDiagnostic {
|
762
|
-
static __to_binding(error, severity) {
|
763
|
-
return {
|
764
|
-
error: concatErrorMsgAndStack(error),
|
765
|
-
severity
|
766
|
-
};
|
767
|
-
}
|
768
|
-
}
|
769
|
-
class NonErrorEmittedError extends Error {
|
770
|
-
constructor(error){
|
771
|
-
super(), this.name = "NonErrorEmittedError", this.message = `(Emitted value instead of an instance of Error) ${error}`;
|
772
|
-
}
|
773
|
-
}
|
774
|
-
class DeadlockRiskError extends Error {
|
775
|
-
constructor(message){
|
776
|
-
super(message), this.name = "DeadlockRiskError", this.stack = "";
|
777
|
-
}
|
778
|
-
}
|
779
738
|
class RuntimeModule {
|
780
739
|
static STAGE_NORMAL = 0;
|
781
740
|
static STAGE_BASIC = 5;
|
@@ -823,6 +782,16 @@ for(var __webpack_i__ in (()=>{
|
|
823
782
|
throw Error(`Should implement "generate" method of runtime module "${this.name}"`);
|
824
783
|
}
|
825
784
|
}
|
785
|
+
class NonErrorEmittedError extends Error {
|
786
|
+
constructor(error){
|
787
|
+
super(), this.name = "NonErrorEmittedError", this.message = `(Emitted value instead of an instance of Error) ${error}`;
|
788
|
+
}
|
789
|
+
}
|
790
|
+
class DeadlockRiskError extends Error {
|
791
|
+
constructor(message){
|
792
|
+
super(message), this.name = "DeadlockRiskError", this.stack = "";
|
793
|
+
}
|
794
|
+
}
|
826
795
|
class Stats {
|
827
796
|
#inner;
|
828
797
|
#compilation;
|
@@ -1508,6 +1477,9 @@ for(var __webpack_i__ in (()=>{
|
|
1508
1477
|
};
|
1509
1478
|
}
|
1510
1479
|
}
|
1480
|
+
function isNil(value) {
|
1481
|
+
return null == value;
|
1482
|
+
}
|
1511
1483
|
Object.defineProperty(binding_.Chunks.prototype, "values", {
|
1512
1484
|
enumerable: !0,
|
1513
1485
|
configurable: !0,
|
@@ -1549,7 +1521,82 @@ for(var __webpack_i__ in (()=>{
|
|
1549
1521
|
return originalSource ? JsSource.__from_binding(originalSource) : null;
|
1550
1522
|
}
|
1551
1523
|
});
|
1552
|
-
let
|
1524
|
+
let toBuffer = (bufLike)=>{
|
1525
|
+
if (Buffer.isBuffer(bufLike)) return bufLike;
|
1526
|
+
if ("string" == typeof bufLike) return Buffer.from(bufLike);
|
1527
|
+
if (bufLike instanceof Uint8Array) return Buffer.from(bufLike.buffer);
|
1528
|
+
throw Error("Buffer, Uint8Array or string expected");
|
1529
|
+
}, toObject = (input)=>{
|
1530
|
+
let s;
|
1531
|
+
if (Buffer.isBuffer(input)) s = input.toString("utf8");
|
1532
|
+
else if (input && "object" == typeof input) return input;
|
1533
|
+
else if ("string" == typeof input) s = input;
|
1534
|
+
else throw Error("Buffer or string or object expected");
|
1535
|
+
return JSON.parse(s);
|
1536
|
+
};
|
1537
|
+
function serializeObject(map) {
|
1538
|
+
if (!isNil(map)) return "string" == typeof map ? map ? toBuffer(map) : void 0 : toBuffer(JSON.stringify(map));
|
1539
|
+
}
|
1540
|
+
function util_concatErrorMsgAndStack(err) {
|
1541
|
+
return "string" == typeof err ? Error(err) : (!("hideStack" in err && err.hideStack) && "stack" in err ? err.message = err.stack || err.toString() : err.message = err.toString(), err.stack = err.stack || void 0, "loc" in err && (err.loc = JSON.stringify(err.loc)), err);
|
1542
|
+
}
|
1543
|
+
function stringifyLoaderObject(o) {
|
1544
|
+
return o.path + o.query + o.fragment;
|
1545
|
+
}
|
1546
|
+
let unsupported = (name, issue)=>{
|
1547
|
+
let s = `${name} is not supported by rspack.`;
|
1548
|
+
throw issue && (s += ` Please refer to issue ${issue} for more information.`), Error(s);
|
1549
|
+
}, $proxy = Symbol.for("proxy");
|
1550
|
+
function createDiagnosticArray(adm) {
|
1551
|
+
if ($proxy in adm) return adm[$proxy];
|
1552
|
+
let array = [];
|
1553
|
+
array[external_node_util_default().inspect.custom] = ()=>adm.values();
|
1554
|
+
let splice = function(index, deleteCount, ...newItems) {
|
1555
|
+
switch(arguments.length){
|
1556
|
+
case 0:
|
1557
|
+
return [];
|
1558
|
+
case 1:
|
1559
|
+
return adm.spliceWithArray(index, adm.length);
|
1560
|
+
case 2:
|
1561
|
+
return adm.spliceWithArray(index, deleteCount);
|
1562
|
+
}
|
1563
|
+
return adm.spliceWithArray(index, deleteCount, newItems.map((item)=>util_concatErrorMsgAndStack(item)));
|
1564
|
+
}, arrayExtensions = {
|
1565
|
+
[Symbol.iterator]: ()=>adm.values().values(),
|
1566
|
+
splice,
|
1567
|
+
push: (...newItems)=>(adm.spliceWithArray(adm.length, 0, newItems.map((item)=>util_concatErrorMsgAndStack(item))), adm.length),
|
1568
|
+
pop: ()=>splice(Math.max(adm.length - 1, 0), 1)[0],
|
1569
|
+
shift: ()=>splice(0, 1)[0],
|
1570
|
+
unshift: (...newItems)=>(adm.spliceWithArray(0, 0, newItems.map((item)=>util_concatErrorMsgAndStack(item))), adm.length),
|
1571
|
+
reverse: ()=>adm.values().reverse(),
|
1572
|
+
sort (compareFn) {
|
1573
|
+
let copy = adm.values();
|
1574
|
+
return copy.sort(compareFn), adm.spliceWithArray(0, adm.length, copy), this;
|
1575
|
+
},
|
1576
|
+
at: (index)=>adm.get(index),
|
1577
|
+
concat: (...items)=>([].includes, adm.values().concat(...items)),
|
1578
|
+
flat: ()=>adm.values(),
|
1579
|
+
every: (predicate, thisArg)=>adm.values().every(predicate, thisArg),
|
1580
|
+
filter: (predicate, thisArg)=>adm.values().filter(predicate, thisArg),
|
1581
|
+
find: (predicate, thisArg)=>adm.values().find(predicate, thisArg),
|
1582
|
+
findIndex: (predicate, thisArg)=>adm.values().findIndex(predicate, thisArg),
|
1583
|
+
flatMap: (callbackfn, thisArg)=>adm.values().flatMap(callbackfn, thisArg),
|
1584
|
+
forEach (callbackfn, thisArg) {
|
1585
|
+
adm.values().forEach(callbackfn, thisArg);
|
1586
|
+
},
|
1587
|
+
map: (callbackfn, thisArg)=>adm.values().map(callbackfn, thisArg),
|
1588
|
+
reduce: (callbackfn, initialValue)=>adm.values().reduce(callbackfn, initialValue),
|
1589
|
+
reduceRight: (callbackfn, initialValue)=>adm.values().reduceRight(callbackfn, initialValue)
|
1590
|
+
}, proxy = new Proxy(array, {
|
1591
|
+
get: (target, name)=>"length" === name ? adm.length : "string" != typeof name || Number.isNaN(Number.parseInt(name)) ? Object.prototype.hasOwnProperty.call(arrayExtensions, name) ? arrayExtensions[name] : target[name] : adm.get(Number.parseInt(name)),
|
1592
|
+
set (target, name, value) {
|
1593
|
+
if ("length" === name) throw Error("The 'length' property is read-only and cannot be assigned a new value.");
|
1594
|
+
return "symbol" == typeof name || Number.isNaN(Number.parseInt(name)) ? target[name] = value : adm.set(Number.parseInt(name), util_concatErrorMsgAndStack(value)), !0;
|
1595
|
+
}
|
1596
|
+
});
|
1597
|
+
return adm[$proxy] = proxy, proxy;
|
1598
|
+
}
|
1599
|
+
let checkCompilation = (compilation)=>{
|
1553
1600
|
if (!(compilation instanceof Compilation)) throw 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.');
|
1554
1601
|
};
|
1555
1602
|
Compilation_computedKey = binding_.COMPILATION_HOOKS_MAP_SYMBOL;
|
@@ -1557,6 +1604,7 @@ for(var __webpack_i__ in (()=>{
|
|
1557
1604
|
#inner;
|
1558
1605
|
#shutdown;
|
1559
1606
|
#errors;
|
1607
|
+
#warnings;
|
1560
1608
|
#chunks;
|
1561
1609
|
hooks;
|
1562
1610
|
name;
|
@@ -1843,104 +1891,16 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
1843
1891
|
this.#inner.pushNativeDiagnostics(diagnostics);
|
1844
1892
|
}
|
1845
1893
|
get errors() {
|
1846
|
-
return this.#errors || (this.#errors =
|
1847
|
-
if ($proxy in adm) return adm[$proxy];
|
1848
|
-
let array = [];
|
1849
|
-
array[external_node_util_default().inspect.custom] = ()=>adm.values();
|
1850
|
-
let splice = function(index, deleteCount, ...newItems) {
|
1851
|
-
switch(arguments.length){
|
1852
|
-
case 0:
|
1853
|
-
return [];
|
1854
|
-
case 1:
|
1855
|
-
return adm.spliceWithArray(index, adm.length);
|
1856
|
-
case 2:
|
1857
|
-
return adm.spliceWithArray(index, deleteCount);
|
1858
|
-
}
|
1859
|
-
return adm.spliceWithArray(index, deleteCount, newItems.map((item)=>concatErrorMsgAndStack(item)));
|
1860
|
-
}, arrayExtensions = {
|
1861
|
-
[Symbol.iterator]: ()=>adm.values().values(),
|
1862
|
-
splice,
|
1863
|
-
push: (...newItems)=>(adm.spliceWithArray(adm.length, 0, newItems.map((item)=>concatErrorMsgAndStack(item))), adm.length),
|
1864
|
-
pop: ()=>splice(Math.max(adm.length - 1, 0), 1)[0],
|
1865
|
-
shift: ()=>splice(0, 1)[0],
|
1866
|
-
unshift: (...newItems)=>(adm.spliceWithArray(0, 0, newItems.map((item)=>concatErrorMsgAndStack(item))), adm.length),
|
1867
|
-
reverse: ()=>adm.values().reverse(),
|
1868
|
-
sort (compareFn) {
|
1869
|
-
let copy = adm.values();
|
1870
|
-
return copy.sort(compareFn), adm.spliceWithArray(0, adm.length, copy), this;
|
1871
|
-
},
|
1872
|
-
at: (index)=>adm.get(index),
|
1873
|
-
concat: (...items)=>([].includes, adm.values().concat(...items)),
|
1874
|
-
flat: ()=>adm.values(),
|
1875
|
-
every: (predicate, thisArg)=>adm.values().every(predicate, thisArg),
|
1876
|
-
filter: (predicate, thisArg)=>adm.values().filter(predicate, thisArg),
|
1877
|
-
find: (predicate, thisArg)=>adm.values().find(predicate, thisArg),
|
1878
|
-
findIndex: (predicate, thisArg)=>adm.values().findIndex(predicate, thisArg),
|
1879
|
-
flatMap: (callbackfn, thisArg)=>adm.values().flatMap(callbackfn, thisArg),
|
1880
|
-
forEach (callbackfn, thisArg) {
|
1881
|
-
adm.values().forEach(callbackfn, thisArg);
|
1882
|
-
},
|
1883
|
-
map: (callbackfn, thisArg)=>adm.values().map(callbackfn, thisArg),
|
1884
|
-
reduce: (callbackfn, initialValue)=>adm.values().reduce(callbackfn, initialValue),
|
1885
|
-
reduceRight: (callbackfn, initialValue)=>adm.values().reduceRight(callbackfn, initialValue)
|
1886
|
-
}, proxy = new Proxy(array, {
|
1887
|
-
get: (target, name)=>"length" === name ? adm.length : "string" != typeof name || Number.isNaN(Number.parseInt(name)) ? Object.prototype.hasOwnProperty.call(arrayExtensions, name) ? arrayExtensions[name] : target[name] : adm.get(Number.parseInt(name)),
|
1888
|
-
set (target, name, value) {
|
1889
|
-
if ("length" === name) throw Error("The 'length' property is read-only and cannot be assigned a new value.");
|
1890
|
-
return "symbol" == typeof name || Number.isNaN(Number.parseInt(name)) ? target[name] = value : adm.set(Number.parseInt(name), concatErrorMsgAndStack(value)), !0;
|
1891
|
-
}
|
1892
|
-
});
|
1893
|
-
return adm[$proxy] = proxy, proxy;
|
1894
|
-
}(this.#inner.errors)), this.#errors;
|
1894
|
+
return this.#errors || (this.#errors = createDiagnosticArray(this.#inner.errors)), this.#errors;
|
1895
1895
|
}
|
1896
1896
|
set errors(errors) {
|
1897
|
-
|
1898
|
-
inner.spliceDiagnostic(0, length, errors.map((error)=>JsRspackDiagnostic.__to_binding(error, binding_.JsRspackSeverity.Error)));
|
1897
|
+
this.#errors || (this.#errors = createDiagnosticArray(this.#inner.errors)), this.#errors.splice(0, this.#errors.length, ...errors);
|
1899
1898
|
}
|
1900
1899
|
get warnings() {
|
1901
|
-
|
1902
|
-
for (let item of [
|
1903
|
-
{
|
1904
|
-
method: "push",
|
1905
|
-
handler (target, thisArg, warns) {
|
1906
|
-
for (let warn of warns)inner.pushDiagnostic(JsRspackDiagnostic.__to_binding(warn, binding_.JsRspackSeverity.Warn));
|
1907
|
-
return Reflect.apply(target, thisArg, warns);
|
1908
|
-
}
|
1909
|
-
},
|
1910
|
-
{
|
1911
|
-
method: "pop",
|
1912
|
-
handler: (target, thisArg)=>(inner.spliceDiagnostic(warnings.length - 1, warnings.length, []), Reflect.apply(target, thisArg, []))
|
1913
|
-
},
|
1914
|
-
{
|
1915
|
-
method: "shift",
|
1916
|
-
handler: (target, thisArg)=>(inner.spliceDiagnostic(0, 1, []), Reflect.apply(target, thisArg, []))
|
1917
|
-
},
|
1918
|
-
{
|
1919
|
-
method: "unshift",
|
1920
|
-
handler: (target, thisArg, warns)=>(inner.spliceDiagnostic(0, 0, warns.map((warn)=>JsRspackDiagnostic.__to_binding(warn, binding_.JsRspackSeverity.Warn))), Reflect.apply(target, thisArg, warns))
|
1921
|
-
},
|
1922
|
-
{
|
1923
|
-
method: "splice",
|
1924
|
-
handler (target, thisArg, [startIdx, delCount, ...warns]) {
|
1925
|
-
let warnList = warns.map((warn)=>JsRspackDiagnostic.__to_binding(warn, binding_.JsRspackSeverity.Warn));
|
1926
|
-
return inner.spliceDiagnostic(startIdx, startIdx + delCount, warnList), Reflect.apply(target, thisArg, [
|
1927
|
-
startIdx,
|
1928
|
-
delCount,
|
1929
|
-
...warnList
|
1930
|
-
]);
|
1931
|
-
}
|
1932
|
-
}
|
1933
|
-
]){
|
1934
|
-
let proxiedMethod = new Proxy(warnings[item.method], {
|
1935
|
-
apply: item.handler
|
1936
|
-
});
|
1937
|
-
warnings[item.method] = proxiedMethod;
|
1938
|
-
}
|
1939
|
-
return warnings;
|
1900
|
+
return this.#warnings || (this.#warnings = createDiagnosticArray(this.#inner.warnings)), this.#warnings;
|
1940
1901
|
}
|
1941
1902
|
set warnings(warnings) {
|
1942
|
-
|
1943
|
-
inner.spliceDiagnostic(0, length, warnings.map((warning)=>JsRspackDiagnostic.__to_binding(warning, binding_.JsRspackSeverity.Warn)));
|
1903
|
+
this.#warnings || (this.#warnings = createDiagnosticArray(this.#inner.warnings)), this.#warnings.splice(0, this.#warnings.length, ...warnings);
|
1944
1904
|
}
|
1945
1905
|
getPath(filename, data = {}) {
|
1946
1906
|
let pathData = {
|
@@ -2175,15 +2135,13 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
2175
2135
|
return this.#data.keys()[Symbol.iterator]();
|
2176
2136
|
}
|
2177
2137
|
}
|
2178
|
-
let external_node_vm_namespaceObject = require("node:vm");
|
2179
|
-
var external_node_vm_default = __webpack_require__.n(external_node_vm_namespaceObject);
|
2180
2138
|
class ExecuteModulePlugin {
|
2181
2139
|
apply(compiler) {
|
2182
2140
|
compiler.hooks.thisCompilation.tap("executeModule", (compilation)=>{
|
2183
2141
|
compiler.__internal__get_module_execution_results_map().clear(), compilation.hooks.executeModule.tap("executeModule", (options, context)=>{
|
2184
|
-
let moduleObject = options.moduleObject, source = options.codeGenerationResult.get("javascript");
|
2142
|
+
let vm = __webpack_require__("node:vm"), moduleObject = options.moduleObject, source = options.codeGenerationResult.get("javascript");
|
2185
2143
|
if (void 0 !== source) try {
|
2186
|
-
|
2144
|
+
vm.runInThisContext(`(function(module, __webpack_module__, __webpack_exports__, exports, ${RuntimeGlobals.require}) {\n${source}\n})`, {
|
2187
2145
|
filename: moduleObject.id
|
2188
2146
|
}).call(moduleObject.exports, moduleObject, moduleObject, moduleObject.exports, moduleObject.exports, context.__webpack_require__);
|
2189
2147
|
} catch (e) {
|
@@ -3121,7 +3079,8 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
3121
3079
|
"chrome" === this.layer && (this.session.connect(), this.session.post("Profiler.enable"), this.session.post("Profiler.start"));
|
3122
3080
|
}
|
3123
3081
|
static async cleanupJavaScriptTrace() {
|
3124
|
-
this.layer.includes("chrome")
|
3082
|
+
if (!this.layer.includes("chrome")) return;
|
3083
|
+
let profileHandler = (err, param)=>{
|
3125
3084
|
let cpu_profile;
|
3126
3085
|
err ? console.error("Error stopping profiler:", err) : cpu_profile = param.profile, cpu_profile && (this.pushEvent({
|
3127
3086
|
name: "Profile",
|
@@ -3149,9 +3108,18 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
3149
3108
|
}
|
3150
3109
|
}
|
3151
3110
|
}));
|
3152
|
-
let
|
3153
|
-
external_node_fs_default().writeFileSync(
|
3154
|
-
|
3111
|
+
let is_empty = 0 === external_node_fs_default().statSync(this.output).size, fd = external_node_fs_default().openSync(this.output, "a"), first = is_empty;
|
3112
|
+
for (let event of this.events)first || external_node_fs_default().writeFileSync(fd, ",\n"), external_node_fs_default().writeFileSync(fd, JSON.stringify(event)), first = !1;
|
3113
|
+
external_node_fs_default().writeFileSync(fd, "\n]"), external_node_fs_default().closeSync(fd);
|
3114
|
+
};
|
3115
|
+
return new Promise((resolve, reject)=>{
|
3116
|
+
this.session.post("Profiler.stop", (err, params)=>{
|
3117
|
+
if (err) reject(err);
|
3118
|
+
else try {
|
3119
|
+
profileHandler(err, params), resolve();
|
3120
|
+
} catch (err) {
|
3121
|
+
reject(err);
|
3122
|
+
}
|
3155
3123
|
});
|
3156
3124
|
});
|
3157
3125
|
}
|
@@ -3473,7 +3441,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
3473
3441
|
args: {
|
3474
3442
|
id2: resource
|
3475
3443
|
}
|
3476
|
-
}), res.error ? onError(compiler.
|
3444
|
+
}), res.error ? onError(compiler.__internal__takeModuleExecutionResult(res.id) ?? Error(res.error)) : onDone(compiler.__internal__takeModuleExecutionResult(res.id));
|
3477
3445
|
}
|
3478
3446
|
};
|
3479
3447
|
}
|
@@ -3541,13 +3509,13 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
3541
3509
|
].filter(Boolean).join("|"));
|
3542
3510
|
}, loaderContext.rootContext = compiler.context, loaderContext.emitError = function(err) {
|
3543
3511
|
let error = err;
|
3544
|
-
error instanceof Error || (error = new NonErrorEmittedError(error)), error.name = "ModuleError", error.message = `${error.message} (from: ${stringifyLoaderObject(loaderContext.loaders[loaderContext.loaderIndex])})`, (error =
|
3512
|
+
error instanceof Error || (error = new NonErrorEmittedError(error)), error.name = "ModuleError", error.message = `${error.message} (from: ${stringifyLoaderObject(loaderContext.loaders[loaderContext.loaderIndex])})`, (error = util_concatErrorMsgAndStack(error)).moduleIdentifier = loaderContext._module.identifier(), compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
3545
3513
|
error,
|
3546
3514
|
severity: binding_.JsRspackSeverity.Error
|
3547
3515
|
});
|
3548
3516
|
}, loaderContext.emitWarning = function(warn) {
|
3549
3517
|
let warning = warn;
|
3550
|
-
warning instanceof Error || (warning = new NonErrorEmittedError(warning)), warning.name = "ModuleWarning", warning.message = `${warning.message} (from: ${stringifyLoaderObject(loaderContext.loaders[loaderContext.loaderIndex])})`, (warning =
|
3518
|
+
warning instanceof Error || (warning = new NonErrorEmittedError(warning)), warning.name = "ModuleWarning", warning.message = `${warning.message} (from: ${stringifyLoaderObject(loaderContext.loaders[loaderContext.loaderIndex])})`, (warning = util_concatErrorMsgAndStack(warning)).moduleIdentifier = loaderContext._module.identifier(), compiler._lastCompilation.__internal__pushRspackDiagnostic({
|
3551
3519
|
error: warning,
|
3552
3520
|
severity: binding_.JsRspackSeverity.Warn
|
3553
3521
|
});
|
@@ -3886,7 +3854,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
3886
3854
|
...uses
|
3887
3855
|
].map(normalizeRuleSetUseItem) : [
|
3888
3856
|
normalizeRuleSetUseItem(uses)
|
3889
|
-
], path1 = path, options1 = options, uses1.length ? uses1.map((use, index)=>{
|
3857
|
+
], path1 = path, options1 = options, uses1.length ? uses1.filter(Boolean).map((use, index)=>{
|
3890
3858
|
let o, isBuiltin = !1;
|
3891
3859
|
if (use.loader.startsWith(BUILTIN_LOADER_PREFIX)) {
|
3892
3860
|
var identifier, o1, options;
|
@@ -4894,7 +4862,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
4894
4862
|
message: "HtmlRspackPlugin does not support template path with loader yet"
|
4895
4863
|
})).optional(),
|
4896
4864
|
templateContent: zod_index_js_namespaceObject.z.string().or(templateRenderFunction).optional(),
|
4897
|
-
templateParameters: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string()).or(zod_index_js_namespaceObject.z.boolean()).or(templateParamFunction).optional(),
|
4865
|
+
templateParameters: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.string()).or(zod_index_js_namespaceObject.z.boolean()).or(templateParamFunction).optional(),
|
4898
4866
|
inject: zod_index_js_namespaceObject.z.enum([
|
4899
4867
|
"head",
|
4900
4868
|
"body"
|
@@ -4929,7 +4897,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
4929
4897
|
minify: zod_index_js_namespaceObject.z.boolean().optional(),
|
4930
4898
|
title: zod_index_js_namespaceObject.z.string().optional(),
|
4931
4899
|
favicon: zod_index_js_namespaceObject.z.string().optional(),
|
4932
|
-
meta: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string()))).optional(),
|
4900
|
+
meta: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.string()))).optional(),
|
4933
4901
|
hash: zod_index_js_namespaceObject.z.boolean().optional()
|
4934
4902
|
}), getPluginOptions = (compilation, uid)=>{
|
4935
4903
|
if (!(compilation instanceof Compilation)) throw TypeError("The 'compilation' argument must be an instance of Compilation");
|
@@ -5089,13 +5057,13 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
5089
5057
|
let HttpExternalsRspackPlugin = base_create(binding_.BuiltinPluginName.HttpExternalsRspackPlugin, (css, webAsync)=>({
|
5090
5058
|
css,
|
5091
5059
|
webAsync
|
5092
|
-
})),
|
5060
|
+
})), getHttp = memoize(()=>__webpack_require__("node:http")), getHttps = memoize(()=>__webpack_require__("node:https")), defaultHttpClient = async (url, headers)=>{
|
5093
5061
|
let { res, body } = await function(url, options) {
|
5094
|
-
let send = "https:" === new URL(url).protocol ? getHttps() : getHttp();
|
5062
|
+
let send = "https:" === new URL(url).protocol ? getHttps() : getHttp(), { createBrotliDecompress, createGunzip, createInflate } = __webpack_require__("node:zlib");
|
5095
5063
|
return new Promise((resolve, reject)=>{
|
5096
5064
|
send.get(url, options, (res)=>{
|
5097
5065
|
let contentEncoding = res.headers["content-encoding"], stream = res;
|
5098
|
-
"gzip" === contentEncoding ? stream = stream.pipe(
|
5066
|
+
"gzip" === contentEncoding ? stream = stream.pipe(createGunzip()) : "br" === contentEncoding ? stream = stream.pipe(createBrotliDecompress()) : "deflate" === contentEncoding && (stream = stream.pipe(createInflate()));
|
5099
5067
|
let chunks = [];
|
5100
5068
|
stream.on("data", (chunk)=>{
|
5101
5069
|
chunks.push(chunk);
|
@@ -5237,7 +5205,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
5237
5205
|
handler: (percentage, msg, items)=>{
|
5238
5206
|
progress(percentage, msg, ...items);
|
5239
5207
|
}
|
5240
|
-
} : progress), ProvidePlugin = base_create(binding_.BuiltinPluginName.ProvidePlugin, (provide)=>Object.fromEntries(Object.entries(provide).map(([key, value])=>("string" == typeof value && (value = [
|
5208
|
+
} : progress), RstestPlugin = base_create(binding_.BuiltinPluginName.RstestPlugin, (rstest)=>rstest), ProvidePlugin = base_create(binding_.BuiltinPluginName.ProvidePlugin, (provide)=>Object.fromEntries(Object.entries(provide).map(([key, value])=>("string" == typeof value && (value = [
|
5241
5209
|
value
|
5242
5210
|
]), [
|
5243
5211
|
key,
|
@@ -6574,7 +6542,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
6574
6542
|
}, applyExperimentsDefaults = (experiments, { production, development })=>{
|
6575
6543
|
F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "layers", !1), D(experiments, "topLevelAwait", !0), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !1), D(experiments.incremental, "providedExports", !1), D(experiments.incremental, "dependenciesDiagnostics", !1), D(experiments.incremental, "sideEffects", !1), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !1), D(experiments.incremental, "chunkIds", !1), D(experiments.incremental, "modulesHashes", !1), D(experiments.incremental, "modulesCodegen", !1), D(experiments.incremental, "modulesRuntimeRequirements", !1), D(experiments.incremental, "chunksRuntimeRequirements", !1), D(experiments.incremental, "chunksHashes", !1), D(experiments.incremental, "chunksRender", !1), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !0), D(experiments, "parallelLoader", !1);
|
6576
6544
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
6577
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.3.
|
6545
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.3.12"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
6578
6546
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyJavascriptParserOptionsDefaults = (parserOptions)=>{
|
6579
6547
|
D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
6580
6548
|
"..."
|
@@ -7482,7 +7450,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
7482
7450
|
},
|
7483
7451
|
arm: "gnueabihf"
|
7484
7452
|
}
|
7485
|
-
}, BINDING_VERSION = __webpack_require__("@rspack/binding/package.json").version, CORE_VERSION = "1.3.
|
7453
|
+
}, BINDING_VERSION = __webpack_require__("@rspack/binding/package.json").version, CORE_VERSION = "1.3.12", getAddonPlatformArchAbi = ()=>{
|
7486
7454
|
let { platform, arch } = process, binding = "";
|
7487
7455
|
binding += platform;
|
7488
7456
|
let abi = NodePlatformArchToAbi[platform][arch];
|
@@ -7491,16 +7459,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
7491
7459
|
else {
|
7492
7460
|
if ("object" != typeof abi) return Error(`unsupported abi: ${abi}`);
|
7493
7461
|
binding += `-${abi[!function() {
|
7494
|
-
|
7495
|
-
|
7496
|
-
return !glibcVersionRuntime;
|
7497
|
-
}
|
7498
|
-
try {
|
7499
|
-
let lddPath = __webpack_require__("node:child_process").execSync("which ldd").toString().trim();
|
7500
|
-
return (0, external_node_fs_namespaceObject.readFileSync)(lddPath, "utf8").includes("musl");
|
7501
|
-
} catch (e) {
|
7502
|
-
return !0;
|
7503
|
-
}
|
7462
|
+
let { glibcVersionRuntime } = process.report.getReport().header;
|
7463
|
+
return !glibcVersionRuntime;
|
7504
7464
|
}() ? "gnu" : "musl"]}`;
|
7505
7465
|
}
|
7506
7466
|
return binding;
|
@@ -8748,8 +8708,9 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
8748
8708
|
__internal__registerBuiltinPlugin(plugin) {
|
8749
8709
|
this.#builtinPlugins.push(plugin);
|
8750
8710
|
}
|
8751
|
-
|
8752
|
-
|
8711
|
+
__internal__takeModuleExecutionResult(id) {
|
8712
|
+
let result = this.#moduleExecutionResultsMap.get(id);
|
8713
|
+
return this.#moduleExecutionResultsMap.delete(id), result;
|
8753
8714
|
}
|
8754
8715
|
__internal__get_compilation() {
|
8755
8716
|
return this.#compilation;
|
@@ -8805,7 +8766,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
8805
8766
|
obj.children = this.stats.map((stat, idx)=>{
|
8806
8767
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
8807
8768
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
8808
|
-
}), childOptions.version && (obj.rspackVersion = "1.3.
|
8769
|
+
}), childOptions.version && (obj.rspackVersion = "1.3.12", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
8809
8770
|
let mapError = (j, obj)=>({
|
8810
8771
|
...obj,
|
8811
8772
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
@@ -9695,7 +9656,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
9695
9656
|
object.hash = context.getStatsCompilation(compilation).hash;
|
9696
9657
|
},
|
9697
9658
|
version: (object)=>{
|
9698
|
-
object.version = "5.75.0", object.rspackVersion = "1.3.
|
9659
|
+
object.version = "5.75.0", object.rspackVersion = "1.3.12";
|
9699
9660
|
},
|
9700
9661
|
env: (object, _compilation, _context, { _env })=>{
|
9701
9662
|
object.env = _env;
|
@@ -11194,7 +11155,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
11194
11155
|
buildMeta: zod_index_js_namespaceObject.z.custom().optional(),
|
11195
11156
|
exports: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).or(zod_index_js_namespaceObject.z.literal(!0)).optional(),
|
11196
11157
|
id: zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.number()).optional()
|
11197
|
-
}), dllReferencePluginOptionsContent = zod_index_js_namespaceObject.z.record(dllReferencePluginOptionsContentItem), dllReferencePluginOptionsSourceType = zod_index_js_namespaceObject.z.enum([
|
11158
|
+
}), dllReferencePluginOptionsContent = zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), dllReferencePluginOptionsContentItem), dllReferencePluginOptionsSourceType = zod_index_js_namespaceObject.z.enum([
|
11198
11159
|
"var",
|
11199
11160
|
"assign",
|
11200
11161
|
"this",
|
@@ -11445,8 +11406,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
11445
11406
|
throw Error(`Unexpected LogType ${type}`);
|
11446
11407
|
}
|
11447
11408
|
};
|
11448
|
-
}
|
11449
|
-
var watchpack_index_js_default = __webpack_require__.n(watchpack_index_js_namespaceObject);
|
11409
|
+
};
|
11450
11410
|
class NodeWatchFileSystem {
|
11451
11411
|
inputFileSystem;
|
11452
11412
|
watcherOptions;
|
@@ -11454,7 +11414,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
11454
11414
|
constructor(inputFileSystem){
|
11455
11415
|
this.inputFileSystem = inputFileSystem, this.watcherOptions = {
|
11456
11416
|
aggregateTimeout: 0
|
11457
|
-
}
|
11417
|
+
};
|
11458
11418
|
}
|
11459
11419
|
watch(files, directories, missing, startTime, options, callback, callbackUndelayed) {
|
11460
11420
|
if (!files || "function" != typeof files[Symbol.iterator]) throw Error("Invalid arguments: 'files'");
|
@@ -11464,24 +11424,24 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
11464
11424
|
if ("number" != typeof startTime && startTime) throw Error("Invalid arguments: 'startTime'");
|
11465
11425
|
if ("object" != typeof options) throw Error("Invalid arguments: 'options'");
|
11466
11426
|
if ("function" != typeof callbackUndelayed && callbackUndelayed) throw Error("Invalid arguments: 'callbackUndelayed'");
|
11467
|
-
let oldWatcher = this.watcher;
|
11468
|
-
this.watcher = new (
|
11427
|
+
let oldWatcher = this.watcher, Watchpack = __webpack_require__("watchpack");
|
11428
|
+
this.watcher = new Watchpack(options), callbackUndelayed && this.watcher?.once("change", callbackUndelayed);
|
11469
11429
|
let fetchTimeInfo = ()=>{
|
11470
11430
|
let fileTimeInfoEntries = new Map(), contextTimeInfoEntries = new Map();
|
11471
|
-
return this.watcher
|
11431
|
+
return this.watcher?.collectTimeInfoEntries(fileTimeInfoEntries, contextTimeInfoEntries), {
|
11472
11432
|
fileTimeInfoEntries,
|
11473
11433
|
contextTimeInfoEntries
|
11474
11434
|
};
|
11475
11435
|
};
|
11476
|
-
return this.watcher
|
11477
|
-
if (this.watcher
|
11436
|
+
return this.watcher?.once("aggregated", (changes, removals)=>{
|
11437
|
+
if (this.watcher?.pause(), this.inputFileSystem?.purge) {
|
11478
11438
|
let fs = this.inputFileSystem;
|
11479
11439
|
for (let item of changes)fs.purge?.(item);
|
11480
11440
|
for (let item of removals)fs.purge?.(item);
|
11481
11441
|
}
|
11482
11442
|
let { fileTimeInfoEntries, contextTimeInfoEntries } = fetchTimeInfo();
|
11483
11443
|
callback(null, fileTimeInfoEntries, contextTimeInfoEntries, changes, removals);
|
11484
|
-
}), this.watcher
|
11444
|
+
}), this.watcher?.watch({
|
11485
11445
|
files,
|
11486
11446
|
directories,
|
11487
11447
|
missing,
|
@@ -11499,7 +11459,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
11499
11459
|
let fs = this.inputFileSystem;
|
11500
11460
|
for (let item of items)fs.purge?.(item);
|
11501
11461
|
}
|
11502
|
-
return items;
|
11462
|
+
return items ?? new Set();
|
11503
11463
|
}, "Watcher.getAggregatedRemovals is deprecated in favor of Watcher.getInfo since that's more performant.", "DEP_WEBPACK_WATCHER_GET_AGGREGATED_REMOVALS"),
|
11504
11464
|
getAggregatedChanges: external_node_util_default().deprecate(()=>{
|
11505
11465
|
let items = this.watcher?.aggregatedChanges;
|
@@ -11507,12 +11467,12 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
11507
11467
|
let fs = this.inputFileSystem;
|
11508
11468
|
for (let item of items)fs.purge?.(item);
|
11509
11469
|
}
|
11510
|
-
return items;
|
11470
|
+
return items ?? new Set();
|
11511
11471
|
}, "Watcher.getAggregatedChanges is deprecated in favor of Watcher.getInfo since that's more performant.", "DEP_WEBPACK_WATCHER_GET_AGGREGATED_CHANGES"),
|
11512
11472
|
getFileTimeInfoEntries: external_node_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"),
|
11513
11473
|
getContextTimeInfoEntries: external_node_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"),
|
11514
11474
|
getInfo: ()=>{
|
11515
|
-
let removals = this.watcher?.aggregatedRemovals, changes = this.watcher?.aggregatedChanges;
|
11475
|
+
let removals = this.watcher?.aggregatedRemovals ?? new Set(), changes = this.watcher?.aggregatedChanges ?? new Set();
|
11516
11476
|
if (this.inputFileSystem?.purge) {
|
11517
11477
|
let fs = this.inputFileSystem;
|
11518
11478
|
if (removals) for (let item of removals)fs.purge?.(item);
|
@@ -12139,7 +12099,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
12139
12099
|
library: libraryOptions.optional(),
|
12140
12100
|
dependOn: entryDependOn.optional(),
|
12141
12101
|
layer: zod_layer.optional()
|
12142
|
-
}), entryStatic = zod_index_js_namespaceObject.z.record(entryItem.or(entryDescription)).or(entryItem), entryDynamic = zod_index_js_namespaceObject.z.function().returns(entryStatic.or(zod_index_js_namespaceObject.z.promise(entryStatic))), zod_entry = entryStatic.or(entryDynamic), zod_path = zod_index_js_namespaceObject.z.string(), pathinfo = zod_index_js_namespaceObject.z.boolean().or(zod_index_js_namespaceObject.z.literal("verbose")), webassemblyModuleFilename = zod_index_js_namespaceObject.z.string(), zod_crossOriginLoading = zod_index_js_namespaceObject.z.literal(!1).or(zod_index_js_namespaceObject.z.enum([
|
12102
|
+
}), entryStatic = zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), entryItem.or(entryDescription)).or(entryItem), entryDynamic = zod_index_js_namespaceObject.z.function().returns(entryStatic.or(zod_index_js_namespaceObject.z.promise(entryStatic))), zod_entry = entryStatic.or(entryDynamic), zod_path = zod_index_js_namespaceObject.z.string(), pathinfo = zod_index_js_namespaceObject.z.boolean().or(zod_index_js_namespaceObject.z.literal("verbose")), webassemblyModuleFilename = zod_index_js_namespaceObject.z.string(), zod_crossOriginLoading = zod_index_js_namespaceObject.z.literal(!1).or(zod_index_js_namespaceObject.z.enum([
|
12143
12103
|
"anonymous",
|
12144
12104
|
"use-credentials"
|
12145
12105
|
])), hotUpdateGlobal = zod_index_js_namespaceObject.z.string(), zod_uniqueName = zod_index_js_namespaceObject.z.string(), chunkLoadingGlobal = zod_index_js_namespaceObject.z.string(), zod_enabledLibraryTypes = zod_index_js_namespaceObject.z.array(libraryType), clean = zod_index_js_namespaceObject.z.union([
|
@@ -12230,7 +12190,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
12230
12190
|
charset: zod_index_js_namespaceObject.z.boolean().optional(),
|
12231
12191
|
environment: zod_environment.optional(),
|
12232
12192
|
compareBeforeEmit: zod_index_js_namespaceObject.z.boolean().optional()
|
12233
|
-
}), resolveAlias = zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.literal(!1).or(zod_index_js_namespaceObject.z.string()).or(zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.literal(!1))))).or(zod_index_js_namespaceObject.z.literal(!1)), resolveTsConfigFile = zod_index_js_namespaceObject.z.string(), resolveTsConfig = resolveTsConfigFile.or(zod_index_js_namespaceObject.z.strictObject({
|
12193
|
+
}), resolveAlias = zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.literal(!1).or(zod_index_js_namespaceObject.z.string()).or(zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.literal(!1))))).or(zod_index_js_namespaceObject.z.literal(!1)), resolveTsConfigFile = zod_index_js_namespaceObject.z.string(), resolveTsConfig = resolveTsConfigFile.or(zod_index_js_namespaceObject.z.strictObject({
|
12234
12194
|
configFile: resolveTsConfigFile,
|
12235
12195
|
references: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).or(zod_index_js_namespaceObject.z.literal("auto")).optional()
|
12236
12196
|
})), zod_resolveOptions = zod_index_js_namespaceObject.z.strictObject({
|
@@ -12250,18 +12210,18 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
12250
12210
|
tsConfig: resolveTsConfig.optional(),
|
12251
12211
|
fullySpecified: zod_index_js_namespaceObject.z.boolean().optional(),
|
12252
12212
|
exportsFields: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).optional(),
|
12253
|
-
extensionAlias: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()))).optional(),
|
12213
|
+
extensionAlias: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()))).optional(),
|
12254
12214
|
aliasFields: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).optional(),
|
12255
12215
|
restrictions: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).optional(),
|
12256
12216
|
roots: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).optional(),
|
12257
12217
|
pnp: zod_index_js_namespaceObject.z.boolean().optional()
|
12258
12218
|
}).extend({
|
12259
|
-
byDependency: zod_index_js_namespaceObject.z.lazy(()=>zod_index_js_namespaceObject.z.record(zod_resolveOptions)).optional()
|
12219
|
+
byDependency: zod_index_js_namespaceObject.z.lazy(()=>zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_resolveOptions)).optional()
|
12260
12220
|
}), ruleSetCondition = zod_index_js_namespaceObject.z.instanceof(RegExp).or(zod_index_js_namespaceObject.z.string()).or(zod_index_js_namespaceObject.z.function().args(zod_index_js_namespaceObject.z.string()).returns(zod_index_js_namespaceObject.z.boolean())).or(zod_index_js_namespaceObject.z.lazy(()=>ruleSetConditions)).or(zod_index_js_namespaceObject.z.lazy(()=>ruleSetLogicalConditions)), ruleSetConditions = zod_index_js_namespaceObject.z.lazy(()=>zod_index_js_namespaceObject.z.array(ruleSetCondition)), ruleSetLogicalConditions = zod_index_js_namespaceObject.z.strictObject({
|
12261
12221
|
and: ruleSetConditions.optional(),
|
12262
12222
|
or: ruleSetConditions.optional(),
|
12263
12223
|
not: ruleSetCondition.optional()
|
12264
|
-
}), ruleSetLoader = zod_index_js_namespaceObject.z.string(), ruleSetLoaderOptions = zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.any())), ruleSetLoaderWithOptions = new ZodRspackCrossChecker({
|
12224
|
+
}), ruleSetLoader = zod_index_js_namespaceObject.z.string(), ruleSetLoaderOptions = zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.any())), ruleSetLoaderWithOptions = new ZodRspackCrossChecker({
|
12265
12225
|
patterns: [
|
12266
12226
|
{
|
12267
12227
|
test: (_, input)=>input?.data?.loader === "builtin:swc-loader" && "object" == typeof input?.data?.options,
|
@@ -12315,15 +12275,15 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
12315
12275
|
resourceQuery: ruleSetCondition.optional(),
|
12316
12276
|
scheme: ruleSetCondition.optional(),
|
12317
12277
|
mimetype: ruleSetCondition.optional(),
|
12318
|
-
descriptionData: zod_index_js_namespaceObject.z.record(ruleSetCondition).optional(),
|
12319
|
-
with: zod_index_js_namespaceObject.z.record(ruleSetCondition).optional(),
|
12278
|
+
descriptionData: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), ruleSetCondition).optional(),
|
12279
|
+
with: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), ruleSetCondition).optional(),
|
12320
12280
|
type: zod_index_js_namespaceObject.z.string().optional(),
|
12321
12281
|
layer: zod_index_js_namespaceObject.z.string().optional(),
|
12322
12282
|
loader: ruleSetLoader.optional(),
|
12323
12283
|
options: ruleSetLoaderOptions.optional(),
|
12324
12284
|
use: ruleSetUse.optional(),
|
12325
|
-
parser: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.any()).optional(),
|
12326
|
-
generator: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.any()).optional(),
|
12285
|
+
parser: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.any()).optional(),
|
12286
|
+
generator: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.any()).optional(),
|
12327
12287
|
resolve: zod_resolveOptions.optional(),
|
12328
12288
|
sideEffects: zod_index_js_namespaceObject.z.boolean().optional(),
|
12329
12289
|
enforce: zod_index_js_namespaceObject.z.literal("pre").or(zod_index_js_namespaceObject.z.literal("post")).optional()
|
@@ -12579,8 +12539,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
12579
12539
|
] : []
|
12580
12540
|
}
|
12581
12541
|
],
|
12582
|
-
default: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.string().array()))
|
12583
|
-
}), externalItemValue = zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.boolean()).or(zod_index_js_namespaceObject.z.string().array().min(1)).or(externalObjectValue), externalItemObjectUnknown = zod_index_js_namespaceObject.z.record(externalItemValue), externalItemFunctionData = zod_index_js_namespaceObject.z.strictObject({
|
12542
|
+
default: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.string().array()))
|
12543
|
+
}), externalItemValue = zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.boolean()).or(zod_index_js_namespaceObject.z.string().array().min(1)).or(externalObjectValue), externalItemObjectUnknown = zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), externalItemValue), externalItemFunctionData = zod_index_js_namespaceObject.z.strictObject({
|
12584
12544
|
context: zod_index_js_namespaceObject.z.string().optional(),
|
12585
12545
|
dependencyType: zod_index_js_namespaceObject.z.string().optional(),
|
12586
12546
|
request: zod_index_js_namespaceObject.z.string().optional(),
|
@@ -12775,7 +12735,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
12775
12735
|
"all"
|
12776
12736
|
]).or(zod_index_js_namespaceObject.z.instanceof(RegExp)).or(zod_index_js_namespaceObject.z.function().args(zod_index_js_namespaceObject.z.instanceof(Chunk, {
|
12777
12737
|
message: "Input not instance of Chunk"
|
12778
|
-
})).returns(zod_index_js_namespaceObject.z.boolean())), optimizationSplitChunksSizes = zod_index_js_namespaceObject.z.number().or(zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.number())), optimizationSplitChunksDefaultSizeTypes = zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()), sharedOptimizationSplitChunksCacheGroup = {
|
12738
|
+
})).returns(zod_index_js_namespaceObject.z.boolean())), optimizationSplitChunksSizes = zod_index_js_namespaceObject.z.number().or(zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.number())), optimizationSplitChunksDefaultSizeTypes = zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()), sharedOptimizationSplitChunksCacheGroup = {
|
12779
12739
|
chunks: optimizationSplitChunksChunks.optional(),
|
12780
12740
|
defaultSizeTypes: optimizationSplitChunksDefaultSizeTypes.optional(),
|
12781
12741
|
minChunks: zod_index_js_namespaceObject.z.number().min(1).optional(),
|
@@ -12920,9 +12880,9 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
12920
12880
|
zod_index_js_namespaceObject.z.literal(!1)
|
12921
12881
|
]).optional(),
|
12922
12882
|
upgrade: zod_index_js_namespaceObject.z.boolean().optional(),
|
12923
|
-
httpClient: zod_index_js_namespaceObject.z.function().args(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string())).returns(zod_index_js_namespaceObject.z.promise(zod_index_js_namespaceObject.z.object({
|
12883
|
+
httpClient: zod_index_js_namespaceObject.z.function().args(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.string())).returns(zod_index_js_namespaceObject.z.promise(zod_index_js_namespaceObject.z.object({
|
12924
12884
|
status: zod_index_js_namespaceObject.z.number(),
|
12925
|
-
headers: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string()),
|
12885
|
+
headers: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.string()),
|
12926
12886
|
body: zod_index_js_namespaceObject.z.instanceof(Buffer)
|
12927
12887
|
}))).optional()
|
12928
12888
|
}), zod_experiments = zod_index_js_namespaceObject.z.strictObject({
|
@@ -12945,7 +12905,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
12945
12905
|
ignored: zod_index_js_namespaceObject.z.string().array().or(zod_index_js_namespaceObject.z.instanceof(RegExp)).or(zod_index_js_namespaceObject.z.string()).optional(),
|
12946
12906
|
poll: zod_index_js_namespaceObject.z.number().or(zod_index_js_namespaceObject.z.boolean()).optional(),
|
12947
12907
|
stdin: zod_index_js_namespaceObject.z.boolean().optional()
|
12948
|
-
}), devServer = zod_index_js_namespaceObject.z.custom(), ignoreWarnings = zod_index_js_namespaceObject.z.instanceof(RegExp).or(zod_index_js_namespaceObject.z.function().args(zod_index_js_namespaceObject.z.instanceof(Error), zod_index_js_namespaceObject.z.custom()).returns(zod_index_js_namespaceObject.z.boolean())).array(), zod_profile = zod_index_js_namespaceObject.z.boolean(), amd = zod_index_js_namespaceObject.z.literal(!1).or(zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.any())), bail = zod_index_js_namespaceObject.z.boolean(), zod_performance = zod_index_js_namespaceObject.z.strictObject({
|
12908
|
+
}), devServer = zod_index_js_namespaceObject.z.custom(), ignoreWarnings = zod_index_js_namespaceObject.z.instanceof(RegExp).or(zod_index_js_namespaceObject.z.function().args(zod_index_js_namespaceObject.z.instanceof(Error), zod_index_js_namespaceObject.z.custom()).returns(zod_index_js_namespaceObject.z.boolean())).array(), zod_profile = zod_index_js_namespaceObject.z.boolean(), amd = zod_index_js_namespaceObject.z.literal(!1).or(zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string(), zod_index_js_namespaceObject.z.any())), bail = zod_index_js_namespaceObject.z.boolean(), zod_performance = zod_index_js_namespaceObject.z.strictObject({
|
12949
12909
|
assetFilter: zod_index_js_namespaceObject.z.function().args(zod_index_js_namespaceObject.z.string()).returns(zod_index_js_namespaceObject.z.boolean()).optional(),
|
12950
12910
|
hints: zod_index_js_namespaceObject.z.enum([
|
12951
12911
|
"error",
|
@@ -13359,7 +13319,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
13359
13319
|
let _options = JSON.stringify(options || {});
|
13360
13320
|
return binding_default().transform(source, _options);
|
13361
13321
|
}
|
13362
|
-
let exports_rspackVersion = "1.3.
|
13322
|
+
let exports_rspackVersion = "1.3.12", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
13363
13323
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
13364
13324
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
13365
13325
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
@@ -13443,7 +13403,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
13443
13403
|
await JavaScriptTracer.initJavaScriptTrace(layer, output), (0, binding_.registerGlobalTrace)(filter, layer, output), JavaScriptTracer.initCpuProfiler();
|
13444
13404
|
},
|
13445
13405
|
async cleanup () {
|
13446
|
-
(0, binding_.cleanupGlobalTrace)(), JavaScriptTracer.cleanupJavaScriptTrace();
|
13406
|
+
(0, binding_.cleanupGlobalTrace)(), await JavaScriptTracer.cleanupJavaScriptTrace();
|
13447
13407
|
}
|
13448
13408
|
},
|
13449
13409
|
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
|
@@ -13525,7 +13485,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
13525
13485
|
}, exports_namespaceObject);
|
13526
13486
|
src_fn.rspack = src_fn, src_fn.webpack = src_fn;
|
13527
13487
|
let src_rspack = src_fn, src_0 = src_rspack;
|
13528
|
-
})(), exports.AsyncDependenciesBlock = __webpack_exports__.AsyncDependenciesBlock, exports.BannerPlugin = __webpack_exports__.BannerPlugin, exports.CircularDependencyRspackPlugin = __webpack_exports__.CircularDependencyRspackPlugin, exports.Compilation = __webpack_exports__.Compilation, exports.Compiler = __webpack_exports__.Compiler, exports.ConcatenatedModule = __webpack_exports__.ConcatenatedModule, exports.ContextModule = __webpack_exports__.ContextModule, exports.ContextReplacementPlugin = __webpack_exports__.ContextReplacementPlugin, exports.CopyRspackPlugin = __webpack_exports__.CopyRspackPlugin, exports.CssExtractRspackPlugin = __webpack_exports__.CssExtractRspackPlugin, exports.DefinePlugin = __webpack_exports__.DefinePlugin, exports.Dependency = __webpack_exports__.Dependency, exports.DllPlugin = __webpack_exports__.DllPlugin, exports.DllReferencePlugin = __webpack_exports__.DllReferencePlugin, exports.DynamicEntryPlugin = __webpack_exports__.DynamicEntryPlugin, exports.EntryDependency = __webpack_exports__.EntryDependency, exports.EntryOptionPlugin = __webpack_exports__.EntryOptionPlugin, exports.EntryPlugin = __webpack_exports__.EntryPlugin, exports.EnvironmentPlugin = __webpack_exports__.EnvironmentPlugin, exports.EvalDevToolModulePlugin = __webpack_exports__.EvalDevToolModulePlugin, exports.EvalSourceMapDevToolPlugin = __webpack_exports__.EvalSourceMapDevToolPlugin, exports.ExternalModule = __webpack_exports__.ExternalModule, exports.ExternalsPlugin = __webpack_exports__.ExternalsPlugin, exports.HotModuleReplacementPlugin = __webpack_exports__.HotModuleReplacementPlugin, exports.HtmlRspackPlugin = __webpack_exports__.HtmlRspackPlugin, exports.IgnorePlugin = __webpack_exports__.IgnorePlugin, exports.LightningCssMinimizerRspackPlugin = __webpack_exports__.LightningCssMinimizerRspackPlugin, exports.LoaderOptionsPlugin = __webpack_exports__.LoaderOptionsPlugin, exports.LoaderTargetPlugin = __webpack_exports__.LoaderTargetPlugin, exports.Module = __webpack_exports__.Module, exports.ModuleFilenameHelpers = __webpack_exports__.ModuleFilenameHelpers, exports.MultiCompiler = __webpack_exports__.MultiCompiler, exports.MultiStats = __webpack_exports__.MultiStats, exports.NoEmitOnErrorsPlugin = __webpack_exports__.NoEmitOnErrorsPlugin, exports.NormalModule = __webpack_exports__.NormalModule, exports.NormalModuleReplacementPlugin = __webpack_exports__.NormalModuleReplacementPlugin, exports.ProgressPlugin = __webpack_exports__.ProgressPlugin, exports.ProvidePlugin = __webpack_exports__.ProvidePlugin, exports.RspackOptionsApply = __webpack_exports__.RspackOptionsApply, exports.RuntimeGlobals = __webpack_exports__.RuntimeGlobals, exports.RuntimeModule = __webpack_exports__.RuntimeModule, exports.RuntimePlugin = __webpack_exports__.RuntimePlugin, exports.SourceMapDevToolPlugin = __webpack_exports__.SourceMapDevToolPlugin, exports.Stats = __webpack_exports__.Stats, exports.SwcJsMinimizerRspackPlugin = __webpack_exports__.SwcJsMinimizerRspackPlugin, exports.Template = __webpack_exports__.Template, exports.ValidationError = __webpack_exports__.ValidationError, exports.WarnCaseSensitiveModulesPlugin = __webpack_exports__.WarnCaseSensitiveModulesPlugin, exports.WebpackError = __webpack_exports__.WebpackError, exports.WebpackOptionsApply = __webpack_exports__.WebpackOptionsApply, exports.config = __webpack_exports__.config, exports.container = __webpack_exports__.container, exports.default = __webpack_exports__.default, exports.electron = __webpack_exports__.electron, exports.experiments = __webpack_exports__.experiments, exports.javascript = __webpack_exports__.javascript, exports.library = __webpack_exports__.library, exports.node = __webpack_exports__.node, exports.optimize = __webpack_exports__.optimize, exports.rspack = __webpack_exports__.rspack, exports.rspackVersion = __webpack_exports__.rspackVersion, exports.sharing = __webpack_exports__.sharing, exports.sources = __webpack_exports__.sources, exports.util = __webpack_exports__.util, exports.version = __webpack_exports__.version, exports.wasm = __webpack_exports__.wasm, exports.web = __webpack_exports__.web, exports.webworker = __webpack_exports__.webworker, __webpack_exports__)-1 === [
|
13488
|
+
})(), exports.AsyncDependenciesBlock = __webpack_exports__.AsyncDependenciesBlock, exports.BannerPlugin = __webpack_exports__.BannerPlugin, exports.CircularDependencyRspackPlugin = __webpack_exports__.CircularDependencyRspackPlugin, exports.Compilation = __webpack_exports__.Compilation, exports.Compiler = __webpack_exports__.Compiler, exports.ConcatenatedModule = __webpack_exports__.ConcatenatedModule, exports.ContextModule = __webpack_exports__.ContextModule, exports.ContextReplacementPlugin = __webpack_exports__.ContextReplacementPlugin, exports.CopyRspackPlugin = __webpack_exports__.CopyRspackPlugin, exports.CssExtractRspackPlugin = __webpack_exports__.CssExtractRspackPlugin, exports.DefinePlugin = __webpack_exports__.DefinePlugin, exports.Dependency = __webpack_exports__.Dependency, exports.DllPlugin = __webpack_exports__.DllPlugin, exports.DllReferencePlugin = __webpack_exports__.DllReferencePlugin, exports.DynamicEntryPlugin = __webpack_exports__.DynamicEntryPlugin, exports.EntryDependency = __webpack_exports__.EntryDependency, exports.EntryOptionPlugin = __webpack_exports__.EntryOptionPlugin, exports.EntryPlugin = __webpack_exports__.EntryPlugin, exports.EnvironmentPlugin = __webpack_exports__.EnvironmentPlugin, exports.EvalDevToolModulePlugin = __webpack_exports__.EvalDevToolModulePlugin, exports.EvalSourceMapDevToolPlugin = __webpack_exports__.EvalSourceMapDevToolPlugin, exports.ExternalModule = __webpack_exports__.ExternalModule, exports.ExternalsPlugin = __webpack_exports__.ExternalsPlugin, exports.HotModuleReplacementPlugin = __webpack_exports__.HotModuleReplacementPlugin, exports.HtmlRspackPlugin = __webpack_exports__.HtmlRspackPlugin, exports.IgnorePlugin = __webpack_exports__.IgnorePlugin, exports.LightningCssMinimizerRspackPlugin = __webpack_exports__.LightningCssMinimizerRspackPlugin, exports.LoaderOptionsPlugin = __webpack_exports__.LoaderOptionsPlugin, exports.LoaderTargetPlugin = __webpack_exports__.LoaderTargetPlugin, exports.Module = __webpack_exports__.Module, exports.ModuleFilenameHelpers = __webpack_exports__.ModuleFilenameHelpers, exports.MultiCompiler = __webpack_exports__.MultiCompiler, exports.MultiStats = __webpack_exports__.MultiStats, exports.NoEmitOnErrorsPlugin = __webpack_exports__.NoEmitOnErrorsPlugin, exports.NormalModule = __webpack_exports__.NormalModule, exports.NormalModuleReplacementPlugin = __webpack_exports__.NormalModuleReplacementPlugin, exports.ProgressPlugin = __webpack_exports__.ProgressPlugin, exports.ProvidePlugin = __webpack_exports__.ProvidePlugin, exports.RspackOptionsApply = __webpack_exports__.RspackOptionsApply, exports.RstestPlugin = __webpack_exports__.RstestPlugin, exports.RuntimeGlobals = __webpack_exports__.RuntimeGlobals, exports.RuntimeModule = __webpack_exports__.RuntimeModule, exports.RuntimePlugin = __webpack_exports__.RuntimePlugin, exports.SourceMapDevToolPlugin = __webpack_exports__.SourceMapDevToolPlugin, exports.Stats = __webpack_exports__.Stats, exports.SwcJsMinimizerRspackPlugin = __webpack_exports__.SwcJsMinimizerRspackPlugin, exports.Template = __webpack_exports__.Template, exports.ValidationError = __webpack_exports__.ValidationError, exports.WarnCaseSensitiveModulesPlugin = __webpack_exports__.WarnCaseSensitiveModulesPlugin, exports.WebpackError = __webpack_exports__.WebpackError, exports.WebpackOptionsApply = __webpack_exports__.WebpackOptionsApply, exports.config = __webpack_exports__.config, exports.container = __webpack_exports__.container, exports.default = __webpack_exports__.default, exports.electron = __webpack_exports__.electron, exports.experiments = __webpack_exports__.experiments, exports.javascript = __webpack_exports__.javascript, exports.library = __webpack_exports__.library, exports.node = __webpack_exports__.node, exports.optimize = __webpack_exports__.optimize, exports.rspack = __webpack_exports__.rspack, exports.rspackVersion = __webpack_exports__.rspackVersion, exports.sharing = __webpack_exports__.sharing, exports.sources = __webpack_exports__.sources, exports.util = __webpack_exports__.util, exports.version = __webpack_exports__.version, exports.wasm = __webpack_exports__.wasm, exports.web = __webpack_exports__.web, exports.webworker = __webpack_exports__.webworker, __webpack_exports__)-1 === [
|
13529
13489
|
"AsyncDependenciesBlock",
|
13530
13490
|
"BannerPlugin",
|
13531
13491
|
"CircularDependencyRspackPlugin",
|
@@ -13565,6 +13525,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
13565
13525
|
"ProgressPlugin",
|
13566
13526
|
"ProvidePlugin",
|
13567
13527
|
"RspackOptionsApply",
|
13528
|
+
"RstestPlugin",
|
13568
13529
|
"RuntimeGlobals",
|
13569
13530
|
"RuntimeModule",
|
13570
13531
|
"RuntimePlugin",
|