@rspack-debug/core 1.4.11 → 1.6.4

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 (145) hide show
  1. package/compiled/@swc/types/index.d.ts +15 -5
  2. package/compiled/@swc/types/package.json +1 -1
  3. package/compiled/browserslist-load-config/index.d.ts +11 -0
  4. package/compiled/browserslist-load-config/index.js +26 -40
  5. package/compiled/browserslist-load-config/package.json +1 -1
  6. package/compiled/watchpack/index.js +1015 -18
  7. package/compiled/webpack-sources/index.js +82 -82
  8. package/dist/Compilation.d.ts +17 -20
  9. package/dist/Compiler.d.ts +63 -32
  10. package/dist/Module.d.ts +3 -14
  11. package/dist/MultiCompiler.d.ts +7 -3
  12. package/dist/MultiStats.d.ts +3 -2
  13. package/dist/MultiWatching.d.ts +1 -1
  14. package/dist/NativeWatchFileSystem.d.ts +8 -2
  15. package/dist/NormalModuleFactory.d.ts +2 -2
  16. package/dist/Resolver.d.ts +13 -7
  17. package/dist/ResolverFactory.d.ts +8 -5
  18. package/dist/RspackError.d.ts +3 -0
  19. package/dist/RuntimeGlobals.d.ts +3 -0
  20. package/dist/RuntimeModule.d.ts +1 -1
  21. package/dist/VirtualModulesPlugin.d.ts +12 -0
  22. package/dist/Watching.d.ts +9 -0
  23. package/dist/builtin-loader/swc/pluginImport.d.ts +2 -2
  24. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/DefinePlugin.d.ts +2 -2
  39. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -2
  40. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -2
  41. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +11 -0
  49. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -1
  52. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -2
  57. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/InlineExportsPlugin.d.ts +9 -0
  61. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  62. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  65. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  66. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -2
  67. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  68. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -2
  70. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  72. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  73. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -2
  74. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -2
  75. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  76. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  77. package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +10 -0
  78. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  79. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  80. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  81. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  82. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  83. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  84. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +3 -3
  85. package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
  86. package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
  87. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  88. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  89. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  90. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  91. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  92. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -2
  93. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -2
  94. package/dist/builtin-plugin/URLPlugin.d.ts +9 -0
  95. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  96. package/dist/builtin-plugin/base.d.ts +2 -2
  97. package/dist/builtin-plugin/css-extract/index.d.ts +2 -2
  98. package/dist/builtin-plugin/html-plugin/options.d.ts +0 -1
  99. package/dist/builtin-plugin/html-plugin/plugin.d.ts +2 -2
  100. package/dist/builtin-plugin/index.d.ts +4 -0
  101. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +3 -17
  102. package/dist/config/adapterRuleUse.d.ts +65 -7
  103. package/dist/config/defaults.d.ts +0 -9
  104. package/dist/config/devServer.d.ts +123 -16
  105. package/dist/config/index.d.ts +1 -0
  106. package/dist/config/normalization.d.ts +18 -3
  107. package/dist/config/types.d.ts +119 -18
  108. package/dist/container/ModuleFederationManifestPlugin.d.ts +37 -0
  109. package/dist/container/ModuleFederationPlugin.d.ts +3 -1
  110. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  111. package/dist/cssExtractHmr.js +12 -13
  112. package/dist/cssExtractLoader.js +9 -10
  113. package/dist/exports.d.ts +16 -9
  114. package/dist/index.js +1556 -5443
  115. package/dist/lib/Cache.d.ts +1 -1
  116. package/dist/loader-runner/ModuleError.d.ts +7 -1
  117. package/dist/loader-runner/loadLoader.d.ts +2 -1
  118. package/dist/loader-runner/service.d.ts +1 -1
  119. package/dist/loader-runner/utils.d.ts +2 -1
  120. package/dist/moduleFederationDefaultRuntime.js +1 -1
  121. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +16 -0
  122. package/dist/stats/statsFactoryUtils.d.ts +17 -1
  123. package/dist/util/ArrayQueue.d.ts +2 -2
  124. package/dist/util/bindingVersionCheck.d.ts +1 -1
  125. package/dist/util/comparators.d.ts +1 -1
  126. package/dist/util/fs.d.ts +25 -2
  127. package/dist/util/index.d.ts +0 -3
  128. package/dist/util/source.d.ts +5 -6
  129. package/dist/util/validateConfig.d.ts +5 -0
  130. package/dist/worker.js +152 -118
  131. package/hot/lazy-compilation-node.js +1 -3
  132. package/hot/lazy-compilation-web.js +4 -3
  133. package/module.d.ts +11 -14
  134. package/package.json +20 -20
  135. package/compiled/graceful-fs/index.d.ts +0 -13
  136. package/compiled/graceful-fs/index.js +0 -1063
  137. package/compiled/graceful-fs/license +0 -15
  138. package/compiled/graceful-fs/package.json +0 -1
  139. package/dist/lib/NormalModuleReplacementPlugin.d.ts +0 -29
  140. package/dist/loader-runner/ModuleWarning.d.ts +0 -7
  141. package/dist/schema/config.d.ts +0 -996
  142. package/dist/schema/loaders.d.ts +0 -400
  143. package/dist/schema/plugins.d.ts +0 -167
  144. package/dist/schema/utils.d.ts +0 -4
  145. package/dist/schema/validate.d.ts +0 -10
@@ -2,7 +2,7 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ 863:
5
+ /***/ 780:
6
6
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
7
7
 
8
8
  /*
@@ -12,13 +12,13 @@
12
12
 
13
13
 
14
14
 
15
- const Source = __nccwpck_require__(733);
16
- const streamAndGetSourceAndMap = __nccwpck_require__(545);
17
- const streamChunksOfRawSource = __nccwpck_require__(518);
18
- const streamChunksOfSourceMap = __nccwpck_require__(16);
15
+ const Source = __nccwpck_require__(422);
16
+ const streamAndGetSourceAndMap = __nccwpck_require__(334);
17
+ const streamChunksOfRawSource = __nccwpck_require__(771);
18
+ const streamChunksOfSourceMap = __nccwpck_require__(105);
19
19
  const {
20
20
  isDualStringBufferCachingEnabled,
21
- } = __nccwpck_require__(780);
21
+ } = __nccwpck_require__(357);
22
22
 
23
23
  /** @typedef {import("./Source").HashLike} HashLike */
24
24
  /** @typedef {import("./Source").MapOptions} MapOptions */
@@ -408,7 +408,7 @@ module.exports = CachedSource;
408
408
 
409
409
  /***/ }),
410
410
 
411
- /***/ 931:
411
+ /***/ 844:
412
412
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
413
413
 
414
414
  /*
@@ -418,7 +418,7 @@ module.exports = CachedSource;
418
418
 
419
419
 
420
420
 
421
- const Source = __nccwpck_require__(733);
421
+ const Source = __nccwpck_require__(422);
422
422
 
423
423
  /** @typedef {import("./Source").HashLike} HashLike */
424
424
  /** @typedef {import("./Source").MapOptions} MapOptions */
@@ -520,7 +520,7 @@ module.exports = CompatSource;
520
520
 
521
521
  /***/ }),
522
522
 
523
- /***/ 21:
523
+ /***/ 974:
524
524
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
525
525
 
526
526
  /*
@@ -530,10 +530,10 @@ module.exports = CompatSource;
530
530
 
531
531
 
532
532
 
533
- const RawSource = __nccwpck_require__(117);
534
- const Source = __nccwpck_require__(733);
535
- const { getMap, getSourceAndMap } = __nccwpck_require__(546);
536
- const streamChunks = __nccwpck_require__(576);
533
+ const RawSource = __nccwpck_require__(136);
534
+ const Source = __nccwpck_require__(422);
535
+ const { getMap, getSourceAndMap } = __nccwpck_require__(875);
536
+ const streamChunks = __nccwpck_require__(779);
537
537
 
538
538
  /** @typedef {import("./CompatSource").SourceLike} SourceLike */
539
539
  /** @typedef {import("./Source").HashLike} HashLike */
@@ -921,7 +921,7 @@ module.exports = ConcatSource;
921
921
 
922
922
  /***/ }),
923
923
 
924
- /***/ 2:
924
+ /***/ 837:
925
925
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
926
926
 
927
927
  /*
@@ -931,14 +931,14 @@ module.exports = ConcatSource;
931
931
 
932
932
 
933
933
 
934
- const Source = __nccwpck_require__(733);
935
- const { getMap, getSourceAndMap } = __nccwpck_require__(546);
936
- const getGeneratedSourceInfo = __nccwpck_require__(42);
937
- const splitIntoLines = __nccwpck_require__(319);
938
- const splitIntoPotentialTokens = __nccwpck_require__(12);
934
+ const Source = __nccwpck_require__(422);
935
+ const { getMap, getSourceAndMap } = __nccwpck_require__(875);
936
+ const getGeneratedSourceInfo = __nccwpck_require__(517);
937
+ const splitIntoLines = __nccwpck_require__(492);
938
+ const splitIntoPotentialTokens = __nccwpck_require__(403);
939
939
  const {
940
940
  isDualStringBufferCachingEnabled,
941
- } = __nccwpck_require__(780);
941
+ } = __nccwpck_require__(357);
942
942
 
943
943
  /** @typedef {import("./Source").HashLike} HashLike */
944
944
  /** @typedef {import("./Source").MapOptions} MapOptions */
@@ -1126,7 +1126,7 @@ module.exports = OriginalSource;
1126
1126
 
1127
1127
  /***/ }),
1128
1128
 
1129
- /***/ 665:
1129
+ /***/ 850:
1130
1130
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1131
1131
 
1132
1132
  /*
@@ -1136,10 +1136,10 @@ module.exports = OriginalSource;
1136
1136
 
1137
1137
 
1138
1138
 
1139
- const RawSource = __nccwpck_require__(117);
1140
- const Source = __nccwpck_require__(733);
1141
- const { getMap, getSourceAndMap } = __nccwpck_require__(546);
1142
- const streamChunks = __nccwpck_require__(576);
1139
+ const RawSource = __nccwpck_require__(136);
1140
+ const Source = __nccwpck_require__(422);
1141
+ const { getMap, getSourceAndMap } = __nccwpck_require__(875);
1142
+ const streamChunks = __nccwpck_require__(779);
1143
1143
 
1144
1144
  /** @typedef {import("./Source").HashLike} HashLike */
1145
1145
  /** @typedef {import("./Source").MapOptions} MapOptions */
@@ -1291,7 +1291,7 @@ module.exports = PrefixSource;
1291
1291
 
1292
1292
  /***/ }),
1293
1293
 
1294
- /***/ 117:
1294
+ /***/ 136:
1295
1295
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1296
1296
 
1297
1297
  /*
@@ -1301,12 +1301,12 @@ module.exports = PrefixSource;
1301
1301
 
1302
1302
 
1303
1303
 
1304
- const Source = __nccwpck_require__(733);
1305
- const streamChunksOfRawSource = __nccwpck_require__(518);
1304
+ const Source = __nccwpck_require__(422);
1305
+ const streamChunksOfRawSource = __nccwpck_require__(771);
1306
1306
  const {
1307
1307
  internString,
1308
1308
  isDualStringBufferCachingEnabled,
1309
- } = __nccwpck_require__(780);
1309
+ } = __nccwpck_require__(357);
1310
1310
 
1311
1311
  /** @typedef {import("./Source").HashLike} HashLike */
1312
1312
  /** @typedef {import("./Source").MapOptions} MapOptions */
@@ -1434,7 +1434,7 @@ module.exports = RawSource;
1434
1434
 
1435
1435
  /***/ }),
1436
1436
 
1437
- /***/ 779:
1437
+ /***/ 902:
1438
1438
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1439
1439
 
1440
1440
  /*
@@ -1444,10 +1444,10 @@ module.exports = RawSource;
1444
1444
 
1445
1445
 
1446
1446
 
1447
- const Source = __nccwpck_require__(733);
1448
- const { getMap, getSourceAndMap } = __nccwpck_require__(546);
1449
- const splitIntoLines = __nccwpck_require__(319);
1450
- const streamChunks = __nccwpck_require__(576);
1447
+ const Source = __nccwpck_require__(422);
1448
+ const { getMap, getSourceAndMap } = __nccwpck_require__(875);
1449
+ const splitIntoLines = __nccwpck_require__(492);
1450
+ const streamChunks = __nccwpck_require__(779);
1451
1451
 
1452
1452
  /** @typedef {import("./Source").HashLike} HashLike */
1453
1453
  /** @typedef {import("./Source").MapOptions} MapOptions */
@@ -1986,7 +1986,7 @@ module.exports.Replacement = Replacement;
1986
1986
 
1987
1987
  /***/ }),
1988
1988
 
1989
- /***/ 702:
1989
+ /***/ 865:
1990
1990
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1991
1991
 
1992
1992
  /*
@@ -1996,7 +1996,7 @@ module.exports.Replacement = Replacement;
1996
1996
 
1997
1997
 
1998
1998
 
1999
- const Source = __nccwpck_require__(733);
1999
+ const Source = __nccwpck_require__(422);
2000
2000
 
2001
2001
  /** @typedef {import("./Source").HashLike} HashLike */
2002
2002
  /** @typedef {import("./Source").MapOptions} MapOptions */
@@ -2060,7 +2060,7 @@ module.exports = SizeOnlySource;
2060
2060
 
2061
2061
  /***/ }),
2062
2062
 
2063
- /***/ 733:
2063
+ /***/ 422:
2064
2064
  /***/ ((module) => {
2065
2065
 
2066
2066
  /*
@@ -2156,7 +2156,7 @@ module.exports = Source;
2156
2156
 
2157
2157
  /***/ }),
2158
2158
 
2159
- /***/ 58:
2159
+ /***/ 147:
2160
2160
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
2161
2161
 
2162
2162
  /*
@@ -2166,13 +2166,13 @@ module.exports = Source;
2166
2166
 
2167
2167
 
2168
2168
 
2169
- const Source = __nccwpck_require__(733);
2170
- const { getMap, getSourceAndMap } = __nccwpck_require__(546);
2171
- const streamChunksOfCombinedSourceMap = __nccwpck_require__(713);
2172
- const streamChunksOfSourceMap = __nccwpck_require__(16);
2169
+ const Source = __nccwpck_require__(422);
2170
+ const { getMap, getSourceAndMap } = __nccwpck_require__(875);
2171
+ const streamChunksOfCombinedSourceMap = __nccwpck_require__(132);
2172
+ const streamChunksOfSourceMap = __nccwpck_require__(105);
2173
2173
  const {
2174
2174
  isDualStringBufferCachingEnabled,
2175
- } = __nccwpck_require__(780);
2175
+ } = __nccwpck_require__(357);
2176
2176
 
2177
2177
  /** @typedef {import("./Source").HashLike} HashLike */
2178
2178
  /** @typedef {import("./Source").MapOptions} MapOptions */
@@ -2529,7 +2529,7 @@ module.exports = SourceMapSource;
2529
2529
 
2530
2530
  /***/ }),
2531
2531
 
2532
- /***/ 97:
2532
+ /***/ 294:
2533
2533
  /***/ ((module) => {
2534
2534
 
2535
2535
  /*
@@ -2761,7 +2761,7 @@ module.exports = createMappingsSerializer;
2761
2761
 
2762
2762
  /***/ }),
2763
2763
 
2764
- /***/ 546:
2764
+ /***/ 875:
2765
2765
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
2766
2766
 
2767
2767
  /*
@@ -2771,7 +2771,7 @@ module.exports = createMappingsSerializer;
2771
2771
 
2772
2772
 
2773
2773
 
2774
- const createMappingsSerializer = __nccwpck_require__(97);
2774
+ const createMappingsSerializer = __nccwpck_require__(294);
2775
2775
 
2776
2776
  /** @typedef {import("../Source").RawSourceMap} RawSourceMap */
2777
2777
  /** @typedef {import("../Source").SourceAndMap} SourceAndMap */
@@ -2927,7 +2927,7 @@ module.exports.getMap = (source, options) => {
2927
2927
 
2928
2928
  /***/ }),
2929
2929
 
2930
- /***/ 42:
2930
+ /***/ 517:
2931
2931
  /***/ ((module) => {
2932
2932
 
2933
2933
  /*
@@ -2978,7 +2978,7 @@ module.exports = getGeneratedSourceInfo;
2978
2978
 
2979
2979
  /***/ }),
2980
2980
 
2981
- /***/ 333:
2981
+ /***/ 432:
2982
2982
  /***/ ((module) => {
2983
2983
 
2984
2984
  /*
@@ -3009,7 +3009,7 @@ module.exports = getSource;
3009
3009
 
3010
3010
  /***/ }),
3011
3011
 
3012
- /***/ 125:
3012
+ /***/ 950:
3013
3013
  /***/ ((module) => {
3014
3014
 
3015
3015
  /*
@@ -3136,7 +3136,7 @@ module.exports = readMappings;
3136
3136
 
3137
3137
  /***/ }),
3138
3138
 
3139
- /***/ 319:
3139
+ /***/ 492:
3140
3140
  /***/ ((module) => {
3141
3141
 
3142
3142
  /*
@@ -3176,7 +3176,7 @@ module.exports = splitIntoLines;
3176
3176
 
3177
3177
  /***/ }),
3178
3178
 
3179
- /***/ 12:
3179
+ /***/ 403:
3180
3180
  /***/ ((module) => {
3181
3181
 
3182
3182
  /*
@@ -3236,7 +3236,7 @@ module.exports = splitIntoPotentialTokens;
3236
3236
 
3237
3237
  /***/ }),
3238
3238
 
3239
- /***/ 545:
3239
+ /***/ 334:
3240
3240
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
3241
3241
 
3242
3242
  /*
@@ -3246,8 +3246,8 @@ module.exports = splitIntoPotentialTokens;
3246
3246
 
3247
3247
 
3248
3248
 
3249
- const createMappingsSerializer = __nccwpck_require__(97);
3250
- const streamChunks = __nccwpck_require__(576);
3249
+ const createMappingsSerializer = __nccwpck_require__(294);
3250
+ const streamChunks = __nccwpck_require__(779);
3251
3251
 
3252
3252
  /** @typedef {import("../Source").RawSourceMap} RawSourceMap */
3253
3253
  /** @typedef {import("./streamChunks").GeneratedSourceInfo} GeneratedSourceInfo */
@@ -3366,7 +3366,7 @@ module.exports = streamAndGetSourceAndMap;
3366
3366
 
3367
3367
  /***/ }),
3368
3368
 
3369
- /***/ 576:
3369
+ /***/ 779:
3370
3370
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
3371
3371
 
3372
3372
  /*
@@ -3376,8 +3376,8 @@ module.exports = streamAndGetSourceAndMap;
3376
3376
 
3377
3377
 
3378
3378
 
3379
- const streamChunksOfRawSource = __nccwpck_require__(518);
3380
- const streamChunksOfSourceMap = __nccwpck_require__(16);
3379
+ const streamChunksOfRawSource = __nccwpck_require__(771);
3380
+ const streamChunksOfSourceMap = __nccwpck_require__(105);
3381
3381
 
3382
3382
  /** @typedef {import("../Source")} Source */
3383
3383
  /** @typedef {import("./getGeneratedSourceInfo").GeneratedSourceInfo} GeneratedSourceInfo */
@@ -3435,7 +3435,7 @@ module.exports = (source, options, onChunk, onSource, onName) => {
3435
3435
 
3436
3436
  /***/ }),
3437
3437
 
3438
- /***/ 713:
3438
+ /***/ 132:
3439
3439
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
3440
3440
 
3441
3441
  /*
@@ -3445,8 +3445,8 @@ module.exports = (source, options, onChunk, onSource, onName) => {
3445
3445
 
3446
3446
 
3447
3447
 
3448
- const splitIntoLines = __nccwpck_require__(319);
3449
- const streamChunksOfSourceMap = __nccwpck_require__(16);
3448
+ const splitIntoLines = __nccwpck_require__(492);
3449
+ const streamChunksOfSourceMap = __nccwpck_require__(105);
3450
3450
 
3451
3451
  /** @typedef {import("../Source").RawSourceMap} RawSourceMap */
3452
3452
  /** @typedef {import("./getGeneratedSourceInfo").GeneratedSourceInfo} GeneratedSourceInfo */
@@ -3808,7 +3808,7 @@ module.exports = streamChunksOfCombinedSourceMap;
3808
3808
 
3809
3809
  /***/ }),
3810
3810
 
3811
- /***/ 518:
3811
+ /***/ 771:
3812
3812
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
3813
3813
 
3814
3814
  /*
@@ -3818,8 +3818,8 @@ module.exports = streamChunksOfCombinedSourceMap;
3818
3818
 
3819
3819
 
3820
3820
 
3821
- const getGeneratedSourceInfo = __nccwpck_require__(42);
3822
- const splitIntoLines = __nccwpck_require__(319);
3821
+ const getGeneratedSourceInfo = __nccwpck_require__(517);
3822
+ const splitIntoLines = __nccwpck_require__(492);
3823
3823
 
3824
3824
  /** @typedef {import("./getGeneratedSourceInfo").GeneratedSourceInfo} GeneratedSourceInfo */
3825
3825
  /** @typedef {import("./streamChunks").OnChunk} OnChunk */
@@ -3869,7 +3869,7 @@ module.exports = (source, onChunk, onSource, onName, finalSource) =>
3869
3869
 
3870
3870
  /***/ }),
3871
3871
 
3872
- /***/ 16:
3872
+ /***/ 105:
3873
3873
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
3874
3874
 
3875
3875
  /*
@@ -3879,10 +3879,10 @@ module.exports = (source, onChunk, onSource, onName, finalSource) =>
3879
3879
 
3880
3880
 
3881
3881
 
3882
- const getGeneratedSourceInfo = __nccwpck_require__(42);
3883
- const getSource = __nccwpck_require__(333);
3884
- const readMappings = __nccwpck_require__(125);
3885
- const splitIntoLines = __nccwpck_require__(319);
3882
+ const getGeneratedSourceInfo = __nccwpck_require__(517);
3883
+ const getSource = __nccwpck_require__(432);
3884
+ const readMappings = __nccwpck_require__(950);
3885
+ const splitIntoLines = __nccwpck_require__(492);
3886
3886
 
3887
3887
  /** @typedef {import("../Source").RawSourceMap} RawSourceMap */
3888
3888
  /** @typedef {import("./getGeneratedSourceInfo").GeneratedSourceInfo} GeneratedSourceInfo */
@@ -4375,7 +4375,7 @@ module.exports = (
4375
4375
 
4376
4376
  /***/ }),
4377
4377
 
4378
- /***/ 780:
4378
+ /***/ 357:
4379
4379
  /***/ ((module) => {
4380
4380
 
4381
4381
  /*
@@ -4499,7 +4499,7 @@ module.exports = {
4499
4499
 
4500
4500
  /***/ }),
4501
4501
 
4502
- /***/ 366:
4502
+ /***/ 339:
4503
4503
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
4504
4504
 
4505
4505
  /*
@@ -4586,38 +4586,38 @@ module.exports = mergeExports(
4586
4586
  {},
4587
4587
  {
4588
4588
  get Source() {
4589
- return __nccwpck_require__(733);
4589
+ return __nccwpck_require__(422);
4590
4590
  },
4591
4591
  get RawSource() {
4592
- return __nccwpck_require__(117);
4592
+ return __nccwpck_require__(136);
4593
4593
  },
4594
4594
  get OriginalSource() {
4595
- return __nccwpck_require__(2);
4595
+ return __nccwpck_require__(837);
4596
4596
  },
4597
4597
  get SourceMapSource() {
4598
- return __nccwpck_require__(58);
4598
+ return __nccwpck_require__(147);
4599
4599
  },
4600
4600
  get CachedSource() {
4601
- return __nccwpck_require__(863);
4601
+ return __nccwpck_require__(780);
4602
4602
  },
4603
4603
  get ConcatSource() {
4604
- return __nccwpck_require__(21);
4604
+ return __nccwpck_require__(974);
4605
4605
  },
4606
4606
  get ReplaceSource() {
4607
- return __nccwpck_require__(779);
4607
+ return __nccwpck_require__(902);
4608
4608
  },
4609
4609
  get PrefixSource() {
4610
- return __nccwpck_require__(665);
4610
+ return __nccwpck_require__(850);
4611
4611
  },
4612
4612
  get SizeOnlySource() {
4613
- return __nccwpck_require__(702);
4613
+ return __nccwpck_require__(865);
4614
4614
  },
4615
4615
  get CompatSource() {
4616
- return __nccwpck_require__(931);
4616
+ return __nccwpck_require__(844);
4617
4617
  },
4618
4618
  util: {
4619
4619
  get stringBufferUtils() {
4620
- return __nccwpck_require__(780);
4620
+ return __nccwpck_require__(357);
4621
4621
  },
4622
4622
  },
4623
4623
  },
@@ -4668,7 +4668,7 @@ module.exports = mergeExports(
4668
4668
  /******/ // startup
4669
4669
  /******/ // Load entry module and return exports
4670
4670
  /******/ // This entry module is referenced by other modules so it can't be inlined
4671
- /******/ var __webpack_exports__ = __nccwpck_require__(366);
4671
+ /******/ var __webpack_exports__ = __nccwpck_require__(339);
4672
4672
  /******/ module.exports = __webpack_exports__;
4673
4673
  /******/
4674
4674
  /******/ })()
@@ -44,7 +44,7 @@ export interface Asset {
44
44
  source: Source;
45
45
  info: AssetInfo;
46
46
  }
47
- export type PathDataChunkLike = {
47
+ export type ChunkPathData = {
48
48
  id?: string;
49
49
  name?: string;
50
50
  hash?: string;
@@ -57,7 +57,7 @@ export type PathData = {
57
57
  runtime?: string;
58
58
  url?: string;
59
59
  id?: string;
60
- chunk?: Chunk | PathDataChunkLike;
60
+ chunk?: Chunk | ChunkPathData;
61
61
  contentHashType?: string;
62
62
  };
63
63
  export interface LogEntry {
@@ -153,7 +153,7 @@ export declare class Compilation {
153
153
  log: liteTapable.SyncBailHook<[string, LogEntry], true>;
154
154
  additionalAssets: any;
155
155
  optimizeModules: liteTapable.SyncBailHook<Iterable<Module>, void>;
156
- afterOptimizeModules: liteTapable.SyncHook<Iterable<Module>, void>;
156
+ afterOptimizeModules: liteTapable.SyncHook<Iterable<Module>>;
157
157
  optimizeTree: liteTapable.AsyncSeriesHook<[
158
158
  Iterable<Chunk>,
159
159
  Iterable<Module>
@@ -163,21 +163,18 @@ export declare class Compilation {
163
163
  Iterable<Module>
164
164
  ], void>;
165
165
  finishModules: liteTapable.AsyncSeriesHook<[Iterable<Module>], void>;
166
- chunkHash: liteTapable.SyncHook<[Chunk, Hash], void>;
167
- chunkAsset: liteTapable.SyncHook<[Chunk, string], void>;
166
+ chunkHash: liteTapable.SyncHook<[Chunk, Hash]>;
167
+ chunkAsset: liteTapable.SyncHook<[Chunk, string]>;
168
168
  processWarnings: liteTapable.SyncWaterfallHook<[WebpackError[]]>;
169
- succeedModule: liteTapable.SyncHook<[Module], void>;
170
- stillValidModule: liteTapable.SyncHook<[Module], void>;
171
- statsPreset: liteTapable.HookMap<liteTapable.SyncHook<[
172
- Partial<StatsOptions>,
173
- CreateStatsOptionsContext
174
- ], void>>;
169
+ succeedModule: liteTapable.SyncHook<[Module]>;
170
+ stillValidModule: liteTapable.SyncHook<[Module]>;
171
+ statsPreset: liteTapable.HookMap<liteTapable.SyncHook<[Partial<StatsOptions>, CreateStatsOptionsContext]>>;
175
172
  statsNormalize: liteTapable.SyncHook<[
176
173
  Partial<StatsOptions>,
177
174
  CreateStatsOptionsContext
178
- ], void>;
179
- statsFactory: liteTapable.SyncHook<[StatsFactory, StatsOptions], void>;
180
- statsPrinter: liteTapable.SyncHook<[StatsPrinter, StatsOptions], void>;
175
+ ]>;
176
+ statsFactory: liteTapable.SyncHook<[StatsFactory, StatsOptions]>;
177
+ statsPrinter: liteTapable.SyncHook<[StatsPrinter, StatsOptions]>;
181
178
  buildModule: liteTapable.SyncHook<[Module]>;
182
179
  executeModule: liteTapable.SyncHook<[
183
180
  ExecuteModuleArgument,
@@ -186,10 +183,10 @@ export declare class Compilation {
186
183
  additionalTreeRuntimeRequirements: liteTapable.SyncHook<[
187
184
  Chunk,
188
185
  Set<string>
189
- ], void>;
186
+ ]>;
190
187
  runtimeRequirementInTree: liteTapable.HookMap<liteTapable.SyncBailHook<[Chunk, Set<string>], void>>;
191
- runtimeModule: liteTapable.SyncHook<[JsRuntimeModule, Chunk], void>;
192
- seal: liteTapable.SyncHook<[], void>;
188
+ runtimeModule: liteTapable.SyncHook<[JsRuntimeModule, Chunk]>;
189
+ seal: liteTapable.SyncHook<[]>;
193
190
  afterSeal: liteTapable.AsyncSeriesHook<[], void>;
194
191
  needAdditionalPass: liteTapable.SyncBailHook<[], boolean>;
195
192
  }>;
@@ -222,7 +219,7 @@ export declare class Compilation {
222
219
  * Get a map of all entrypoints.
223
220
  */
224
221
  get entrypoints(): ReadonlyMap<string, Entrypoint>;
225
- get chunkGroups(): ReadonlyArray<ChunkGroup>;
222
+ get chunkGroups(): readonly ChunkGroup[];
226
223
  /**
227
224
  * Get the named chunk groups.
228
225
  *
@@ -261,7 +258,7 @@ export declare class Compilation {
261
258
  /**
262
259
  * Get an array of Asset
263
260
  */
264
- getAssets(): ReadonlyArray<Asset>;
261
+ getAssets(): readonly Asset[];
265
262
  getAsset(name: string): Readonly<Asset> | void;
266
263
  /**
267
264
  * Note: This is not a webpack public API, maybe removed in future.
@@ -411,7 +408,7 @@ export declare class Entries implements Map<string, EntryData> {
411
408
  entries(): ReturnType<Map<string, EntryData>["entries"]>;
412
409
  values(): ReturnType<Map<string, EntryData>["values"]>;
413
410
  [Symbol.iterator](): ReturnType<Map<string, EntryData>["entries"]>;
414
- get [Symbol.toStringTag](): string;
411
+ readonly [Symbol.toStringTag] = "Map";
415
412
  has(key: string): boolean;
416
413
  set(key: string, value: EntryData): this;
417
414
  delete(key: string): boolean;
@@ -34,40 +34,53 @@ export interface AssetEmittedInfo {
34
34
  targetPath: string;
35
35
  compilation: Compilation;
36
36
  }
37
+ export type CompilerHooks = {
38
+ done: liteTapable.AsyncSeriesHook<Stats>;
39
+ afterDone: liteTapable.SyncHook<Stats>;
40
+ thisCompilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
41
+ compilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
42
+ invalid: liteTapable.SyncHook<[string | null, number]>;
43
+ compile: liteTapable.SyncHook<[CompilationParams]>;
44
+ normalModuleFactory: liteTapable.SyncHook<NormalModuleFactory>;
45
+ contextModuleFactory: liteTapable.SyncHook<ContextModuleFactory>;
46
+ initialize: liteTapable.SyncHook<[]>;
47
+ shouldEmit: liteTapable.SyncBailHook<[Compilation], boolean>;
48
+ /**
49
+ * Called when infrastructure logging is triggered, allowing plugins to intercept, modify, or handle log messages.
50
+ * If the hook returns `true`, the default infrastructure logging will be prevented.
51
+ * If it returns `undefined`, the default logging will proceed.
52
+ * @param name - The name of the logger
53
+ * @param type - The log type (e.g., 'log', 'warn', 'error', ...)
54
+ * @param args - An array of arguments passed to the logging method
55
+ */
56
+ infrastructureLog: liteTapable.SyncBailHook<[
57
+ string,
58
+ string,
59
+ any[]
60
+ ], true | void>;
61
+ beforeRun: liteTapable.AsyncSeriesHook<[Compiler]>;
62
+ run: liteTapable.AsyncSeriesHook<[Compiler]>;
63
+ emit: liteTapable.AsyncSeriesHook<[Compilation]>;
64
+ assetEmitted: liteTapable.AsyncSeriesHook<[string, AssetEmittedInfo]>;
65
+ afterEmit: liteTapable.AsyncSeriesHook<[Compilation]>;
66
+ failed: liteTapable.SyncHook<[Error]>;
67
+ shutdown: liteTapable.AsyncSeriesHook<[]>;
68
+ watchRun: liteTapable.AsyncSeriesHook<[Compiler]>;
69
+ watchClose: liteTapable.SyncHook<[]>;
70
+ environment: liteTapable.SyncHook<[]>;
71
+ afterEnvironment: liteTapable.SyncHook<[]>;
72
+ afterPlugins: liteTapable.SyncHook<[Compiler]>;
73
+ afterResolvers: liteTapable.SyncHook<[Compiler]>;
74
+ make: liteTapable.AsyncParallelHook<[Compilation]>;
75
+ beforeCompile: liteTapable.AsyncSeriesHook<[CompilationParams]>;
76
+ afterCompile: liteTapable.AsyncSeriesHook<[Compilation]>;
77
+ finishMake: liteTapable.AsyncSeriesHook<[Compilation]>;
78
+ entryOption: liteTapable.SyncBailHook<[string, EntryNormalized], any>;
79
+ additionalPass: liteTapable.AsyncSeriesHook<[]>;
80
+ };
37
81
  declare class Compiler {
38
82
  #private;
39
- hooks: {
40
- done: liteTapable.AsyncSeriesHook<Stats>;
41
- afterDone: liteTapable.SyncHook<Stats>;
42
- thisCompilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
43
- compilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
44
- invalid: liteTapable.SyncHook<[string | null, number]>;
45
- compile: liteTapable.SyncHook<[CompilationParams]>;
46
- normalModuleFactory: liteTapable.SyncHook<NormalModuleFactory>;
47
- contextModuleFactory: liteTapable.SyncHook<ContextModuleFactory>;
48
- initialize: liteTapable.SyncHook<[]>;
49
- shouldEmit: liteTapable.SyncBailHook<[Compilation], boolean>;
50
- infrastructureLog: liteTapable.SyncBailHook<[string, string, any[]], true>;
51
- beforeRun: liteTapable.AsyncSeriesHook<[Compiler]>;
52
- run: liteTapable.AsyncSeriesHook<[Compiler]>;
53
- emit: liteTapable.AsyncSeriesHook<[Compilation]>;
54
- assetEmitted: liteTapable.AsyncSeriesHook<[string, AssetEmittedInfo]>;
55
- afterEmit: liteTapable.AsyncSeriesHook<[Compilation]>;
56
- failed: liteTapable.SyncHook<[Error]>;
57
- shutdown: liteTapable.AsyncSeriesHook<[]>;
58
- watchRun: liteTapable.AsyncSeriesHook<[Compiler]>;
59
- watchClose: liteTapable.SyncHook<[]>;
60
- environment: liteTapable.SyncHook<[]>;
61
- afterEnvironment: liteTapable.SyncHook<[]>;
62
- afterPlugins: liteTapable.SyncHook<[Compiler]>;
63
- afterResolvers: liteTapable.SyncHook<[Compiler]>;
64
- make: liteTapable.AsyncParallelHook<[Compilation]>;
65
- beforeCompile: liteTapable.AsyncSeriesHook<[CompilationParams]>;
66
- afterCompile: liteTapable.AsyncSeriesHook<[Compilation]>;
67
- finishMake: liteTapable.AsyncSeriesHook<[Compilation]>;
68
- entryOption: liteTapable.SyncBailHook<[string, EntryNormalized], any>;
69
- additionalPass: liteTapable.AsyncSeriesHook<[]>;
70
- };
83
+ hooks: CompilerHooks;
71
84
  webpack: typeof rspack;
72
85
  rspack: typeof rspack;
73
86
  name?: string;
@@ -94,6 +107,19 @@ declare class Compiler {
94
107
  cache: Cache;
95
108
  compilerPath: string;
96
109
  options: RspackOptionsNormalized;
110
+ /**
111
+ * Whether to skip dropping Rust compiler instance to improve performance.
112
+ * This is an internal option api and could be removed or changed at any time.
113
+ * @internal
114
+ * true: Skip dropping Rust compiler instance.
115
+ * false: Drop Rust compiler instance when Compiler is garbage collected.
116
+ */
117
+ unsafeFastDrop: boolean;
118
+ /**
119
+ * Note: This is not a webpack public API, maybe removed in future.
120
+ * @internal
121
+ */
122
+ __internal_browser_require: (id: string) => unknown;
97
123
  constructor(context: string, options: RspackOptionsNormalized);
98
124
  get recordsInputPath(): never;
99
125
  get recordsOutputPath(): never;
@@ -163,6 +189,11 @@ declare class Compiler {
163
189
  * @internal
164
190
  */
165
191
  __internal__create_compilation(native: binding.JsCompilation): Compilation;
192
+ /**
193
+ * Note: This is not a webpack public API, maybe removed in future.
194
+ * @internal
195
+ */
196
+ __internal__get_virtual_file_store(): binding.VirtualFileStore | null | undefined;
166
197
  /**
167
198
  * Note: This is not a webpack public API, maybe removed in future.
168
199
  * @internal