@rspack/core 1.3.10 → 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.
Files changed (134) hide show
  1. package/compiled/watchpack/index.js +56 -18
  2. package/compiled/watchpack/package.json +1 -1
  3. package/compiled/webpack-sources/index.js +1539 -339
  4. package/compiled/webpack-sources/package.json +1 -1
  5. package/compiled/webpack-sources/types.d.ts +320 -0
  6. package/compiled/zod/dist/types/index.d.ts +3 -0
  7. package/compiled/zod/{lib → dist/types/v3}/ZodError.d.ts +7 -7
  8. package/compiled/zod/{lib → dist/types/v3}/errors.d.ts +2 -2
  9. package/compiled/zod/dist/types/v3/external.d.ts +6 -0
  10. package/compiled/zod/{lib → dist/types/v3}/helpers/errorUtil.d.ts +1 -1
  11. package/compiled/zod/{lib → dist/types/v3}/helpers/parseUtil.d.ts +4 -4
  12. package/compiled/zod/{lib → dist/types/v3}/helpers/partialUtil.d.ts +1 -1
  13. package/compiled/zod/{lib → dist/types/v3}/helpers/util.d.ts +12 -9
  14. package/compiled/zod/dist/types/v3/index.d.ts +4 -0
  15. package/compiled/zod/{lib → dist/types/v3}/locales/en.d.ts +1 -1
  16. package/compiled/zod/{lib/__tests__ → dist/types/v3/tests}/Mocker.d.ts +6 -6
  17. package/compiled/zod/{lib → dist/types/v3}/types.d.ts +118 -149
  18. package/compiled/zod/dist/types/v4/classic/checks.d.ts +1 -0
  19. package/compiled/zod/dist/types/v4/classic/coerce.d.ts +17 -0
  20. package/compiled/zod/dist/types/v4/classic/compat.d.ts +48 -0
  21. package/compiled/zod/dist/types/v4/classic/errors.d.ts +30 -0
  22. package/compiled/zod/dist/types/v4/classic/external.d.ts +8 -0
  23. package/compiled/zod/dist/types/v4/classic/index.d.ts +4 -0
  24. package/compiled/zod/dist/types/v4/classic/iso.d.ts +22 -0
  25. package/compiled/zod/dist/types/v4/classic/parse.d.ts +23 -0
  26. package/compiled/zod/dist/types/v4/classic/schemas.d.ts +657 -0
  27. package/compiled/zod/dist/types/v4/core/api.d.ts +273 -0
  28. package/compiled/zod/dist/types/v4/core/checks.d.ts +277 -0
  29. package/compiled/zod/dist/types/v4/core/config.d.ts +9 -0
  30. package/compiled/zod/dist/types/v4/core/core.d.ts +43 -0
  31. package/compiled/zod/dist/types/v4/core/doc.d.ts +14 -0
  32. package/compiled/zod/dist/types/v4/core/errors.d.ts +205 -0
  33. package/compiled/zod/dist/types/v4/core/function.d.ts +47 -0
  34. package/compiled/zod/dist/types/v4/core/index.d.ts +15 -0
  35. package/compiled/zod/dist/types/v4/core/json-schema.d.ts +100 -0
  36. package/compiled/zod/dist/types/v4/core/parse.d.ts +25 -0
  37. package/compiled/zod/dist/types/v4/core/regexes.d.ts +62 -0
  38. package/compiled/zod/dist/types/v4/core/registries.d.ts +32 -0
  39. package/compiled/zod/dist/types/v4/core/schemas.d.ts +983 -0
  40. package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
  41. package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
  42. package/compiled/zod/dist/types/v4/core/util.d.ts +186 -0
  43. package/compiled/zod/dist/types/v4/core/versions.d.ts +5 -0
  44. package/compiled/zod/dist/types/v4/core/zsf.d.ts +91 -0
  45. package/compiled/zod/dist/types/v4/index.d.ts +3 -0
  46. package/compiled/zod/dist/types/v4/locales/ar.d.ts +7 -0
  47. package/compiled/zod/dist/types/v4/locales/az.d.ts +7 -0
  48. package/compiled/zod/dist/types/v4/locales/be.d.ts +7 -0
  49. package/compiled/zod/dist/types/v4/locales/ca.d.ts +7 -0
  50. package/compiled/zod/dist/types/v4/locales/cs.d.ts +7 -0
  51. package/compiled/zod/dist/types/v4/locales/de.d.ts +7 -0
  52. package/compiled/zod/dist/types/v4/locales/en.d.ts +7 -0
  53. package/compiled/zod/dist/types/v4/locales/es.d.ts +7 -0
  54. package/compiled/zod/dist/types/v4/locales/fa.d.ts +7 -0
  55. package/compiled/zod/dist/types/v4/locales/fi.d.ts +7 -0
  56. package/compiled/zod/dist/types/v4/locales/fr.d.ts +7 -0
  57. package/compiled/zod/dist/types/v4/locales/frCA.d.ts +7 -0
  58. package/compiled/zod/dist/types/v4/locales/he.d.ts +7 -0
  59. package/compiled/zod/dist/types/v4/locales/hu.d.ts +7 -0
  60. package/compiled/zod/dist/types/v4/locales/id.d.ts +7 -0
  61. package/compiled/zod/dist/types/v4/locales/index.d.ts +34 -0
  62. package/compiled/zod/dist/types/v4/locales/it.d.ts +7 -0
  63. package/compiled/zod/dist/types/v4/locales/ja.d.ts +7 -0
  64. package/compiled/zod/dist/types/v4/locales/ko.d.ts +7 -0
  65. package/compiled/zod/dist/types/v4/locales/mk.d.ts +7 -0
  66. package/compiled/zod/dist/types/v4/locales/ms.d.ts +7 -0
  67. package/compiled/zod/dist/types/v4/locales/no.d.ts +7 -0
  68. package/compiled/zod/dist/types/v4/locales/ota.d.ts +7 -0
  69. package/compiled/zod/dist/types/v4/locales/pl.d.ts +7 -0
  70. package/compiled/zod/dist/types/v4/locales/pt.d.ts +7 -0
  71. package/compiled/zod/dist/types/v4/locales/ru.d.ts +7 -0
  72. package/compiled/zod/dist/types/v4/locales/sl.d.ts +7 -0
  73. package/compiled/zod/dist/types/v4/locales/ta.d.ts +7 -0
  74. package/compiled/zod/dist/types/v4/locales/th.d.ts +7 -0
  75. package/compiled/zod/dist/types/v4/locales/tr.d.ts +7 -0
  76. package/compiled/zod/dist/types/v4/locales/ua.d.ts +7 -0
  77. package/compiled/zod/dist/types/v4/locales/ur.d.ts +7 -0
  78. package/compiled/zod/dist/types/v4/locales/vi.d.ts +7 -0
  79. package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +7 -0
  80. package/compiled/zod/dist/types/v4/locales/zh-tw.d.ts +7 -0
  81. package/compiled/zod/dist/types/v4/mini/checks.d.ts +1 -0
  82. package/compiled/zod/dist/types/v4/mini/coerce.d.ts +7 -0
  83. package/compiled/zod/dist/types/v4/mini/external.d.ts +7 -0
  84. package/compiled/zod/dist/types/v4/mini/index.d.ts +3 -0
  85. package/compiled/zod/dist/types/v4/mini/iso.d.ts +22 -0
  86. package/compiled/zod/dist/types/v4/mini/parse.d.ts +1 -0
  87. package/compiled/zod/dist/types/v4/mini/schemas.d.ts +407 -0
  88. package/compiled/zod/index.js +555 -602
  89. package/compiled/zod/license +1 -1
  90. package/compiled/zod/package.json +1 -1
  91. package/compiled/zod/v3/index.d.ts +1 -0
  92. package/compiled/zod/v4/core/index.d.ts +1 -0
  93. package/compiled/zod/v4/index.d.ts +1 -0
  94. package/compiled/zod/v4/locales/en.d.ts +2 -0
  95. package/compiled/zod/v4/locales/index.d.ts +1 -0
  96. package/compiled/zod/v4-mini/index.d.ts +1 -0
  97. package/dist/Compilation.d.ts +7 -7
  98. package/dist/Compiler.d.ts +1 -1
  99. package/dist/Diagnostics.d.ts +7 -0
  100. package/dist/Module.d.ts +9 -0
  101. package/dist/RspackError.d.ts +3 -0
  102. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -3
  103. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +19 -0
  104. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  105. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -3
  106. package/dist/builtin-plugin/RstestPlugin.d.ts +11 -0
  107. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +4 -4
  108. package/dist/builtin-plugin/index.d.ts +2 -0
  109. package/dist/config/zod.d.ts +6 -6
  110. package/dist/exports.d.ts +3 -0
  111. package/dist/index.d.ts +0 -1
  112. package/dist/index.js +392 -232
  113. package/dist/node/NodeWatchFileSystem.d.ts +2 -2
  114. package/dist/trace/index.d.ts +9 -3
  115. package/dist/trace/traceHookPlugin.d.ts +5 -0
  116. package/dist/worker.js +1 -1
  117. package/package.json +8 -9
  118. package/compiled/webpack-sources/index.d.ts +0 -130
  119. package/compiled/zod/index.d.ts +0 -2
  120. package/compiled/zod/lib/external.d.ts +0 -6
  121. package/compiled/zod/lib/index.d.ts +0 -4
  122. package/dist/setupEnv.d.ts +0 -1
  123. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/datetime.d.ts +0 -0
  124. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/discriminatedUnion.d.ts +0 -0
  125. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/index.d.ts +0 -0
  126. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/ipv4.d.ts +0 -0
  127. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/object.d.ts +0 -0
  128. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/primitives.d.ts +0 -0
  129. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/realworld.d.ts +0 -0
  130. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/string.d.ts +0 -0
  131. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/union.d.ts +0 -0
  132. /package/compiled/zod/{lib → dist/types/v3}/helpers/enumUtil.d.ts +0 -0
  133. /package/compiled/zod/{lib → dist/types/v3}/helpers/typeAliases.d.ts +0 -0
  134. /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,8 +225,11 @@ 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");
228
+ "node:http": function(module) {
229
+ module.exports = require("node:http");
230
+ },
231
+ "node:https": function(module) {
232
+ module.exports = require("node:https");
227
233
  },
228
234
  "node:os": function(module) {
229
235
  module.exports = require("node:os");
@@ -231,6 +237,12 @@ var __webpack_modules__ = {
231
237
  "node:url": function(module) {
232
238
  module.exports = require("node:url");
233
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
+ },
234
246
  process: function(module) {
235
247
  module.exports = require("process");
236
248
  },
@@ -274,6 +286,7 @@ var __webpack_exports__ = {};
274
286
  for(var __webpack_i__ in (()=>{
275
287
  let createMd4, createXxhash64, service_pool, bindingVersionCheck_result, loadLoader_url;
276
288
  __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
289
+ RstestPlugin: ()=>RstestPlugin,
277
290
  RuntimePlugin: ()=>RuntimePlugin,
278
291
  LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
279
292
  Compiler: ()=>Compiler,
@@ -395,6 +408,7 @@ for(var __webpack_i__ in (()=>{
395
408
  ProgressPlugin: ()=>ProgressPlugin,
396
409
  ProvidePlugin: ()=>ProvidePlugin,
397
410
  RspackOptionsApply: ()=>RspackOptionsApply,
411
+ RstestPlugin: ()=>RstestPlugin,
398
412
  RuntimeGlobals: ()=>RuntimeGlobals,
399
413
  RuntimeModule: ()=>RuntimeModule,
400
414
  RuntimePlugin: ()=>RuntimePlugin,
@@ -423,8 +437,6 @@ for(var __webpack_i__ in (()=>{
423
437
  web: ()=>web,
424
438
  webworker: ()=>webworker
425
439
  });
426
- var external_node_os_ = __webpack_require__("node:os");
427
- "darwin" === __webpack_require__.n(external_node_os_)().platform() && void 0 === process.env.WATCHPACK_WATCHER_LIMIT && (process.env.WATCHPACK_WATCHER_LIMIT = "20");
428
440
  var binding_ = __webpack_require__("@rspack/binding"), binding_default = __webpack_require__.n(binding_);
429
441
  let lite_tapable_namespaceObject = require("@rspack/lite-tapable"), CHUNK_GROUP_MAPPINGS = new WeakMap();
430
442
  class ChunkGroup {
@@ -723,48 +735,6 @@ for(var __webpack_i__ in (()=>{
723
735
  return this.#inner.getOutgoingConnectionsInOrder(module);
724
736
  }
725
737
  }
726
- function isNil(value) {
727
- return null == value;
728
- }
729
- let toBuffer = (bufLike)=>{
730
- if (Buffer.isBuffer(bufLike)) return bufLike;
731
- if ("string" == typeof bufLike) return Buffer.from(bufLike);
732
- if (bufLike instanceof Uint8Array) return Buffer.from(bufLike.buffer);
733
- throw Error("Buffer, Uint8Array or string expected");
734
- }, toObject = (input)=>{
735
- let s;
736
- if (Buffer.isBuffer(input)) s = input.toString("utf8");
737
- else if (input && "object" == typeof input) return input;
738
- else if ("string" == typeof input) s = input;
739
- else throw Error("Buffer or string or object expected");
740
- return JSON.parse(s);
741
- };
742
- function serializeObject(map) {
743
- if (!isNil(map)) return "string" == typeof map ? map ? toBuffer(map) : void 0 : toBuffer(JSON.stringify(map));
744
- }
745
- function concatErrorMsgAndStack(err) {
746
- 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);
747
- }
748
- function stringifyLoaderObject(o) {
749
- return o.path + o.query + o.fragment;
750
- }
751
- let unsupported = (name, issue)=>{
752
- let s = `${name} is not supported by rspack.`;
753
- throw issue && (s += ` Please refer to issue ${issue} for more information.`), Error(s);
754
- };
755
- class JsRspackDiagnostic {
756
- static __to_binding(error, severity) {
757
- return {
758
- error: concatErrorMsgAndStack(error),
759
- severity
760
- };
761
- }
762
- }
763
- class NonErrorEmittedError extends Error {
764
- constructor(error){
765
- super(), this.name = "NonErrorEmittedError", this.message = `(Emitted value instead of an instance of Error) ${error}`;
766
- }
767
- }
768
738
  class RuntimeModule {
769
739
  static STAGE_NORMAL = 0;
770
740
  static STAGE_BASIC = 5;
@@ -812,6 +782,16 @@ for(var __webpack_i__ in (()=>{
812
782
  throw Error(`Should implement "generate" method of runtime module "${this.name}"`);
813
783
  }
814
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
+ }
815
795
  class Stats {
816
796
  #inner;
817
797
  #compilation;
@@ -863,6 +843,7 @@ for(var __webpack_i__ in (()=>{
863
843
  getInner: this.#getInnerByCompilation.bind(this)
864
844
  });
865
845
  } catch (e) {
846
+ if (e instanceof DeadlockRiskError) throw e;
866
847
  console.warn(`Failed to get stats due to error: ${e?.message}, are you trying to access the stats from the previous compilation?`);
867
848
  }
868
849
  return stats;
@@ -882,6 +863,7 @@ for(var __webpack_i__ in (()=>{
882
863
  getInner: this.#getInnerByCompilation.bind(this)
883
864
  });
884
865
  } catch (e) {
866
+ if (e instanceof DeadlockRiskError) throw e;
885
867
  console.warn(`Failed to get stats due to error: ${e?.message}, are you trying to access the stats from the previous compilation?`);
886
868
  }
887
869
  if (!stats) return "";
@@ -1495,6 +1477,9 @@ for(var __webpack_i__ in (()=>{
1495
1477
  };
1496
1478
  }
1497
1479
  }
1480
+ function isNil(value) {
1481
+ return null == value;
1482
+ }
1498
1483
  Object.defineProperty(binding_.Chunks.prototype, "values", {
1499
1484
  enumerable: !0,
1500
1485
  configurable: !0,
@@ -1536,6 +1521,81 @@ for(var __webpack_i__ in (()=>{
1536
1521
  return originalSource ? JsSource.__from_binding(originalSource) : null;
1537
1522
  }
1538
1523
  });
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
+ }
1539
1599
  let checkCompilation = (compilation)=>{
1540
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.');
1541
1601
  };
@@ -1543,6 +1603,9 @@ for(var __webpack_i__ in (()=>{
1543
1603
  class Compilation {
1544
1604
  #inner;
1545
1605
  #shutdown;
1606
+ #errors;
1607
+ #warnings;
1608
+ #chunks;
1546
1609
  hooks;
1547
1610
  name;
1548
1611
  startTime;
@@ -1725,7 +1788,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
1725
1788
  return new Set(this.#inner.builtModules);
1726
1789
  }
1727
1790
  get chunks() {
1728
- return this.#inner.chunks;
1791
+ return this.#chunks || (this.#chunks = this.#inner.chunks), this.#chunks;
1729
1792
  }
1730
1793
  get namedChunks() {
1731
1794
  return createReadonlyMap({
@@ -1828,100 +1891,16 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
1828
1891
  this.#inner.pushNativeDiagnostics(diagnostics);
1829
1892
  }
1830
1893
  get errors() {
1831
- let inner = this.#inner, errors = inner.getErrors();
1832
- for (let item of [
1833
- {
1834
- method: "push",
1835
- handler (target, thisArg, errs) {
1836
- for(let i = 0; i < errs.length; i++){
1837
- let error = errs[i];
1838
- inner.pushDiagnostic(JsRspackDiagnostic.__to_binding(error, binding_.JsRspackSeverity.Error));
1839
- }
1840
- return Reflect.apply(target, thisArg, errs);
1841
- }
1842
- },
1843
- {
1844
- method: "pop",
1845
- handler: (target, thisArg)=>(inner.spliceDiagnostic(errors.length - 1, errors.length, []), Reflect.apply(target, thisArg, []))
1846
- },
1847
- {
1848
- method: "shift",
1849
- handler: (target, thisArg)=>(inner.spliceDiagnostic(0, 1, []), Reflect.apply(target, thisArg, []))
1850
- },
1851
- {
1852
- method: "unshift",
1853
- handler (target, thisArg, errs) {
1854
- let errList = errs.map((error)=>JsRspackDiagnostic.__to_binding(error, binding_.JsRspackSeverity.Error));
1855
- return inner.spliceDiagnostic(0, 0, errList), Reflect.apply(target, thisArg, errs);
1856
- }
1857
- },
1858
- {
1859
- method: "splice",
1860
- handler (target, thisArg, [startIdx, delCount, ...errors]) {
1861
- let errList = errors.map((error)=>JsRspackDiagnostic.__to_binding(error, binding_.JsRspackSeverity.Error));
1862
- return inner.spliceDiagnostic(startIdx, startIdx + delCount, errList), Reflect.apply(target, thisArg, [
1863
- startIdx,
1864
- delCount,
1865
- ...errors
1866
- ]);
1867
- }
1868
- }
1869
- ]){
1870
- let proxiedMethod = new Proxy(errors[item.method], {
1871
- apply: item.handler
1872
- });
1873
- errors[item.method] = proxiedMethod;
1874
- }
1875
- return errors;
1894
+ return this.#errors || (this.#errors = createDiagnosticArray(this.#inner.errors)), this.#errors;
1876
1895
  }
1877
1896
  set errors(errors) {
1878
- let inner = this.#inner, length = inner.getErrors().length;
1879
- 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);
1880
1898
  }
1881
1899
  get warnings() {
1882
- let inner = this.#inner, warnings = inner.getWarnings();
1883
- for (let item of [
1884
- {
1885
- method: "push",
1886
- handler (target, thisArg, warns) {
1887
- for (let warn of warns)inner.pushDiagnostic(JsRspackDiagnostic.__to_binding(warn, binding_.JsRspackSeverity.Warn));
1888
- return Reflect.apply(target, thisArg, warns);
1889
- }
1890
- },
1891
- {
1892
- method: "pop",
1893
- handler: (target, thisArg)=>(inner.spliceDiagnostic(warnings.length - 1, warnings.length, []), Reflect.apply(target, thisArg, []))
1894
- },
1895
- {
1896
- method: "shift",
1897
- handler: (target, thisArg)=>(inner.spliceDiagnostic(0, 1, []), Reflect.apply(target, thisArg, []))
1898
- },
1899
- {
1900
- method: "unshift",
1901
- handler: (target, thisArg, warns)=>(inner.spliceDiagnostic(0, 0, warns.map((warn)=>JsRspackDiagnostic.__to_binding(warn, binding_.JsRspackSeverity.Warn))), Reflect.apply(target, thisArg, warns))
1902
- },
1903
- {
1904
- method: "splice",
1905
- handler (target, thisArg, [startIdx, delCount, ...warns]) {
1906
- let warnList = warns.map((warn)=>JsRspackDiagnostic.__to_binding(warn, binding_.JsRspackSeverity.Warn));
1907
- return inner.spliceDiagnostic(startIdx, startIdx + delCount, warnList), Reflect.apply(target, thisArg, [
1908
- startIdx,
1909
- delCount,
1910
- ...warnList
1911
- ]);
1912
- }
1913
- }
1914
- ]){
1915
- let proxiedMethod = new Proxy(warnings[item.method], {
1916
- apply: item.handler
1917
- });
1918
- warnings[item.method] = proxiedMethod;
1919
- }
1920
- return warnings;
1900
+ return this.#warnings || (this.#warnings = createDiagnosticArray(this.#inner.warnings)), this.#warnings;
1921
1901
  }
1922
1902
  set warnings(warnings) {
1923
- let inner = this.#inner, length = inner.getWarnings().length;
1924
- 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);
1925
1904
  }
1926
1905
  getPath(filename, data = {}) {
1927
1906
  let pathData = {
@@ -2156,15 +2135,13 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
2156
2135
  return this.#data.keys()[Symbol.iterator]();
2157
2136
  }
2158
2137
  }
2159
- let external_node_vm_namespaceObject = require("node:vm");
2160
- var external_node_vm_default = __webpack_require__.n(external_node_vm_namespaceObject);
2161
2138
  class ExecuteModulePlugin {
2162
2139
  apply(compiler) {
2163
2140
  compiler.hooks.thisCompilation.tap("executeModule", (compilation)=>{
2164
2141
  compiler.__internal__get_module_execution_results_map().clear(), compilation.hooks.executeModule.tap("executeModule", (options, context)=>{
2165
- let moduleObject = options.moduleObject, source = options.codeGenerationResult.get("javascript");
2142
+ let vm = __webpack_require__("node:vm"), moduleObject = options.moduleObject, source = options.codeGenerationResult.get("javascript");
2166
2143
  if (void 0 !== source) try {
2167
- external_node_vm_default().runInThisContext(`(function(module, __webpack_module__, __webpack_exports__, exports, ${RuntimeGlobals.require}) {\n${source}\n})`, {
2144
+ vm.runInThisContext(`(function(module, __webpack_module__, __webpack_exports__, exports, ${RuntimeGlobals.require}) {\n${source}\n})`, {
2168
2145
  filename: moduleObject.id
2169
2146
  }).call(moduleObject.exports, moduleObject, moduleObject, moduleObject.exports, moduleObject.exports, context.__webpack_require__);
2170
2147
  } catch (e) {
@@ -3091,6 +3068,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3091
3068
  static layer;
3092
3069
  static output;
3093
3070
  static session;
3071
+ static counter = 100;
3094
3072
  static async initJavaScriptTrace(layer, output) {
3095
3073
  let { Session } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "node:inspector"));
3096
3074
  this.session = new Session(), this.layer = layer, this.output = output, this.events = [];
@@ -3101,7 +3079,8 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3101
3079
  "chrome" === this.layer && (this.session.connect(), this.session.post("Profiler.enable"), this.session.post("Profiler.start"));
3102
3080
  }
3103
3081
  static async cleanupJavaScriptTrace() {
3104
- this.layer.includes("chrome") && this.session.post("Profiler.stop", (err, param)=>{
3082
+ if (!this.layer.includes("chrome")) return;
3083
+ let profileHandler = (err, param)=>{
3105
3084
  let cpu_profile;
3106
3085
  err ? console.error("Error stopping profiler:", err) : cpu_profile = param.profile, cpu_profile && (this.pushEvent({
3107
3086
  name: "Profile",
@@ -3129,9 +3108,18 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3129
3108
  }
3130
3109
  }
3131
3110
  }));
3132
- let originTrace = external_node_fs_default().readFileSync(this.output, "utf-8"), originTraceIsEmpty = !originTrace.includes("{"), eventMsg = (this.events.length > 0 && !originTraceIsEmpty ? "," : "") + this.events.map((x)=>JSON.stringify(x)).join(",\n"), newTrace = originTrace.replace(/]$/, `${eventMsg}\n]`);
3133
- external_node_fs_default().writeFileSync(this.output, newTrace, {
3134
- flush: !0
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
+ }
3135
3123
  });
3136
3124
  });
3137
3125
  }
@@ -3453,7 +3441,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3453
3441
  args: {
3454
3442
  id2: resource
3455
3443
  }
3456
- }), res.error ? onError(compiler.__internal__getModuleExecutionResult(res.id) ?? Error(err)) : onDone(compiler.__internal__getModuleExecutionResult(res.id));
3444
+ }), res.error ? onError(compiler.__internal__takeModuleExecutionResult(res.id) ?? Error(res.error)) : onDone(compiler.__internal__takeModuleExecutionResult(res.id));
3457
3445
  }
3458
3446
  };
3459
3447
  }
@@ -3521,13 +3509,13 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3521
3509
  ].filter(Boolean).join("|"));
3522
3510
  }, loaderContext.rootContext = compiler.context, loaderContext.emitError = function(err) {
3523
3511
  let error = err;
3524
- error instanceof Error || (error = new NonErrorEmittedError(error)), error.name = "ModuleError", error.message = `${error.message} (from: ${stringifyLoaderObject(loaderContext.loaders[loaderContext.loaderIndex])})`, (error = concatErrorMsgAndStack(error)).moduleIdentifier = loaderContext._module.identifier(), compiler._lastCompilation.__internal__pushRspackDiagnostic({
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({
3525
3513
  error,
3526
3514
  severity: binding_.JsRspackSeverity.Error
3527
3515
  });
3528
3516
  }, loaderContext.emitWarning = function(warn) {
3529
3517
  let warning = warn;
3530
- warning instanceof Error || (warning = new NonErrorEmittedError(warning)), warning.name = "ModuleWarning", warning.message = `${warning.message} (from: ${stringifyLoaderObject(loaderContext.loaders[loaderContext.loaderIndex])})`, (warning = concatErrorMsgAndStack(warning)).moduleIdentifier = loaderContext._module.identifier(), compiler._lastCompilation.__internal__pushRspackDiagnostic({
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({
3531
3519
  error: warning,
3532
3520
  severity: binding_.JsRspackSeverity.Warn
3533
3521
  });
@@ -3767,7 +3755,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3767
3755
  else {
3768
3756
  var args1, raw;
3769
3757
  loaderState === binding_.JsLoaderState.Normal && (args1 = args, !(raw = !!currentLoaderObject?.raw) && args1[0] instanceof Uint8Array ? args1[0] = function(buf) {
3770
- let str = decoder.decode(buf);
3758
+ let str = decoder.decode(buf.buffer instanceof SharedArrayBuffer ? Buffer.from(buf) : buf);
3771
3759
  return 0xfeff === str.charCodeAt(0) ? str.slice(1) : str;
3772
3760
  }(args1[0]) : raw && "string" == typeof args1[0] && (args1[0] = Buffer.from(args1[0], "utf-8")), raw && args1[0] instanceof Uint8Array && !Buffer.isBuffer(args1[0]) && (args1[0] = Buffer.from(args1[0].buffer))), result = await utils_runSyncOrAsync(fn, loaderContext, args) || [];
3773
3761
  }
@@ -3822,7 +3810,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3822
3810
  additionalData
3823
3811
  ], context.resourceData));
3824
3812
  }
3825
- context.content = isNil(content) ? null : toBuffer(content), context.sourceMap = JsSourceMap.__to_binding(sourceMap), context.additionalData = additionalData || void 0;
3813
+ context.content = isNil(content) ? null : toBuffer(content), context.sourceMap = JsSourceMap.__to_binding(sourceMap), context.additionalData = additionalData || void 0, context.__internal__utf8Hint = "string" == typeof content;
3826
3814
  break;
3827
3815
  }
3828
3816
  default:
@@ -3866,7 +3854,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3866
3854
  ...uses
3867
3855
  ].map(normalizeRuleSetUseItem) : [
3868
3856
  normalizeRuleSetUseItem(uses)
3869
- ], path1 = path, options1 = options, uses1.length ? uses1.map((use, index)=>{
3857
+ ], path1 = path, options1 = options, uses1.length ? uses1.filter(Boolean).map((use, index)=>{
3870
3858
  let o, isBuiltin = !1;
3871
3859
  if (use.loader.startsWith(BUILTIN_LOADER_PREFIX)) {
3872
3860
  var identifier, o1, options;
@@ -4449,9 +4437,13 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
4449
4437
  let ret = {
4450
4438
  patterns: []
4451
4439
  };
4452
- return ret.patterns = (copy.patterns || []).map((pattern)=>("string" == typeof pattern && (pattern = {
4440
+ return ret.patterns = (copy.patterns || []).map((pattern)=>{
4441
+ "string" == typeof pattern && (pattern = {
4453
4442
  from: pattern
4454
- }), pattern.force ??= !1, pattern.noErrorOnMissing ??= !1, pattern.priority ??= 0, pattern.globOptions ??= {}, pattern.copyPermissions ??= !1, pattern)), ret;
4443
+ }), pattern.force ??= !1, pattern.noErrorOnMissing ??= !1, pattern.priority ??= 0, pattern.globOptions ??= {}, pattern.copyPermissions ??= !1;
4444
+ let originalTransform = pattern.transform;
4445
+ return originalTransform && ("object" == typeof originalTransform ? pattern.transform = (input, absoluteFilename)=>Promise.resolve(originalTransform.transformer(input, absoluteFilename)) : pattern.transform = (input, absoluteFilename)=>Promise.resolve(originalTransform(input, absoluteFilename))), pattern;
4446
+ }), ret;
4455
4447
  }), DEFAULT_FILENAME = "[name].css", LOADER_PATH = (0, external_node_path_namespaceObject.join)(__dirname, "cssExtractLoader.js");
4456
4448
  class CssExtractRspackPlugin {
4457
4449
  static pluginName = "css-extract-rspack-plugin";
@@ -4635,15 +4627,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4635
4627
  if (!enabled.has(type)) return enabled.add(type), createBuiltinPlugin(this.name, type);
4636
4628
  }
4637
4629
  }
4638
- let EnableWasmLoadingPlugin = base_create(binding_.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = base_create(binding_.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}), EvalDevToolModulePlugin = base_create(binding_.BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, "compilation"), EvalSourceMapDevToolPlugin = base_create(binding_.BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>({
4639
- filename: options.filename || void 0,
4640
- append: options.append,
4641
- namespace: options.namespace ?? "",
4642
- columns: options.columns ?? !0,
4643
- noSources: options.noSources ?? !1,
4644
- publicPath: options.publicPath,
4645
- module: options.module
4646
- }), "compilation");
4630
+ let EnableWasmLoadingPlugin = base_create(binding_.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = base_create(binding_.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}), EvalDevToolModulePlugin = base_create(binding_.BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, "compilation"), EvalSourceMapDevToolPlugin = base_create(binding_.BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, "compilation");
4647
4631
  class ExternalsPlugin extends RspackBuiltinPlugin {
4648
4632
  type;
4649
4633
  externals;
@@ -4878,7 +4862,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4878
4862
  message: "HtmlRspackPlugin does not support template path with loader yet"
4879
4863
  })).optional(),
4880
4864
  templateContent: zod_index_js_namespaceObject.z.string().or(templateRenderFunction).optional(),
4881
- 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(),
4882
4866
  inject: zod_index_js_namespaceObject.z.enum([
4883
4867
  "head",
4884
4868
  "body"
@@ -4913,7 +4897,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4913
4897
  minify: zod_index_js_namespaceObject.z.boolean().optional(),
4914
4898
  title: zod_index_js_namespaceObject.z.string().optional(),
4915
4899
  favicon: zod_index_js_namespaceObject.z.string().optional(),
4916
- 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(),
4917
4901
  hash: zod_index_js_namespaceObject.z.boolean().optional()
4918
4902
  }), getPluginOptions = (compilation, uid)=>{
4919
4903
  if (!(compilation instanceof Compilation)) throw TypeError("The 'compilation' argument must be an instance of Compilation");
@@ -5073,18 +5057,36 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
5073
5057
  let HttpExternalsRspackPlugin = base_create(binding_.BuiltinPluginName.HttpExternalsRspackPlugin, (css, webAsync)=>({
5074
5058
  css,
5075
5059
  webAsync
5076
- })), defaultHttpClient = (url, headers)=>fetch(url, {
5060
+ })), getHttp = memoize(()=>__webpack_require__("node:http")), getHttps = memoize(()=>__webpack_require__("node:https")), defaultHttpClient = async (url, headers)=>{
5061
+ let { res, body } = await function(url, options) {
5062
+ let send = "https:" === new URL(url).protocol ? getHttps() : getHttp(), { createBrotliDecompress, createGunzip, createInflate } = __webpack_require__("node:zlib");
5063
+ return new Promise((resolve, reject)=>{
5064
+ send.get(url, options, (res)=>{
5065
+ let contentEncoding = res.headers["content-encoding"], stream = res;
5066
+ "gzip" === contentEncoding ? stream = stream.pipe(createGunzip()) : "br" === contentEncoding ? stream = stream.pipe(createBrotliDecompress()) : "deflate" === contentEncoding && (stream = stream.pipe(createInflate()));
5067
+ let chunks = [];
5068
+ stream.on("data", (chunk)=>{
5069
+ chunks.push(chunk);
5070
+ }), stream.on("end", ()=>{
5071
+ let bodyBuffer = Buffer.concat(chunks);
5072
+ if (!res.complete) return void reject(Error(`${url} request was terminated early`));
5073
+ resolve({
5074
+ res,
5075
+ body: bodyBuffer
5076
+ });
5077
+ });
5078
+ }).on("error", reject);
5079
+ });
5080
+ }(url, {
5077
5081
  headers
5078
- }).then((response)=>response.arrayBuffer().then((buffer)=>{
5079
- let responseHeaders = {};
5080
- return response.headers.forEach((value, key)=>{
5081
- responseHeaders[key] = value;
5082
- }), {
5083
- status: response.status,
5084
- headers: responseHeaders,
5085
- body: Buffer.from(buffer)
5086
- };
5087
- }));
5082
+ }), responseHeaders = {};
5083
+ for (let [key, value] of Object.entries(res.headers))Array.isArray(value) ? responseHeaders[key] = value.join(", ") : responseHeaders[key] = value;
5084
+ return {
5085
+ status: res.statusCode,
5086
+ headers: responseHeaders,
5087
+ body: Buffer.from(body)
5088
+ };
5089
+ };
5088
5090
  class HttpUriPlugin extends RspackBuiltinPlugin {
5089
5091
  options;
5090
5092
  name;
@@ -5203,7 +5205,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
5203
5205
  handler: (percentage, msg, items)=>{
5204
5206
  progress(percentage, msg, ...items);
5205
5207
  }
5206
- } : 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 = [
5207
5209
  value
5208
5210
  ]), [
5209
5211
  key,
@@ -5656,7 +5658,20 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
5656
5658
  function normalizePath(path) {
5657
5659
  return path.replace(/\?.*$/, "").split(external_node_path_namespaceObject.sep).join("/");
5658
5660
  }
5659
- let ModuleInfoHeaderPlugin = base_create(binding_.BuiltinPluginName.ModuleInfoHeaderPlugin, (verbose)=>verbose, "compilation");
5661
+ let ModuleInfoHeaderPlugin = base_create(binding_.BuiltinPluginName.ModuleInfoHeaderPlugin, (verbose)=>verbose, "compilation"), CssChunkingPlugin = base_create(binding_.BuiltinPluginName.CssChunkingPlugin, function(options) {
5662
+ if (options.nextjs) return {
5663
+ strict: options.strict,
5664
+ exclude: /^pages\//
5665
+ };
5666
+ let { splitChunks } = this.options.optimization;
5667
+ if (splitChunks) {
5668
+ let cssMiniExtractIndex = splitChunks.defaultSizeTypes.indexOf("css/mini-extract");
5669
+ cssMiniExtractIndex && splitChunks.defaultSizeTypes.splice(cssMiniExtractIndex, 1);
5670
+ let cssIndex = splitChunks.defaultSizeTypes.indexOf("css");
5671
+ cssIndex && splitChunks.defaultSizeTypes.splice(cssIndex, 1);
5672
+ }
5673
+ return options;
5674
+ });
5660
5675
  function assertNotNill(value) {
5661
5676
  if (null == value) throw Error(`${value} should not be undefined or null`);
5662
5677
  }
@@ -6487,7 +6502,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
6487
6502
  asyncWebAssembly: options.experiments.asyncWebAssembly,
6488
6503
  css: options.experiments.css,
6489
6504
  targetProperties,
6490
- mode: options.mode
6505
+ mode: options.mode,
6506
+ uniqueName: options.output.uniqueName
6491
6507
  }), applyOutputDefaults(options.output, {
6492
6508
  context: options.context,
6493
6509
  targetProperties,
@@ -6526,15 +6542,20 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
6526
6542
  }, applyExperimentsDefaults = (experiments, { production, development })=>{
6527
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);
6528
6544
  }, applybundlerInfoDefaults = (rspackFuture, library)=>{
6529
- "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.3.10"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
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)));
6530
6546
  }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyJavascriptParserOptionsDefaults = (parserOptions)=>{
6531
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", [
6532
6548
  "..."
6533
6549
  ]), D(parserOptions, "importMeta", !0);
6534
6550
  }, applyJsonGeneratorOptionsDefaults = (generatorOptions)=>{
6535
6551
  D(generatorOptions, "JSONParse", !0);
6536
- }, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode })=>{
6537
- assertNotNill(module.parser), assertNotNill(module.generator), F(module.parser, "asset", ()=>({})), assertNotNill(module.parser.asset), F(module.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module.parser.asset.dataUrlCondition && D(module.parser.asset.dataUrlCondition, "maxSize", 8096), F(module.parser, "javascript", ()=>({})), assertNotNill(module.parser.javascript), applyJavascriptParserOptionsDefaults(module.parser.javascript), F(module.parser, JSON_MODULE_TYPE, ()=>({})), assertNotNill(module.parser[JSON_MODULE_TYPE]), D(module.parser[JSON_MODULE_TYPE], "exportsDepth", "development" === mode ? 1 : Number.MAX_SAFE_INTEGER), F(module.generator, "json", ()=>({})), assertNotNill(module.generator.json), applyJsonGeneratorOptionsDefaults(module.generator.json), css && (F(module.parser, "css", ()=>({})), assertNotNill(module.parser.css), D(module.parser.css, "namedExports", !0), D(module.parser.css, "url", !0), F(module.parser, "css/auto", ()=>({})), assertNotNill(module.parser["css/auto"]), D(module.parser["css/auto"], "namedExports", !0), D(module.parser["css/auto"], "url", !0), F(module.parser, "css/module", ()=>({})), assertNotNill(module.parser["css/module"]), D(module.parser["css/module"], "namedExports", !0), D(module.parser["css/module"], "url", !0), F(module.generator, "css", ()=>({})), assertNotNill(module.generator.css), D(module.generator.css, "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator.css, "esModule", !0), F(module.generator, "css/auto", ()=>({})), assertNotNill(module.generator["css/auto"]), D(module.generator["css/auto"], "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator["css/auto"], "exportsConvention", "as-is"), D(module.generator["css/auto"], "localIdentName", "[uniqueName]-[id]-[local]"), D(module.generator["css/auto"], "esModule", !0), F(module.generator, "css/module", ()=>({})), assertNotNill(module.generator["css/module"]), D(module.generator["css/module"], "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator["css/module"], "exportsConvention", "as-is"), D(module.generator["css/module"], "localIdentName", "[uniqueName]-[id]-[local]"), D(module.generator["css/module"], "esModule", !0)), A(module, "defaultRules", ()=>{
6552
+ }, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName })=>{
6553
+ if (assertNotNill(module.parser), assertNotNill(module.generator), F(module.parser, "asset", ()=>({})), assertNotNill(module.parser.asset), F(module.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module.parser.asset.dataUrlCondition && D(module.parser.asset.dataUrlCondition, "maxSize", 8096), F(module.parser, "javascript", ()=>({})), assertNotNill(module.parser.javascript), applyJavascriptParserOptionsDefaults(module.parser.javascript), F(module.parser, JSON_MODULE_TYPE, ()=>({})), assertNotNill(module.parser[JSON_MODULE_TYPE]), D(module.parser[JSON_MODULE_TYPE], "exportsDepth", "development" === mode ? 1 : Number.MAX_SAFE_INTEGER), F(module.generator, "json", ()=>({})), assertNotNill(module.generator.json), applyJsonGeneratorOptionsDefaults(module.generator.json), css) {
6554
+ F(module.parser, "css", ()=>({})), assertNotNill(module.parser.css), D(module.parser.css, "namedExports", !0), D(module.parser.css, "url", !0), F(module.parser, "css/auto", ()=>({})), assertNotNill(module.parser["css/auto"]), D(module.parser["css/auto"], "namedExports", !0), D(module.parser["css/auto"], "url", !0), F(module.parser, "css/module", ()=>({})), assertNotNill(module.parser["css/module"]), D(module.parser["css/module"], "namedExports", !0), D(module.parser["css/module"], "url", !0), F(module.generator, "css", ()=>({})), assertNotNill(module.generator.css), D(module.generator.css, "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator.css, "esModule", !0), F(module.generator, "css/auto", ()=>({})), assertNotNill(module.generator["css/auto"]), D(module.generator["css/auto"], "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator["css/auto"], "exportsConvention", "as-is");
6555
+ let localIdentName = uniqueName && uniqueName.length > 0 ? "[uniqueName]-[id]-[local]" : "[id]-[local]";
6556
+ D(module.generator["css/auto"], "localIdentName", localIdentName), D(module.generator["css/auto"], "esModule", !0), F(module.generator, "css/module", ()=>({})), assertNotNill(module.generator["css/module"]), D(module.generator["css/module"], "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator["css/module"], "exportsConvention", "as-is"), D(module.generator["css/module"], "localIdentName", localIdentName), D(module.generator["css/module"], "esModule", !0);
6557
+ }
6558
+ A(module, "defaultRules", ()=>{
6538
6559
  let esm = {
6539
6560
  type: "javascript/esm",
6540
6561
  resolve: {
@@ -6736,7 +6757,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
6736
6757
  if (tp) {
6737
6758
  if (tp.fetchWasm) return "fetch";
6738
6759
  if (tp.nodeBuiltins) return "async-node";
6739
- if (null === tp.nodeBuiltins || null === tp.fetchWasm) return "universal";
6760
+ null === tp.nodeBuiltins || tp.fetchWasm;
6740
6761
  }
6741
6762
  return !1;
6742
6763
  }), F(output, "workerWasmLoading", ()=>output.wasmLoading), F(output, "globalObject", ()=>{
@@ -7429,7 +7450,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
7429
7450
  },
7430
7451
  arm: "gnueabihf"
7431
7452
  }
7432
- }, BINDING_VERSION = __webpack_require__("@rspack/binding/package.json").version, CORE_VERSION = "1.3.10", getAddonPlatformArchAbi = ()=>{
7453
+ }, BINDING_VERSION = __webpack_require__("@rspack/binding/package.json").version, CORE_VERSION = "1.3.12", getAddonPlatformArchAbi = ()=>{
7433
7454
  let { platform, arch } = process, binding = "";
7434
7455
  binding += platform;
7435
7456
  let abi = NodePlatformArchToAbi[platform][arch];
@@ -7438,16 +7459,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
7438
7459
  else {
7439
7460
  if ("object" != typeof abi) return Error(`unsupported abi: ${abi}`);
7440
7461
  binding += `-${abi[!function() {
7441
- if (process.report && "function" == typeof process.report.getReport) {
7442
- let { glibcVersionRuntime } = process.report.getReport().header;
7443
- return !glibcVersionRuntime;
7444
- }
7445
- try {
7446
- let lddPath = __webpack_require__("node:child_process").execSync("which ldd").toString().trim();
7447
- return (0, external_node_fs_namespaceObject.readFileSync)(lddPath, "utf8").includes("musl");
7448
- } catch (e) {
7449
- return !0;
7450
- }
7462
+ let { glibcVersionRuntime } = process.report.getReport().header;
7463
+ return !glibcVersionRuntime;
7451
7464
  }() ? "gnu" : "musl"]}`;
7452
7465
  }
7453
7466
  return binding;
@@ -7997,7 +8010,26 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
7997
8010
  });
7998
8011
  }
7999
8012
  }
8000
- Object.defineProperty(binding_.Module.prototype, "identifier", {
8013
+ let $assets = Symbol("assets");
8014
+ Object.defineProperty(binding_.BuildInfo.prototype, "assets", {
8015
+ enumerable: !0,
8016
+ configurable: !0,
8017
+ get () {
8018
+ if (this._assets[$assets]) return this._assets[$assets];
8019
+ let assets = new Proxy(Object.create(null), {
8020
+ ownKeys: ()=>this._assets.keys(),
8021
+ getOwnPropertyDescriptor: ()=>({
8022
+ enumerable: !0,
8023
+ configurable: !0
8024
+ })
8025
+ });
8026
+ return Object.defineProperty(this._assets, $assets, {
8027
+ enumerable: !1,
8028
+ configurable: !0,
8029
+ value: assets
8030
+ }), assets;
8031
+ }
8032
+ }), Object.defineProperty(binding_.Module.prototype, "identifier", {
8001
8033
  enumerable: !0,
8002
8034
  configurable: !0,
8003
8035
  value () {
@@ -8152,7 +8184,132 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8152
8184
  await queried.promise(data, {});
8153
8185
  };
8154
8186
  })
8155
- }), COMPILATION_WEAK_MAP = new WeakMap();
8187
+ }), traceHookPlugin_PLUGIN_NAME = "TraceHookPlugin", makeInterceptorFor = (compilerName, tracer)=>(hookName)=>({
8188
+ register: (tapInfo)=>{
8189
+ let { name, type, fn: internalFn } = tapInfo, newFn = name === traceHookPlugin_PLUGIN_NAME ? internalFn : makeNewTraceTapFn(compilerName, hookName, tracer, {
8190
+ name,
8191
+ type,
8192
+ fn: internalFn
8193
+ });
8194
+ return {
8195
+ ...tapInfo,
8196
+ fn: newFn
8197
+ };
8198
+ }
8199
+ }), interceptAllHooksFor = (instance, tracer, logLabel)=>{
8200
+ if (Reflect.has(instance, "hooks")) for (let hookName of Object.keys(instance.hooks)){
8201
+ let hook = instance.hooks[hookName];
8202
+ hook && !hook._fakeHook && hook.intercept(makeInterceptorFor(logLabel, tracer)(hookName));
8203
+ }
8204
+ }, makeNewTraceTapFn = (compilerName, hookName, tracer, { name: pluginName, type, fn })=>{
8205
+ let name = `${pluginName}:${hookName}`;
8206
+ switch(type){
8207
+ case "promise":
8208
+ return (...args)=>{
8209
+ let id2 = tracer.counter++;
8210
+ return tracer.startAsync({
8211
+ name,
8212
+ id: pluginName,
8213
+ args: {
8214
+ id2,
8215
+ compilerName,
8216
+ hookName,
8217
+ pluginName
8218
+ }
8219
+ }), fn(...args).then((r)=>(tracer.endAsync({
8220
+ name,
8221
+ id: pluginName,
8222
+ args: {
8223
+ id2,
8224
+ compilerName,
8225
+ hookName,
8226
+ pluginName
8227
+ }
8228
+ }), r));
8229
+ };
8230
+ case "async":
8231
+ return (...args)=>{
8232
+ let id2 = tracer.counter++;
8233
+ tracer.startAsync({
8234
+ name,
8235
+ id: pluginName,
8236
+ args: {
8237
+ id2,
8238
+ compilerName,
8239
+ hookName,
8240
+ pluginName
8241
+ }
8242
+ });
8243
+ let callback = args.pop();
8244
+ fn(...args, (...r)=>{
8245
+ tracer.endAsync({
8246
+ name,
8247
+ id: pluginName,
8248
+ args: {
8249
+ id2,
8250
+ compilerName,
8251
+ hookName,
8252
+ pluginName
8253
+ }
8254
+ }), callback(...r);
8255
+ });
8256
+ };
8257
+ case "sync":
8258
+ return (...args)=>{
8259
+ let r, id2 = tracer.counter++;
8260
+ if (name === traceHookPlugin_PLUGIN_NAME) return fn(...args);
8261
+ tracer.startAsync({
8262
+ name,
8263
+ id: pluginName,
8264
+ args: {
8265
+ id2,
8266
+ compilerName,
8267
+ hookName,
8268
+ pluginName
8269
+ }
8270
+ });
8271
+ try {
8272
+ r = fn(...args);
8273
+ } catch (err) {
8274
+ throw tracer.endAsync({
8275
+ name,
8276
+ id: pluginName,
8277
+ args: {
8278
+ id2: compilerName,
8279
+ hookName,
8280
+ pluginName
8281
+ }
8282
+ }), err;
8283
+ }
8284
+ return tracer.endAsync({
8285
+ name,
8286
+ id: pluginName,
8287
+ args: {
8288
+ id2,
8289
+ compilerName,
8290
+ hookName,
8291
+ pluginName
8292
+ }
8293
+ }), r;
8294
+ };
8295
+ default:
8296
+ return fn;
8297
+ }
8298
+ }, compilerId = 0;
8299
+ class TraceHookPlugin {
8300
+ name = traceHookPlugin_PLUGIN_NAME;
8301
+ apply(compiler) {
8302
+ let compilerName = compiler.name || (compilerId++).toString();
8303
+ for (let hookName of Object.keys(compiler.hooks)){
8304
+ let hook = compiler.hooks[hookName];
8305
+ hook && hook.intercept(makeInterceptorFor(compilerName, JavaScriptTracer)(hookName));
8306
+ }
8307
+ compiler.hooks.compilation.tap(traceHookPlugin_PLUGIN_NAME, (compilation, { normalModuleFactory, contextModuleFactory })=>{
8308
+ interceptAllHooksFor(compilation, JavaScriptTracer, "Compilation"), interceptAllHooksFor(normalModuleFactory, JavaScriptTracer, "Normal Module Factory"), interceptAllHooksFor(contextModuleFactory, JavaScriptTracer, "Context Module Factory");
8309
+ });
8310
+ }
8311
+ }
8312
+ let COMPILATION_WEAK_MAP = new WeakMap();
8156
8313
  class Compiler {
8157
8314
  #instance;
8158
8315
  #initial;
@@ -8277,7 +8434,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8277
8434
  "entry"
8278
8435
  ]),
8279
8436
  additionalPass: new lite_tapable_namespaceObject.AsyncSeriesHook([])
8280
- }, this.webpack = src_rspack, this.rspack = src_rspack, this.root = this, this.outputPath = "", this.inputFileSystem = null, this.intermediateFileSystem = null, this.outputFileSystem = null, this.watchFileSystem = null, this.records = {}, this.options = options, this.context = context, this.cache = new Cache_Cache(), this.compilerPath = "", this.running = !1, this.idle = !1, this.watchMode = !1, this.resolverFactory = new ResolverFactory(options.resolve.pnp ?? getPnpDefault()), new JsLoaderRspackPlugin(this).apply(this), new ExecuteModulePlugin().apply(this);
8437
+ }, this.webpack = src_rspack, this.rspack = src_rspack, this.root = this, this.outputPath = "", this.inputFileSystem = null, this.intermediateFileSystem = null, this.outputFileSystem = null, this.watchFileSystem = null, this.records = {}, this.options = options, this.context = context, this.cache = new Cache_Cache(), this.compilerPath = "", this.running = !1, this.idle = !1, this.watchMode = !1, this.resolverFactory = new ResolverFactory(options.resolve.pnp ?? getPnpDefault()), new JsLoaderRspackPlugin(this).apply(this), new ExecuteModulePlugin().apply(this), new TraceHookPlugin().apply(this);
8281
8438
  }
8282
8439
  get recordsInputPath() {
8283
8440
  return unsupported("Compiler.recordsInputPath");
@@ -8551,8 +8708,9 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8551
8708
  __internal__registerBuiltinPlugin(plugin) {
8552
8709
  this.#builtinPlugins.push(plugin);
8553
8710
  }
8554
- __internal__getModuleExecutionResult(id) {
8555
- return this.#moduleExecutionResultsMap.get(id);
8711
+ __internal__takeModuleExecutionResult(id) {
8712
+ let result = this.#moduleExecutionResultsMap.get(id);
8713
+ return this.#moduleExecutionResultsMap.delete(id), result;
8556
8714
  }
8557
8715
  __internal__get_compilation() {
8558
8716
  return this.#compilation;
@@ -8608,7 +8766,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8608
8766
  obj.children = this.stats.map((stat, idx)=>{
8609
8767
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
8610
8768
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
8611
- }), childOptions.version && (obj.rspackVersion = "1.3.10", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8769
+ }), childOptions.version && (obj.rspackVersion = "1.3.12", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8612
8770
  let mapError = (j, obj)=>({
8613
8771
  ...obj,
8614
8772
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -9498,7 +9656,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
9498
9656
  object.hash = context.getStatsCompilation(compilation).hash;
9499
9657
  },
9500
9658
  version: (object)=>{
9501
- object.version = "5.75.0", object.rspackVersion = "1.3.10";
9659
+ object.version = "5.75.0", object.rspackVersion = "1.3.12";
9502
9660
  },
9503
9661
  env: (object, _compilation, _context, { _env })=>{
9504
9662
  object.env = _env;
@@ -9510,6 +9668,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
9510
9668
  object.builtAt = compilation.endTime;
9511
9669
  },
9512
9670
  publicPath: (object, compilation)=>{
9671
+ if ("function" == typeof compilation.outputOptions.publicPath) throw new DeadlockRiskError("publicPath as function can't be used with stats.publicPath=true, which may cause deadlock risk, consider setting stats.publicPath=false in rspack config");
9513
9672
  object.publicPath = compilation.getPath(compilation.outputOptions.publicPath || "");
9514
9673
  },
9515
9674
  outputPath: (object, compilation)=>{
@@ -10996,7 +11155,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
10996
11155
  buildMeta: zod_index_js_namespaceObject.z.custom().optional(),
10997
11156
  exports: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).or(zod_index_js_namespaceObject.z.literal(!0)).optional(),
10998
11157
  id: zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.number()).optional()
10999
- }), 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([
11000
11159
  "var",
11001
11160
  "assign",
11002
11161
  "this",
@@ -11247,8 +11406,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
11247
11406
  throw Error(`Unexpected LogType ${type}`);
11248
11407
  }
11249
11408
  };
11250
- }, watchpack_index_js_namespaceObject = require("../compiled/watchpack/index.js");
11251
- var watchpack_index_js_default = __webpack_require__.n(watchpack_index_js_namespaceObject);
11409
+ };
11252
11410
  class NodeWatchFileSystem {
11253
11411
  inputFileSystem;
11254
11412
  watcherOptions;
@@ -11256,7 +11414,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
11256
11414
  constructor(inputFileSystem){
11257
11415
  this.inputFileSystem = inputFileSystem, this.watcherOptions = {
11258
11416
  aggregateTimeout: 0
11259
- }, this.watcher = new (watchpack_index_js_default())(this.watcherOptions);
11417
+ };
11260
11418
  }
11261
11419
  watch(files, directories, missing, startTime, options, callback, callbackUndelayed) {
11262
11420
  if (!files || "function" != typeof files[Symbol.iterator]) throw Error("Invalid arguments: 'files'");
@@ -11266,24 +11424,24 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
11266
11424
  if ("number" != typeof startTime && startTime) throw Error("Invalid arguments: 'startTime'");
11267
11425
  if ("object" != typeof options) throw Error("Invalid arguments: 'options'");
11268
11426
  if ("function" != typeof callbackUndelayed && callbackUndelayed) throw Error("Invalid arguments: 'callbackUndelayed'");
11269
- let oldWatcher = this.watcher;
11270
- this.watcher = new (watchpack_index_js_default())(options), callbackUndelayed && this.watcher.once("change", callbackUndelayed);
11427
+ let oldWatcher = this.watcher, Watchpack = __webpack_require__("watchpack");
11428
+ this.watcher = new Watchpack(options), callbackUndelayed && this.watcher?.once("change", callbackUndelayed);
11271
11429
  let fetchTimeInfo = ()=>{
11272
11430
  let fileTimeInfoEntries = new Map(), contextTimeInfoEntries = new Map();
11273
- return this.watcher && this.watcher.collectTimeInfoEntries(fileTimeInfoEntries, contextTimeInfoEntries), {
11431
+ return this.watcher?.collectTimeInfoEntries(fileTimeInfoEntries, contextTimeInfoEntries), {
11274
11432
  fileTimeInfoEntries,
11275
11433
  contextTimeInfoEntries
11276
11434
  };
11277
11435
  };
11278
- return this.watcher.once("aggregated", (changes, removals)=>{
11279
- if (this.watcher.pause(), this.inputFileSystem?.purge) {
11436
+ return this.watcher?.once("aggregated", (changes, removals)=>{
11437
+ if (this.watcher?.pause(), this.inputFileSystem?.purge) {
11280
11438
  let fs = this.inputFileSystem;
11281
11439
  for (let item of changes)fs.purge?.(item);
11282
11440
  for (let item of removals)fs.purge?.(item);
11283
11441
  }
11284
11442
  let { fileTimeInfoEntries, contextTimeInfoEntries } = fetchTimeInfo();
11285
11443
  callback(null, fileTimeInfoEntries, contextTimeInfoEntries, changes, removals);
11286
- }), this.watcher.watch({
11444
+ }), this.watcher?.watch({
11287
11445
  files,
11288
11446
  directories,
11289
11447
  missing,
@@ -11301,7 +11459,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
11301
11459
  let fs = this.inputFileSystem;
11302
11460
  for (let item of items)fs.purge?.(item);
11303
11461
  }
11304
- return items;
11462
+ return items ?? new Set();
11305
11463
  }, "Watcher.getAggregatedRemovals is deprecated in favor of Watcher.getInfo since that's more performant.", "DEP_WEBPACK_WATCHER_GET_AGGREGATED_REMOVALS"),
11306
11464
  getAggregatedChanges: external_node_util_default().deprecate(()=>{
11307
11465
  let items = this.watcher?.aggregatedChanges;
@@ -11309,12 +11467,12 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
11309
11467
  let fs = this.inputFileSystem;
11310
11468
  for (let item of items)fs.purge?.(item);
11311
11469
  }
11312
- return items;
11470
+ return items ?? new Set();
11313
11471
  }, "Watcher.getAggregatedChanges is deprecated in favor of Watcher.getInfo since that's more performant.", "DEP_WEBPACK_WATCHER_GET_AGGREGATED_CHANGES"),
11314
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"),
11315
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"),
11316
11474
  getInfo: ()=>{
11317
- let removals = this.watcher?.aggregatedRemovals, changes = this.watcher?.aggregatedChanges;
11475
+ let removals = this.watcher?.aggregatedRemovals ?? new Set(), changes = this.watcher?.aggregatedChanges ?? new Set();
11318
11476
  if (this.inputFileSystem?.purge) {
11319
11477
  let fs = this.inputFileSystem;
11320
11478
  if (removals) for (let item of removals)fs.purge?.(item);
@@ -11941,10 +12099,10 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
11941
12099
  library: libraryOptions.optional(),
11942
12100
  dependOn: entryDependOn.optional(),
11943
12101
  layer: zod_layer.optional()
11944
- }), 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([
11945
12103
  "anonymous",
11946
12104
  "use-credentials"
11947
- ])), hotUpdateGlobal = zod_index_js_namespaceObject.z.string(), 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([
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([
11948
12106
  zod_index_js_namespaceObject.z.boolean(),
11949
12107
  zod_index_js_namespaceObject.z.strictObject({
11950
12108
  keep: 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())).optional()
@@ -11993,7 +12151,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
11993
12151
  hotUpdateChunkFilename: filenameTemplate.optional(),
11994
12152
  hotUpdateGlobal: hotUpdateGlobal.optional(),
11995
12153
  assetModuleFilename: zod_filename.optional(),
11996
- uniqueName: uniqueName.optional(),
12154
+ uniqueName: zod_uniqueName.optional(),
11997
12155
  chunkLoadingGlobal: chunkLoadingGlobal.optional(),
11998
12156
  enabledLibraryTypes: zod_enabledLibraryTypes.optional(),
11999
12157
  library: zod_library.optional(),
@@ -12032,7 +12190,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
12032
12190
  charset: zod_index_js_namespaceObject.z.boolean().optional(),
12033
12191
  environment: zod_environment.optional(),
12034
12192
  compareBeforeEmit: zod_index_js_namespaceObject.z.boolean().optional()
12035
- }), 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({
12036
12194
  configFile: resolveTsConfigFile,
12037
12195
  references: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).or(zod_index_js_namespaceObject.z.literal("auto")).optional()
12038
12196
  })), zod_resolveOptions = zod_index_js_namespaceObject.z.strictObject({
@@ -12052,18 +12210,18 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
12052
12210
  tsConfig: resolveTsConfig.optional(),
12053
12211
  fullySpecified: zod_index_js_namespaceObject.z.boolean().optional(),
12054
12212
  exportsFields: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).optional(),
12055
- 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(),
12056
12214
  aliasFields: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).optional(),
12057
12215
  restrictions: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).optional(),
12058
12216
  roots: zod_index_js_namespaceObject.z.array(zod_index_js_namespaceObject.z.string()).optional(),
12059
12217
  pnp: zod_index_js_namespaceObject.z.boolean().optional()
12060
12218
  }).extend({
12061
- 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()
12062
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({
12063
12221
  and: ruleSetConditions.optional(),
12064
12222
  or: ruleSetConditions.optional(),
12065
12223
  not: ruleSetCondition.optional()
12066
- }), 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({
12067
12225
  patterns: [
12068
12226
  {
12069
12227
  test: (_, input)=>input?.data?.loader === "builtin:swc-loader" && "object" == typeof input?.data?.options,
@@ -12117,15 +12275,15 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
12117
12275
  resourceQuery: ruleSetCondition.optional(),
12118
12276
  scheme: ruleSetCondition.optional(),
12119
12277
  mimetype: ruleSetCondition.optional(),
12120
- descriptionData: zod_index_js_namespaceObject.z.record(ruleSetCondition).optional(),
12121
- 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(),
12122
12280
  type: zod_index_js_namespaceObject.z.string().optional(),
12123
12281
  layer: zod_index_js_namespaceObject.z.string().optional(),
12124
12282
  loader: ruleSetLoader.optional(),
12125
12283
  options: ruleSetLoaderOptions.optional(),
12126
12284
  use: ruleSetUse.optional(),
12127
- parser: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.any()).optional(),
12128
- 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(),
12129
12287
  resolve: zod_resolveOptions.optional(),
12130
12288
  sideEffects: zod_index_js_namespaceObject.z.boolean().optional(),
12131
12289
  enforce: zod_index_js_namespaceObject.z.literal("pre").or(zod_index_js_namespaceObject.z.literal("post")).optional()
@@ -12381,8 +12539,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
12381
12539
  ] : []
12382
12540
  }
12383
12541
  ],
12384
- default: zod_index_js_namespaceObject.z.record(zod_index_js_namespaceObject.z.string().or(zod_index_js_namespaceObject.z.string().array()))
12385
- }), 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({
12386
12544
  context: zod_index_js_namespaceObject.z.string().optional(),
12387
12545
  dependencyType: zod_index_js_namespaceObject.z.string().optional(),
12388
12546
  request: zod_index_js_namespaceObject.z.string().optional(),
@@ -12577,7 +12735,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
12577
12735
  "all"
12578
12736
  ]).or(zod_index_js_namespaceObject.z.instanceof(RegExp)).or(zod_index_js_namespaceObject.z.function().args(zod_index_js_namespaceObject.z.instanceof(Chunk, {
12579
12737
  message: "Input not instance of Chunk"
12580
- })).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 = {
12581
12739
  chunks: optimizationSplitChunksChunks.optional(),
12582
12740
  defaultSizeTypes: optimizationSplitChunksDefaultSizeTypes.optional(),
12583
12741
  minChunks: zod_index_js_namespaceObject.z.number().min(1).optional(),
@@ -12722,9 +12880,9 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
12722
12880
  zod_index_js_namespaceObject.z.literal(!1)
12723
12881
  ]).optional(),
12724
12882
  upgrade: zod_index_js_namespaceObject.z.boolean().optional(),
12725
- 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({
12726
12884
  status: zod_index_js_namespaceObject.z.number(),
12727
- 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()),
12728
12886
  body: zod_index_js_namespaceObject.z.instanceof(Buffer)
12729
12887
  }))).optional()
12730
12888
  }), zod_experiments = zod_index_js_namespaceObject.z.strictObject({
@@ -12747,7 +12905,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
12747
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(),
12748
12906
  poll: zod_index_js_namespaceObject.z.number().or(zod_index_js_namespaceObject.z.boolean()).optional(),
12749
12907
  stdin: zod_index_js_namespaceObject.z.boolean().optional()
12750
- }), 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({
12751
12909
  assetFilter: zod_index_js_namespaceObject.z.function().args(zod_index_js_namespaceObject.z.string()).returns(zod_index_js_namespaceObject.z.boolean()).optional(),
12752
12910
  hints: zod_index_js_namespaceObject.z.enum([
12753
12911
  "error",
@@ -13161,7 +13319,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
13161
13319
  let _options = JSON.stringify(options || {});
13162
13320
  return binding_default().transform(source, _options);
13163
13321
  }
13164
- let exports_rspackVersion = "1.3.10", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
13322
+ let exports_rspackVersion = "1.3.12", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
13165
13323
  getNormalizedRspackOptions: getNormalizedRspackOptions,
13166
13324
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
13167
13325
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
@@ -13245,7 +13403,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
13245
13403
  await JavaScriptTracer.initJavaScriptTrace(layer, output), (0, binding_.registerGlobalTrace)(filter, layer, output), JavaScriptTracer.initCpuProfiler();
13246
13404
  },
13247
13405
  async cleanup () {
13248
- (0, binding_.cleanupGlobalTrace)(), JavaScriptTracer.cleanupJavaScriptTrace();
13406
+ (0, binding_.cleanupGlobalTrace)(), await JavaScriptTracer.cleanupJavaScriptTrace();
13249
13407
  }
13250
13408
  },
13251
13409
  RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
@@ -13268,7 +13426,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
13268
13426
  swc: {
13269
13427
  minify: minify,
13270
13428
  transform: transform
13271
- }
13429
+ },
13430
+ CssChunkingPlugin: CssChunkingPlugin
13272
13431
  };
13273
13432
  function createCompiler(userOptions) {
13274
13433
  let options = getNormalizedRspackOptions(userOptions);
@@ -13326,7 +13485,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
13326
13485
  }, exports_namespaceObject);
13327
13486
  src_fn.rspack = src_fn, src_fn.webpack = src_fn;
13328
13487
  let src_rspack = src_fn, src_0 = src_rspack;
13329
- })(), 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 === [
13330
13489
  "AsyncDependenciesBlock",
13331
13490
  "BannerPlugin",
13332
13491
  "CircularDependencyRspackPlugin",
@@ -13366,6 +13525,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
13366
13525
  "ProgressPlugin",
13367
13526
  "ProvidePlugin",
13368
13527
  "RspackOptionsApply",
13528
+ "RstestPlugin",
13369
13529
  "RuntimeGlobals",
13370
13530
  "RuntimeModule",
13371
13531
  "RuntimePlugin",