@rspack/core 1.4.10 → 1.5.0-beta.0

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 (93) hide show
  1. package/compiled/watchpack/index.js +149 -9
  2. package/dist/Compilation.d.ts +2 -2
  3. package/dist/Compiler.d.ts +5 -0
  4. package/dist/MultiCompiler.d.ts +1 -1
  5. package/dist/NativeWatchFileSystem.d.ts +3 -1
  6. package/dist/NormalModuleFactory.d.ts +2 -2
  7. package/dist/Resolver.d.ts +0 -6
  8. package/dist/ResolverFactory.d.ts +8 -5
  9. package/dist/VirtualModulesPlugin.d.ts +12 -0
  10. package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +13 -0
  11. package/dist/builtin-loader/swc/types.d.ts +4 -0
  12. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  13. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  14. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  15. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  16. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  17. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  18. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  19. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  20. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  21. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  22. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  23. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  52. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +5 -1
  61. package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
  62. package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  65. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  66. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  67. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  68. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  70. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/base.d.ts +2 -2
  72. package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
  73. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  74. package/dist/config/normalization.d.ts +7 -0
  75. package/dist/config/types.d.ts +19 -5
  76. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  77. package/dist/cssExtractLoader.js +55 -53
  78. package/dist/exports.d.ts +9 -1
  79. package/dist/index.js +313 -234
  80. package/dist/loader-runner/loadLoader.d.ts +2 -1
  81. package/dist/loader-runner/service.d.ts +1 -1
  82. package/dist/loader-runner/utils.d.ts +2 -1
  83. package/dist/schema/config.d.ts +56 -47
  84. package/dist/schema/loaders.d.ts +5 -5
  85. package/dist/schema/plugins.d.ts +14 -10
  86. package/dist/util/bindingVersionCheck.d.ts +1 -1
  87. package/dist/util/require.d.ts +3 -0
  88. package/dist/worker.js +44 -9
  89. package/module.d.ts +9 -10
  90. package/package.json +11 -9
  91. package/compiled/glob-to-regexp/index.d.ts +0 -11
  92. package/compiled/glob-to-regexp/index.js +0 -187
  93. package/compiled/glob-to-regexp/package.json +0 -1
package/dist/index.js CHANGED
@@ -210,9 +210,6 @@ var __webpack_modules__ = {
210
210
  "browserslist-load-config": function(module) {
211
211
  module.exports = require("../compiled/browserslist-load-config/index.js");
212
212
  },
213
- "glob-to-regexp": function(module) {
214
- module.exports = require("../compiled/glob-to-regexp/index.js");
215
- },
216
213
  watchpack: function(module) {
217
214
  module.exports = require("../compiled/watchpack/index.js");
218
215
  },
@@ -292,7 +289,6 @@ for(var __webpack_i__ in (()=>{
292
289
  electron: ()=>electron,
293
290
  ExternalModule: ()=>binding_.ExternalModule,
294
291
  Stats: ()=>Stats,
295
- version: ()=>exports_version,
296
292
  LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
297
293
  Template: ()=>Template,
298
294
  Compilation: ()=>Compilation,
@@ -307,21 +303,23 @@ for(var __webpack_i__ in (()=>{
307
303
  HotModuleReplacementPlugin: ()=>HotModuleReplacementPlugin,
308
304
  Dependency: ()=>binding_.Dependency,
309
305
  LoaderTargetPlugin: ()=>LoaderTargetPlugin,
310
- sharing: ()=>sharing,
306
+ VirtualModulesPlugin: ()=>VirtualModulesPlugin,
311
307
  container: ()=>container,
312
- sources: ()=>sources,
313
308
  EvalDevToolModulePlugin: ()=>EvalDevToolModulePlugin,
314
309
  SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
315
310
  MultiCompiler: ()=>MultiCompiler,
316
311
  EntryOptionPlugin: ()=>lib_EntryOptionPlugin,
317
312
  javascript: ()=>javascript,
313
+ sources: ()=>sources,
318
314
  EvalSourceMapDevToolPlugin: ()=>EvalSourceMapDevToolPlugin,
319
315
  ContextReplacementPlugin: ()=>ContextReplacementPlugin,
320
316
  EnvironmentPlugin: ()=>EnvironmentPlugin,
321
317
  NoEmitOnErrorsPlugin: ()=>NoEmitOnErrorsPlugin,
322
318
  ValidationError: ()=>validate_ValidationError,
323
319
  LightningCssMinimizerRspackPlugin: ()=>LightningCssMinimizerRspackPlugin,
320
+ default: ()=>src_0,
324
321
  web: ()=>web,
322
+ sharing: ()=>sharing,
325
323
  CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
326
324
  NormalModule: ()=>binding_.NormalModule,
327
325
  config: ()=>exports_config,
@@ -329,6 +327,7 @@ for(var __webpack_i__ in (()=>{
329
327
  webworker: ()=>webworker,
330
328
  experiments: ()=>exports_experiments,
331
329
  RuntimeModule: ()=>RuntimeModule,
330
+ library: ()=>exports_library,
332
331
  node: ()=>exports_node,
333
332
  HtmlRspackPlugin: ()=>HtmlRspackPlugin,
334
333
  WarnCaseSensitiveModulesPlugin: ()=>WarnCaseSensitiveModulesPlugin,
@@ -338,7 +337,6 @@ for(var __webpack_i__ in (()=>{
338
337
  ProvidePlugin: ()=>ProvidePlugin,
339
338
  rspackVersion: ()=>exports_rspackVersion,
340
339
  DllPlugin: ()=>DllPlugin,
341
- library: ()=>exports_library,
342
340
  CssExtractRspackPlugin: ()=>CssExtractRspackPlugin,
343
341
  DefinePlugin: ()=>DefinePlugin,
344
342
  BannerPlugin: ()=>BannerPlugin,
@@ -348,11 +346,11 @@ for(var __webpack_i__ in (()=>{
348
346
  Module: ()=>binding_.Module,
349
347
  WebpackOptionsApply: ()=>RspackOptionsApply,
350
348
  NormalModuleReplacementPlugin: ()=>NormalModuleReplacementPlugin,
351
- default: ()=>src_0,
352
349
  ExternalsPlugin: ()=>ExternalsPlugin,
353
350
  rspack: ()=>src_rspack,
354
351
  Compiler: ()=>Compiler,
355
- wasm: ()=>exports_wasm
352
+ wasm: ()=>exports_wasm,
353
+ version: ()=>exports_version
356
354
  });
357
355
  var RequestType, StatsErrorCode, _computedKey, _computedKey1, _computedKey2, ArrayQueue_computedKey, browserslistTargetHandler_namespaceObject = {};
358
356
  __webpack_require__.r(browserslistTargetHandler_namespaceObject), __webpack_require__.d(browserslistTargetHandler_namespaceObject, {
@@ -414,6 +412,7 @@ for(var __webpack_i__ in (()=>{
414
412
  SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
415
413
  Template: ()=>Template,
416
414
  ValidationError: ()=>validate_ValidationError,
415
+ VirtualModulesPlugin: ()=>VirtualModulesPlugin,
417
416
  WarnCaseSensitiveModulesPlugin: ()=>WarnCaseSensitiveModulesPlugin,
418
417
  WebpackError: ()=>exports_WebpackError,
419
418
  WebpackOptionsApply: ()=>RspackOptionsApply,
@@ -2263,7 +2262,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2263
2262
  if (!EnableLibraryPlugin_getEnabledTypes(compiler).has(type)) throw Error(`Library type "${type}" is not enabled. EnableLibraryPlugin need to be used to enable this type of library. This usually happens through the "output.enabledLibraryTypes" option. If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". These types are enabled: ${Array.from(EnableLibraryPlugin_getEnabledTypes(compiler)).join(", ")}`);
2264
2263
  }
2265
2264
  raw(compiler) {
2266
- let { type } = this, enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
2265
+ let type = this.type, enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
2267
2266
  if (!enabled.has(type)) return enabled.add(type), createBuiltinPlugin(this.name, type);
2268
2267
  }
2269
2268
  }
@@ -2612,53 +2611,55 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2612
2611
  }
2613
2612
  static async cleanupJavaScriptTrace() {
2614
2613
  if ("uninitialized" === this.state) throw Error("JavaScriptTracer is not initialized, please call initJavaScriptTrace first");
2615
- this.layer && "off" !== this.state && (await new Promise((resolve, reject)=>{
2614
+ if (!this.layer || "off" === this.state) return;
2615
+ let profileHandler = (err, param)=>{
2616
+ let cpu_profile;
2617
+ if (err ? console.error("Error stopping profiler:", err) : cpu_profile = param.profile, cpu_profile) {
2618
+ let uuid = this.uuid();
2619
+ this.pushEvent({
2620
+ name: "Profile",
2621
+ ph: "P",
2622
+ trackName: "JavaScript CPU Profiler",
2623
+ processName: "JavaScript CPU",
2624
+ uuid,
2625
+ ...this.getCommonEv(),
2626
+ categories: [
2627
+ "disabled-by-default-v8.cpu_profiler"
2628
+ ],
2629
+ args: {
2630
+ data: {
2631
+ startTime: 0
2632
+ }
2633
+ }
2634
+ }), this.pushEvent({
2635
+ name: "ProfileChunk",
2636
+ ph: "P",
2637
+ trackName: "JavaScript CPU Profiler",
2638
+ processName: "JavaScript CPU",
2639
+ ...this.getCommonEv(),
2640
+ categories: [
2641
+ "disabled-by-default-v8.cpu_profiler"
2642
+ ],
2643
+ uuid,
2644
+ args: {
2645
+ data: {
2646
+ cpuProfile: cpu_profile,
2647
+ timeDeltas: cpu_profile.timeDeltas
2648
+ }
2649
+ }
2650
+ });
2651
+ }
2652
+ };
2653
+ await new Promise((resolve, reject)=>{
2616
2654
  this.session.post("Profiler.stop", (err, params)=>{
2617
2655
  if (err) reject(err);
2618
2656
  else try {
2619
- let cpu_profile;
2620
- var err1 = err, param = params;
2621
- if (err1 ? console.error("Error stopping profiler:", err1) : cpu_profile = param.profile, cpu_profile) {
2622
- let uuid = this.uuid();
2623
- this.pushEvent({
2624
- name: "Profile",
2625
- ph: "P",
2626
- trackName: "JavaScript CPU Profiler",
2627
- processName: "JavaScript CPU",
2628
- uuid,
2629
- ...this.getCommonEv(),
2630
- categories: [
2631
- "disabled-by-default-v8.cpu_profiler"
2632
- ],
2633
- args: {
2634
- data: {
2635
- startTime: 0
2636
- }
2637
- }
2638
- }), this.pushEvent({
2639
- name: "ProfileChunk",
2640
- ph: "P",
2641
- trackName: "JavaScript CPU Profiler",
2642
- processName: "JavaScript CPU",
2643
- ...this.getCommonEv(),
2644
- categories: [
2645
- "disabled-by-default-v8.cpu_profiler"
2646
- ],
2647
- uuid,
2648
- args: {
2649
- data: {
2650
- cpuProfile: cpu_profile,
2651
- timeDeltas: cpu_profile.timeDeltas
2652
- }
2653
- }
2654
- });
2655
- }
2656
- resolve();
2657
+ profileHandler(err, params), resolve();
2657
2658
  } catch (err) {
2658
2659
  reject(err);
2659
2660
  }
2660
2661
  });
2661
- }), this.state = "off");
2662
+ }), this.state = "off";
2662
2663
  }
2663
2664
  static getTs() {
2664
2665
  return process.hrtime.bigint() - this.startTime;
@@ -2997,12 +2998,14 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2997
2998
  ]
2998
2999
  }).catch(handleError);
2999
3000
  });
3000
- }), LoaderLoadingError = class extends Error {
3001
+ }), external_node_fs_namespaceObject = require("node:fs");
3002
+ var external_node_fs_default = __webpack_require__.n(external_node_fs_namespaceObject);
3003
+ let LoaderLoadingError = class extends Error {
3001
3004
  constructor(message){
3002
3005
  super(message), this.name = "LoaderRunnerError", Error.captureStackTrace(this, this.constructor);
3003
3006
  }
3004
3007
  };
3005
- function loadLoader(loader, callback) {
3008
+ function loadLoader(loader, compiler, callback) {
3006
3009
  if ("module" === loader.type) try {
3007
3010
  void 0 === loadLoader_url && (loadLoader_url = __webpack_require__("node:url")), import(loadLoader_url.pathToFileURL(loader.path).toString()).then((module)=>{
3008
3011
  handleResult(loader, module, callback);
@@ -3016,7 +3019,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3016
3019
  try {
3017
3020
  module = require(loader.path);
3018
3021
  } catch (e) {
3019
- if (e instanceof Error && "EMFILE" === e.code) return void setImmediate(loadLoader.bind(null, loader, callback));
3022
+ if (e instanceof Error && "EMFILE" === e.code) return void setImmediate(loadLoader.bind(null, loader, compiler, callback));
3020
3023
  return callback(e);
3021
3024
  }
3022
3025
  return handleResult(loader, module, callback);
@@ -3386,7 +3389,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3386
3389
  resource: loaderContext.resource,
3387
3390
  mode: loaderContext.mode,
3388
3391
  sourceMap: loaderContext.sourceMap,
3389
- rootContext: loaderContext.context,
3392
+ rootContext: loaderContext.rootContext,
3390
3393
  loaderIndex: loaderContext.loaderIndex,
3391
3394
  loaders: loaderContext.loaders.map((item)=>{
3392
3395
  let options = item.options;
@@ -3570,7 +3573,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3570
3573
  loaderContext.loaderIndex += 1;
3571
3574
  continue;
3572
3575
  }
3573
- await utils_loadLoader(currentLoaderObject);
3576
+ await utils_loadLoader(currentLoaderObject, compiler);
3574
3577
  let fn = currentLoaderObject.pitch;
3575
3578
  if (parallelism && fn || (currentLoaderObject.pitchExecuted = !0), !fn) continue;
3576
3579
  let args = await isomorphoicRun(fn, [
@@ -3595,7 +3598,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3595
3598
  loaderContext.loaderIndex--;
3596
3599
  continue;
3597
3600
  }
3598
- await utils_loadLoader(currentLoaderObject);
3601
+ await utils_loadLoader(currentLoaderObject, compiler);
3599
3602
  let fn = currentLoaderObject.normal;
3600
3603
  parallelism && fn || (currentLoaderObject.normalExecuted = !0), fn && ([content, sourceMap, additionalData] = await isomorphoicRun(fn, [
3601
3604
  content,
@@ -3673,7 +3676,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3673
3676
  });
3674
3677
  }(rspackExperiments.import || rspackExperiments.pluginImport)), rspackExperiments.collectTypeScriptInfo && (rspackExperiments.collectTypeScriptInfo = {
3675
3678
  typeExports: (options1 = rspackExperiments.collectTypeScriptInfo).typeExports,
3676
- exportedEnum: !0 === options1.exportedEnum ? "all" : !1 === options1.exportedEnum ? "none" : "const-only"
3679
+ exportedEnum: !0 === options1.exportedEnum ? "all" : !1 === options1.exportedEnum || void 0 === options1.exportedEnum ? "none" : "const-only"
3677
3680
  }));
3678
3681
  }
3679
3682
  return options2;
@@ -3714,7 +3717,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3714
3717
  alias: getRawAlias(resolve.alias),
3715
3718
  fallback: getRawAlias(resolve.fallback),
3716
3719
  extensionAlias: function(alias = {}) {
3717
- return Object.fromEntries(Object.entries(alias).map(([key, value])=>Array.isArray(value) ? [
3720
+ if ("object" == typeof alias && null !== alias) return Object.fromEntries(Object.entries(alias).map(([key, value])=>Array.isArray(value) ? [
3718
3721
  key,
3719
3722
  value
3720
3723
  ] : [
@@ -4013,7 +4016,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4013
4016
  super(), this.type = type, this.externals = externals;
4014
4017
  }
4015
4018
  raw() {
4016
- let { type, externals } = this, raw = {
4019
+ let type = this.type, externals = this.externals, raw = {
4017
4020
  type,
4018
4021
  externals: (Array.isArray(externals) ? externals : [
4019
4022
  externals
@@ -4026,6 +4029,9 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4026
4029
  let resolveRequest = this.#resolveRequestCache.get(text);
4027
4030
  return resolveRequest || (resolveRequest = JSON.parse(text), this.#resolveRequestCache.set(text, resolveRequest)), Object.assign({}, resolveRequest);
4028
4031
  };
4032
+ #processRequest(req) {
4033
+ return `${req.path.replace(/#/g, "\u200b#")}${req.query.replace(/#/g, "\u200b#")}${req.fragment}`;
4034
+ }
4029
4035
  #getRawExternalItem = (item)=>{
4030
4036
  if ("string" == typeof item || item instanceof RegExp) return item;
4031
4037
  if ("function" == typeof item) {
@@ -4039,7 +4045,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4039
4045
  issuer: data.contextInfo.issuer,
4040
4046
  issuerLayer: data.contextInfo.issuerLayer ?? null
4041
4047
  },
4042
- getResolve (options) {
4048
+ getResolve: (options)=>{
4043
4049
  let rawResolve = options ? getRawResolve(options) : void 0, resolve = ctx.getResolve(rawResolve);
4044
4050
  return (context, request, callback)=>{
4045
4051
  if (!callback) return new Promise((promiseResolve, promiseReject)=>{
@@ -4047,7 +4053,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4047
4053
  if (error) promiseReject(error);
4048
4054
  else {
4049
4055
  let req = processResolveResult(text);
4050
- promiseResolve(req?.path);
4056
+ promiseResolve(req ? this.#processRequest(req) : void 0);
4051
4057
  }
4052
4058
  });
4053
4059
  });
@@ -4055,7 +4061,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4055
4061
  if (error) callback(error);
4056
4062
  else {
4057
4063
  let req = processResolveResult(text);
4058
- callback(null, req?.path ?? !1, req);
4064
+ callback(null, !!req && this.#processRequest(req), req);
4059
4065
  }
4060
4066
  });
4061
4067
  };
@@ -4152,7 +4158,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4152
4158
  super(), this.options = options;
4153
4159
  }
4154
4160
  raw(compiler) {
4155
- let { options } = this, lockfileLocation = options.lockfileLocation ?? external_node_path_default().join(compiler.context, compiler.name ? `${compiler.name}.rspack.lock` : "rspack.lock"), cacheLocation = !1 === options.cacheLocation ? void 0 : options.cacheLocation ?? `${lockfileLocation}.data`, raw = {
4161
+ let options = this.options, lockfileLocation = options.lockfileLocation ?? external_node_path_default().join(compiler.context, compiler.name ? `${compiler.name}.rspack.lock` : "rspack.lock"), cacheLocation = !1 === options.cacheLocation ? void 0 : options.cacheLocation ?? `${lockfileLocation}.data`, raw = {
4156
4162
  allowedUris: options.allowedUris,
4157
4163
  lockfileLocation,
4158
4164
  cacheLocation,
@@ -6326,7 +6332,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
6326
6332
  let ZodRecord = $constructor("ZodRecord", (inst, def)=>{
6327
6333
  $ZodRecord.init(inst, def), ZodType.init(inst, def), inst.keyType = def.keyType, inst.valueType = def.valueType;
6328
6334
  });
6329
- function record(keyType, valueType, params) {
6335
+ function schemas_record(keyType, valueType, params) {
6330
6336
  return new ZodRecord({
6331
6337
  type: "record",
6332
6338
  keyType,
@@ -6524,7 +6530,11 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
6524
6530
  "graph",
6525
6531
  "assets"
6526
6532
  ]))
6527
- ]).optional()
6533
+ ]).optional(),
6534
+ sourceMapFeatures: schemas_object({
6535
+ module: schemas_boolean().optional(),
6536
+ cheap: schemas_boolean().optional()
6537
+ }).optional()
6528
6538
  })), getSRIPluginOptionsSchema = memoize(()=>{
6529
6539
  let hashFunctionSchema = schemas_enum([
6530
6540
  "sha256",
@@ -6550,7 +6560,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
6550
6560
  buildMeta: custom(),
6551
6561
  exports: schemas_array(schemas_string()).or(literal(!0)),
6552
6562
  id: schemas_string().or(numberOrInfinity)
6553
- }).partial(), dllReferencePluginOptionsContent = record(schemas_string(), dllReferencePluginOptionsContentItem), dllReferencePluginOptionsSourceType = schemas_enum([
6563
+ }).partial(), dllReferencePluginOptionsContent = schemas_record(schemas_string(), dllReferencePluginOptionsContentItem), dllReferencePluginOptionsSourceType = schemas_enum([
6554
6564
  "var",
6555
6565
  "assign",
6556
6566
  "this",
@@ -6602,7 +6612,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
6602
6612
  error: "HtmlRspackPlugin does not support template path with loader yet"
6603
6613
  }),
6604
6614
  templateContent: schemas_string().or(anyFunction),
6605
- templateParameters: record(schemas_string(), schemas_string()).or(schemas_boolean()).or(anyFunction),
6615
+ templateParameters: schemas_record(schemas_string(), schemas_string()).or(schemas_boolean()).or(anyFunction),
6606
6616
  inject: schemas_enum([
6607
6617
  "head",
6608
6618
  "body"
@@ -6637,7 +6647,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
6637
6647
  minify: schemas_boolean(),
6638
6648
  title: schemas_string(),
6639
6649
  favicon: schemas_string(),
6640
- meta: record(schemas_string(), schemas_string().or(record(schemas_string(), schemas_string()))),
6650
+ meta: schemas_record(schemas_string(), schemas_string().or(schemas_record(schemas_string(), schemas_string()))),
6641
6651
  hash: schemas_boolean()
6642
6652
  }).partial());
6643
6653
  function isZodErrorLike(err) {
@@ -7085,9 +7095,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7085
7095
  return !1;
7086
7096
  }
7087
7097
  }
7088
- let compilationOptionsMap = new WeakMap(), external_node_fs_namespaceObject = require("node:fs");
7089
- var external_node_fs_default = __webpack_require__.n(external_node_fs_namespaceObject);
7090
- let hooks_compilationHooksMap = new WeakMap(), HTML_PLUGIN_UID = 0, HtmlRspackPluginImpl = base_create(binding_.BuiltinPluginName.HtmlRspackPlugin, function(c = {}) {
7098
+ let compilationOptionsMap = new WeakMap(), hooks_compilationHooksMap = new WeakMap(), HTML_PLUGIN_UID = 0, HtmlRspackPluginImpl = base_create(binding_.BuiltinPluginName.HtmlRspackPlugin, function(c = {}) {
7091
7099
  let templateFn, templateParameters, filenames;
7092
7100
  validate(c, getHtmlPluginOptionsSchema);
7093
7101
  let uid = HTML_PLUGIN_UID++, meta = {};
@@ -7156,7 +7164,9 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7156
7164
  let context = this.options.context || process.cwd(), templateFilePath = external_node_path_default().resolve(context, filename);
7157
7165
  if (!external_node_fs_default().existsSync(templateFilePath)) throw Error(`HtmlRspackPlugin: could not load file \`${filename}\` from \`${context}\``);
7158
7166
  try {
7159
- let renderer = require(templateFilePath);
7167
+ let renderer = await async function(id) {
7168
+ return require(id);
7169
+ }(templateFilePath);
7160
7170
  if (!1 === c.templateParameters) return await renderer({});
7161
7171
  return await renderer(generateRenderData(data));
7162
7172
  } catch (e) {
@@ -7301,7 +7311,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7301
7311
  test
7302
7312
  }), "thisCompilation"), LAZY_COMPILATION_PREFIX = "/lazy-compilation-using-", noop = (_req, _res, next)=>{
7303
7313
  "function" == typeof next && next();
7304
- };
7314
+ }, DEPRECATED_LAZY_COMPILATION_OPTIONS_WARN = "The `experiments.lazyCompilation` option is deprecated, please use the configuration top level `lazyCompilation` instead.", REPEAT_LAZY_COMPILATION_OPTIONS_WARN = "Both top-level `lazyCompilation` and `experiments.lazyCompilation` options are set. The top-level `lazyCompilation` configuration will take precedence.";
7305
7315
  function applyPlugin(compiler, moduleToIndex, indexToModule, options, activeModules, filesByKey) {
7306
7316
  new BuiltinLazyCompilationPlugin(({ module, path })=>{
7307
7317
  let compiler1, index = moduleToIndex.get(module);
@@ -7390,7 +7400,8 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7390
7400
  }) {
7391
7401
  return validate(c, getRsdoctorPluginSchema), {
7392
7402
  moduleGraphFeatures: c.moduleGraphFeatures ?? !0,
7393
- chunkGraphFeatures: c.chunkGraphFeatures ?? !0
7403
+ chunkGraphFeatures: c.chunkGraphFeatures ?? !0,
7404
+ sourceMapFeatures: c.sourceMapFeatures
7394
7405
  };
7395
7406
  }), RsdoctorPlugin_compilationHooksMap = new WeakMap();
7396
7407
  RsdoctorPluginImpl.getHooks = RsdoctorPluginImpl.getCompilationHooks = (compilation)=>{
@@ -7607,28 +7618,27 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7607
7618
  });
7608
7619
  });
7609
7620
  }), "string" == typeof this.options.htmlPlugin && this.options.htmlPlugin !== NATIVE_HTML_PLUGIN) {
7610
- let getHooks = null;
7621
+ let self = this;
7611
7622
  try {
7612
- let htmlPlugin = require(this.options.htmlPlugin);
7613
- getHooks = htmlPlugin.getCompilationHooks || htmlPlugin.getHooks;
7623
+ var obj, htmlPlugin = require(this.options.htmlPlugin);
7624
+ let getHooks = htmlPlugin.getCompilationHooks || htmlPlugin.getHooks;
7625
+ "function" == typeof getHooks && compiler.hooks.thisCompilation.tap(SubresourceIntegrityPlugin_PLUGIN_NAME, (compilation)=>{
7626
+ if ("string" == typeof compiler.options.output.chunkLoading && [
7627
+ "require",
7628
+ "async-node"
7629
+ ].includes(compiler.options.output.chunkLoading)) return;
7630
+ let hwpHooks = getHooks(compilation);
7631
+ hwpHooks.beforeAssetTagGeneration.tapPromise(SubresourceIntegrityPlugin_PLUGIN_NAME, async (data)=>(self.handleHwpPluginArgs(data), data)), hwpHooks.alterAssetTagGroups.tapPromise({
7632
+ name: SubresourceIntegrityPlugin_PLUGIN_NAME,
7633
+ stage: 10000
7634
+ }, async (data)=>(self.handleHwpBodyTags(data, compiler.outputPath, compiler.options.output.crossOriginLoading), data));
7635
+ });
7614
7636
  } catch (e) {
7615
- var obj;
7616
7637
  if (!((obj = e) instanceof Error && "code" in obj && [
7617
7638
  "string",
7618
7639
  "undefined"
7619
7640
  ].includes(typeof obj.code)) || "MODULE_NOT_FOUND" !== e.code) throw e;
7620
7641
  }
7621
- "function" == typeof getHooks && compiler.hooks.thisCompilation.tap(SubresourceIntegrityPlugin_PLUGIN_NAME, (compilation)=>{
7622
- if ("string" == typeof compiler.options.output.chunkLoading && [
7623
- "require",
7624
- "async-node"
7625
- ].includes(compiler.options.output.chunkLoading)) return;
7626
- let hwpHooks = getHooks(compilation);
7627
- hwpHooks.beforeAssetTagGeneration.tapPromise(SubresourceIntegrityPlugin_PLUGIN_NAME, async (data)=>(this.handleHwpPluginArgs(data), data)), hwpHooks.alterAssetTagGroups.tapPromise({
7628
- name: SubresourceIntegrityPlugin_PLUGIN_NAME,
7629
- stage: 10000
7630
- }, async (data)=>(this.handleHwpBodyTags(data, compiler.outputPath, compiler.options.output.crossOriginLoading), data));
7631
- });
7632
7642
  }
7633
7643
  }
7634
7644
  }
@@ -8570,7 +8580,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8570
8580
  if ("function" != typeof options.entry) for (let key of Object.keys(options.entry))defaults_F(options.entry[key], "import", ()=>[
8571
8581
  "./src"
8572
8582
  ]);
8573
- defaults_F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), D(options, "bail", !1), defaults_F(options, "cache", ()=>development), applyExperimentsDefaults(options.experiments, {
8583
+ defaults_F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), D(options, "lazyCompilation", !1), D(options, "bail", !1), defaults_F(options, "cache", ()=>development), applyExperimentsDefaults(options.experiments, {
8574
8584
  production,
8575
8585
  development
8576
8586
  }), !1 === options.cache && (options.experiments.cache = !1), applySnapshotDefaults(options.snapshot, {
@@ -8580,7 +8590,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8580
8590
  css: options.experiments.css,
8581
8591
  targetProperties,
8582
8592
  mode: options.mode,
8583
- uniqueName: options.output.uniqueName
8593
+ uniqueName: options.output.uniqueName,
8594
+ inlineConst: options.experiments.inlineConst
8584
8595
  }), applyOutputDefaults(options.output, {
8585
8596
  context: options.context,
8586
8597
  targetProperties,
@@ -8612,17 +8623,20 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8612
8623
  }), options.resolve), options.resolveLoader = cleverMerge(getResolveLoaderDefaults(), options.resolveLoader);
8613
8624
  }, applyInfrastructureLoggingDefaults = (infrastructureLogging)=>{
8614
8625
  defaults_F(infrastructureLogging, "stream", ()=>process.stderr);
8615
- let tty = infrastructureLogging.stream.isTTY && "dumb" !== process.env.TERM;
8626
+ let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
8616
8627
  D(infrastructureLogging, "level", "info"), D(infrastructureLogging, "debug", !1), D(infrastructureLogging, "colors", tty), D(infrastructureLogging, "appendOnly", !tty);
8617
8628
  }, applyExperimentsDefaults = (experiments, { production, development })=>{
8618
- defaults_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", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !0), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !0), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1);
8629
+ defaults_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), !1 === experiments.topLevelAwait && console.warn("`experiments.topLevelAwait` config has been deprecated and will be removed in Rspack v2.0. Top-level await will be always enabled. Please remove this option from your Rspack configuration."), 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", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !0), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !1), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !1);
8619
8630
  }, applybundlerInfoDefaults = (rspackFuture, library)=>{
8620
- "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.4.10"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
8621
- }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName })=>{
8622
- var parserOptions;
8623
- if (assertNotNill(module.parser), assertNotNill(module.generator), defaults_F(module.parser, "asset", ()=>({})), assertNotNill(module.parser.asset), defaults_F(module.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module.parser.asset.dataUrlCondition && D(module.parser.asset.dataUrlCondition, "maxSize", 8096), defaults_F(module.parser, "javascript", ()=>({})), assertNotNill(module.parser.javascript), D(parserOptions = module.parser.javascript, "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", [
8624
- "..."
8625
- ]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", !1), D(parserOptions, "typeReexportsPresence", "no-tolerant"), defaults_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), defaults_F(module.generator, "json", ()=>({})), assertNotNill(module.generator.json), D(module.generator.json, "JSONParse", !0), css) {
8631
+ "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.0-beta.0"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
8632
+ }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, inlineConst })=>{
8633
+ if (assertNotNill(module.parser), assertNotNill(module.generator), defaults_F(module.parser, "asset", ()=>({})), assertNotNill(module.parser.asset), defaults_F(module.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module.parser.asset.dataUrlCondition && D(module.parser.asset.dataUrlCondition, "maxSize", 8096), defaults_F(module.parser, "javascript", ()=>({})), assertNotNill(module.parser.javascript), ((parserOptions, { inlineConst })=>{
8634
+ 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", [
8635
+ "..."
8636
+ ]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant");
8637
+ })(module.parser.javascript, {
8638
+ inlineConst
8639
+ }), defaults_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), defaults_F(module.generator, "json", ()=>({})), assertNotNill(module.generator.json), D(module.generator.json, "JSONParse", !0), css) {
8626
8640
  defaults_F(module.parser, "css", ()=>({})), assertNotNill(module.parser.css), D(module.parser.css, "namedExports", !0), D(module.parser.css, "url", !0), defaults_F(module.parser, "css/auto", ()=>({})), assertNotNill(module.parser["css/auto"]), D(module.parser["css/auto"], "namedExports", !0), D(module.parser["css/auto"], "url", !0), defaults_F(module.parser, "css/module", ()=>({})), assertNotNill(module.parser["css/module"]), D(module.parser["css/module"], "namedExports", !0), D(module.parser["css/module"], "url", !0), defaults_F(module.generator, "css", ()=>({})), assertNotNill(module.generator.css), D(module.generator.css, "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator.css, "esModule", !0), defaults_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");
8627
8641
  let localIdentName = uniqueName && uniqueName.length > 0 ? "[uniqueName]-[id]-[local]" : "[id]-[local]";
8628
8642
  D(module.generator["css/auto"], "localIdentName", localIdentName), D(module.generator["css/auto"], "esModule", !0), defaults_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);
@@ -8806,7 +8820,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8806
8820
  }), defaults_F(output, "cssChunkFilename", ()=>{
8807
8821
  let chunkFilename = output.chunkFilename;
8808
8822
  return "function" != typeof chunkFilename ? chunkFilename.replace(/\.[mc]?js(\?|$)/, ".css$1") : "[id].css";
8809
- }), D(output, "hotUpdateChunkFilename", `[id].[fullhash].hot-update.${output.module ? "mjs" : "js"}`), D(output, "hotUpdateMainFilename", "[runtime].[fullhash].hot-update.json");
8823
+ }), D(output, "hotUpdateChunkFilename", `[id].[fullhash].hot-update.${output.module ? "mjs" : "js"}`), defaults_F(output, "hotUpdateMainFilename", ()=>`[runtime].[fullhash].hot-update.${output.module ? "json.mjs" : "json"}`);
8810
8824
  let uniqueNameId = Template.toIdentifier(output.uniqueName);
8811
8825
  defaults_F(output, "hotUpdateGlobal", ()=>`webpackHotUpdate${uniqueNameId}`), defaults_F(output, "chunkLoadingGlobal", ()=>`webpackChunk${uniqueNameId}`), D(output, "assetModuleFilename", "[hash][ext][query]"), D(output, "webassemblyModuleFilename", "[hash].module.wasm"), D(output, "compareBeforeEmit", !0), defaults_F(output, "path", ()=>external_node_path_default().join(process.cwd(), "dist")), defaults_F(output, "pathinfo", ()=>development), D(output, "publicPath", tp && (tp.document || tp.importScripts) ? "auto" : ""), D(output, "hashFunction", "xxhash64"), D(output, "hashDigest", "hex"), D(output, "hashDigestLength", 16), D(output, "strictModuleErrorHandling", !1), output.library && defaults_F(output.library, "type", ()=>output.module ? "module" : "var"), defaults_F(output, "chunkFormat", ()=>{
8812
8826
  if (tp) {
@@ -9260,7 +9274,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
9260
9274
  devServer: config.devServer,
9261
9275
  profile: config.profile,
9262
9276
  amd: config.amd,
9263
- bail: config.bail
9277
+ bail: config.bail,
9278
+ lazyCompilation: optionalNestedConfig(config.lazyCompilation, (options)=>!0 === options ? {} : options)
9264
9279
  };
9265
9280
  }, getNormalizedEntryStatic = (entry)=>{
9266
9281
  if ("string" == typeof entry) return {
@@ -9856,7 +9871,6 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
9856
9871
  }
9857
9872
  class Resolver {
9858
9873
  #binding;
9859
- #childCache = new WeakMap();
9860
9874
  constructor(binding){
9861
9875
  this.#binding = binding;
9862
9876
  }
@@ -9867,35 +9881,45 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
9867
9881
  this.#binding.resolve(path, request, (error, text)=>{
9868
9882
  if (error) return void callback(error);
9869
9883
  let req = text ? JSON.parse(text) : void 0;
9870
- callback(error, !!req && req.path, req);
9884
+ callback(error, !!req && `${req.path.replace(/#/g, "\u200b#")}${req.query.replace(/#/g, "\u200b#")}${req.fragment}`, req);
9871
9885
  });
9872
9886
  }
9873
- withOptions(options) {
9874
- let cacheEntry = this.#childCache.get(options);
9875
- if (void 0 !== cacheEntry) return cacheEntry;
9876
- let { dependencyCategory, resolveToContext, ...resolve } = options, rawResolve = getRawResolve(resolve), resolver = new Resolver(this.#binding.withOptions({
9877
- dependencyCategory,
9878
- resolveToContext,
9879
- ...rawResolve
9880
- }));
9881
- return this.#childCache.set(options, resolver), resolver;
9882
- }
9883
9887
  }
9888
+ let EMPTY_RESOLVE_OPTIONS = {};
9884
9889
  class ResolverFactory {
9885
9890
  #binding;
9891
+ #cache = new Map();
9886
9892
  static __to_binding(resolver_factory) {
9887
9893
  return resolver_factory.#binding;
9888
9894
  }
9889
- constructor(pnp){
9890
- this.#binding = new (binding_default()).JsResolverFactory(pnp);
9895
+ constructor(pnp, resolveOptions, loaderResolveOptions){
9896
+ this.#binding = new (binding_default()).JsResolverFactory(pnp, getRawResolve(resolveOptions), getRawResolve(loaderResolveOptions));
9891
9897
  }
9892
- get(type, resolveOptions) {
9893
- let { dependencyCategory, resolveToContext, ...resolve } = resolveOptions || {};
9894
- return new Resolver(this.#binding.get(type, {
9898
+ #create(type, resolveOptionsWithDepType) {
9899
+ let { dependencyType, resolveToContext, ...resolve } = resolveOptionsWithDepType, resolver = new Resolver(this.#binding.get(type, {
9895
9900
  ...getRawResolve(resolve),
9896
- dependencyCategory,
9901
+ dependencyType,
9897
9902
  resolveToContext
9898
- }));
9903
+ })), childCache = new WeakMap();
9904
+ return resolver.withOptions = (options)=>{
9905
+ let cacheEntry = childCache.get(options);
9906
+ if (void 0 !== cacheEntry) return cacheEntry;
9907
+ let mergedOptions = cachedCleverMerge(resolveOptionsWithDepType, options), newResolver = this.get(type, mergedOptions);
9908
+ return childCache.set(options, newResolver), newResolver;
9909
+ }, resolver;
9910
+ }
9911
+ get(type, resolveOptions = EMPTY_RESOLVE_OPTIONS) {
9912
+ let typedCaches = this.#cache.get(type);
9913
+ typedCaches || (typedCaches = {
9914
+ direct: new WeakMap(),
9915
+ stringified: new Map()
9916
+ }, this.#cache.set(type, typedCaches));
9917
+ let cachedResolver = typedCaches.direct.get(resolveOptions);
9918
+ if (cachedResolver) return cachedResolver;
9919
+ let ident = JSON.stringify(resolveOptions), resolver = typedCaches.stringified.get(ident);
9920
+ if (resolver) return typedCaches.direct.set(resolveOptions, resolver), resolver;
9921
+ let newResolver = this.#create(type, resolveOptions);
9922
+ return typedCaches.direct.set(resolveOptions, newResolver), typedCaches.stringified.set(ident, newResolver), newResolver;
9899
9923
  }
9900
9924
  }
9901
9925
  class RuleSetCompiler {
@@ -10247,7 +10271,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
10247
10271
  });
10248
10272
  }
10249
10273
  }
10250
- let CORE_VERSION = "1.4.10", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
10274
+ let CORE_VERSION = "1.5.0-beta.0", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
10251
10275
 
10252
10276
  Help:
10253
10277
  Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
@@ -10258,6 +10282,119 @@ Help:
10258
10282
  Please ensure the version of @rspack/binding and @rspack/core is the same.
10259
10283
  The expected version of @rspack/core to the current binding is ${expectedCoreVersion}.
10260
10284
  `;
10285
+ class NativeWatchFileSystem {
10286
+ #inner;
10287
+ #inputFileSystem;
10288
+ constructor(inputFileSystem){
10289
+ this.#inputFileSystem = inputFileSystem;
10290
+ }
10291
+ watch(files, directories, missing, _startTime, options, callback, callbackUndelayed) {
10292
+ if ((!files.added || "function" != typeof files.added[Symbol.iterator]) && (!files.removed || "function" != typeof files.removed[Symbol.iterator])) throw Error("Invalid arguments: 'files'");
10293
+ if ((!directories.added || "function" != typeof directories.added[Symbol.iterator]) && (!directories.removed || "function" != typeof directories.removed[Symbol.iterator])) throw Error("Invalid arguments: 'directories'");
10294
+ if ("function" != typeof callback) throw Error("Invalid arguments: 'callback'");
10295
+ if ("object" != typeof options) throw Error("Invalid arguments: 'options'");
10296
+ if ("function" != typeof callbackUndelayed && callbackUndelayed) throw Error("Invalid arguments: 'callbackUndelayed'");
10297
+ let nativeWatcher = this.getNativeWatcher(options);
10298
+ return nativeWatcher.watch([
10299
+ Array.from(files.added),
10300
+ Array.from(files.removed)
10301
+ ], [
10302
+ Array.from(directories.added),
10303
+ Array.from(directories.removed)
10304
+ ], [
10305
+ Array.from(missing.added),
10306
+ Array.from(missing.removed)
10307
+ ], (err, result)=>{
10308
+ if (err) return void callback(err, new Map(), new Map(), new Set(), new Set());
10309
+ nativeWatcher.pause();
10310
+ let changedFiles = result.changedFiles, removedFiles = result.removedFiles;
10311
+ if (this.#inputFileSystem?.purge) {
10312
+ let fs = this.#inputFileSystem;
10313
+ for (let item of changedFiles)fs.purge?.(item);
10314
+ for (let item of removedFiles)fs.purge?.(item);
10315
+ }
10316
+ callback(err, new Map(), new Map(), new Set(changedFiles), new Set(removedFiles));
10317
+ }, (fileName)=>{
10318
+ callbackUndelayed(fileName, Date.now());
10319
+ }), {
10320
+ close: ()=>{
10321
+ nativeWatcher.close().then(()=>{
10322
+ this.#inner = void 0;
10323
+ }, (err)=>{
10324
+ console.error("Error closing native watcher:", err);
10325
+ });
10326
+ },
10327
+ pause: ()=>{
10328
+ nativeWatcher.pause();
10329
+ },
10330
+ getInfo: ()=>({
10331
+ changes: new Set(),
10332
+ removals: new Set(),
10333
+ fileTimeInfoEntries: new Map(),
10334
+ contextTimeInfoEntries: new Map()
10335
+ })
10336
+ };
10337
+ }
10338
+ getNativeWatcher(options) {
10339
+ if (this.#inner) return this.#inner;
10340
+ let nativeWatcherOptions = {
10341
+ followSymlinks: options.followSymlinks,
10342
+ aggregateTimeout: options.aggregateTimeout,
10343
+ pollInterval: "boolean" == typeof options.poll ? 0 : options.poll,
10344
+ ignored: ((ignored)=>{
10345
+ if (Array.isArray(ignored) || "string" == typeof ignored || ignored instanceof RegExp) return ignored;
10346
+ if ("function" == typeof ignored) throw Error("NativeWatcher does not support using a function for the 'ignored' option");
10347
+ })(options.ignored)
10348
+ }, nativeWatcher = new (binding_default()).NativeWatcher(nativeWatcherOptions);
10349
+ return this.#inner = nativeWatcher, nativeWatcher;
10350
+ }
10351
+ triggerEvent(kind, path) {
10352
+ this.#inner?.triggerEvent(kind, path);
10353
+ }
10354
+ }
10355
+ let VFILES_BY_COMPILER = new WeakMap();
10356
+ class VirtualModulesPlugin {
10357
+ #staticModules;
10358
+ #compiler;
10359
+ #store;
10360
+ constructor(modules){
10361
+ this.#staticModules = modules || null;
10362
+ }
10363
+ apply(compiler) {
10364
+ this.#compiler = compiler, compiler.hooks.afterEnvironment.tap("VirtualModulesPlugin", ()=>{
10365
+ let record = VFILES_BY_COMPILER.get(compiler) || {};
10366
+ if (this.#staticModules) for (let [filePath, content] of Object.entries(this.#staticModules))record[external_node_path_default().resolve(compiler.context, filePath)] = content;
10367
+ VFILES_BY_COMPILER.set(compiler, record);
10368
+ });
10369
+ }
10370
+ writeModule(filePath, contents) {
10371
+ var compiler, fullPath, time;
10372
+ if (!this.#compiler) throw Error("Plugin has not been initialized");
10373
+ let store = this.getVirtualFileStore(), fullPath1 = external_node_path_default().resolve(this.#compiler.context, filePath);
10374
+ store.writeVirtualFileSync(fullPath1, contents), compiler = this.#compiler, fullPath = fullPath1, time = Date.now(), compiler.watchFileSystem instanceof NativeWatchFileSystem ? compiler.watchFileSystem.triggerEvent("change", fullPath) : function(compiler, fullPath, time) {
10375
+ var fs;
10376
+ if (compiler.watchFileSystem && "watch" in (fs = compiler.watchFileSystem)) {
10377
+ let watcher = compiler.watchFileSystem.watcher;
10378
+ if (!watcher) return;
10379
+ let fileWatcher = watcher.fileWatchers.get(fullPath);
10380
+ fileWatcher && fileWatcher.watcher.emit("change", time, null);
10381
+ }
10382
+ }(compiler, fullPath, time);
10383
+ }
10384
+ getVirtualFileStore() {
10385
+ if (this.#store) return this.#store;
10386
+ let store = this.#compiler?.__internal__get_virtual_file_store();
10387
+ if (!store) throw Error("Virtual file store has not been initialized");
10388
+ return this.#store = store, store;
10389
+ }
10390
+ static __internal__take_virtual_files(compiler) {
10391
+ let record = VFILES_BY_COMPILER.get(compiler);
10392
+ if (record) return VFILES_BY_COMPILER.delete(compiler), Object.entries(record).map(([path, content])=>({
10393
+ path,
10394
+ content
10395
+ }));
10396
+ }
10397
+ }
10261
10398
  class Watching {
10262
10399
  watcher;
10263
10400
  pausedWatcher;
@@ -10299,11 +10436,11 @@ Help:
10299
10436
  return;
10300
10437
  }
10301
10438
  let finalCallback = (err)=>{
10302
- this.running = !1, this.compiler.running = !1, this.compiler.watching = void 0, this.compiler.watchMode = !1, this.compiler.modifiedFiles = void 0, this.compiler.removedFiles = void 0, this.compiler.fileTimestamps = void 0, this.compiler.contextTimestamps = void 0;
10303
- var err1 = err;
10304
- this.compiler.hooks.watchClose.call();
10305
- let closeCallbacks = this.#closeCallbacks;
10306
- for (let cb of (this.#closeCallbacks = void 0, closeCallbacks))cb(err1);
10439
+ this.running = !1, this.compiler.running = !1, this.compiler.watching = void 0, this.compiler.watchMode = !1, this.compiler.modifiedFiles = void 0, this.compiler.removedFiles = void 0, this.compiler.fileTimestamps = void 0, this.compiler.contextTimestamps = void 0, ((err)=>{
10440
+ this.compiler.hooks.watchClose.call();
10441
+ let closeCallbacks = this.#closeCallbacks;
10442
+ for (let cb of (this.#closeCallbacks = void 0, closeCallbacks))cb(err);
10443
+ })(err);
10307
10444
  };
10308
10445
  this.#closed = !0, this.watcher && (this.watcher.close(), this.watcher = void 0), this.pausedWatcher && (this.pausedWatcher.close(), this.pausedWatcher = void 0), this.compiler.watching = void 0, this.compiler.watchMode = !1, this.#closeCallbacks = [], callback && this.#closeCallbacks.push(callback), this.running ? (this.invalid = !0, this._done = finalCallback) : finalCallback(null);
10309
10446
  }
@@ -10520,7 +10657,7 @@ Help:
10520
10657
  "entry"
10521
10658
  ]),
10522
10659
  additionalPass: new lite_tapable_namespaceObject.AsyncSeriesHook([])
10523
- }, 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(), 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);
10660
+ }, 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(), this.compilerPath = "", this.running = !1, this.idle = !1, this.watchMode = !1, this.resolverFactory = new ResolverFactory(options.resolve.pnp ?? getPnpDefault(), options.resolve, options.resolveLoader), new JsLoaderRspackPlugin(this).apply(this), new ExecuteModulePlugin().apply(this), new TraceHookPlugin().apply(this);
10524
10661
  }
10525
10662
  get recordsInputPath() {
10526
10663
  return unsupported("Compiler.recordsInputPath");
@@ -10691,6 +10828,9 @@ Help:
10691
10828
  let compilation = COMPILATION_WEAK_MAP.get(native);
10692
10829
  return compilation || ((compilation = new Compilation(this, native)).name = this.name, COMPILATION_WEAK_MAP.set(native, compilation)), this.#compilation = compilation, compilation;
10693
10830
  }
10831
+ __internal__get_virtual_file_store() {
10832
+ return this.#instance?.getVirtualFileStore();
10833
+ }
10694
10834
  #resetThisCompilation() {
10695
10835
  this.#compilation = void 0, this.hooks.thisCompilation.intercept({
10696
10836
  call: ()=>{}
@@ -10793,7 +10933,7 @@ Help:
10793
10933
  __references: {}
10794
10934
  };
10795
10935
  })(options, this);
10796
- rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
10936
+ rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries()), rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
10797
10937
  let instanceBinding = __webpack_require__("@rspack/binding");
10798
10938
  this.#registers = this.#createHooksRegisters();
10799
10939
  let inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
@@ -11445,7 +11585,7 @@ Help:
11445
11585
  obj.children = this.stats.map((stat, idx)=>{
11446
11586
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
11447
11587
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
11448
- }), childOptions.version && (obj.rspackVersion = "1.4.10", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
11588
+ }), childOptions.version && (obj.rspackVersion = "1.5.0-beta.0", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
11449
11589
  let mapError = (j, obj)=>({
11450
11590
  ...obj,
11451
11591
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -12345,7 +12485,7 @@ Help:
12345
12485
  object.hash = context.getStatsCompilation(compilation).hash;
12346
12486
  },
12347
12487
  version: (object)=>{
12348
- object.version = "5.75.0", object.rspackVersion = "1.4.10";
12488
+ object.version = "5.75.0", object.rspackVersion = "1.5.0-beta.0";
12349
12489
  },
12350
12490
  env: (object, _compilation, _context, { _env })=>{
12351
12491
  object.env = _env;
@@ -13959,79 +14099,7 @@ Help:
13959
14099
  log: 2,
13960
14100
  true: 2,
13961
14101
  verbose: 1
13962
- }, stringToRegexp = (ignored)=>{
13963
- if (0 === ignored.length) return;
13964
- let { source } = __webpack_require__("glob-to-regexp")(ignored, {
13965
- globstar: !0,
13966
- extended: !0
13967
- });
13968
- return `${source.slice(0, -1)}(?:$|\\/)`;
13969
14102
  };
13970
- class NativeWatchFileSystem {
13971
- #inner;
13972
- watch(files, directories, missing, _startTime, options, callback, callbackUndelayed) {
13973
- if ((!files.added || "function" != typeof files.added[Symbol.iterator]) && (!files.removed || "function" != typeof files.removed[Symbol.iterator])) throw Error("Invalid arguments: 'files'");
13974
- if ((!directories.added || "function" != typeof directories.added[Symbol.iterator]) && (!directories.removed || "function" != typeof directories.removed[Symbol.iterator])) throw Error("Invalid arguments: 'directories'");
13975
- if ("function" != typeof callback) throw Error("Invalid arguments: 'callback'");
13976
- if ("object" != typeof options) throw Error("Invalid arguments: 'options'");
13977
- if ("function" != typeof callbackUndelayed && callbackUndelayed) throw Error("Invalid arguments: 'callbackUndelayed'");
13978
- let nativeWatcher = this.getNativeWatcher(options);
13979
- return nativeWatcher.watch([
13980
- Array.from(files.added),
13981
- Array.from(files.removed)
13982
- ], [
13983
- Array.from(directories.added),
13984
- Array.from(directories.removed)
13985
- ], [
13986
- Array.from(missing.added),
13987
- Array.from(missing.removed)
13988
- ], (err, result)=>{
13989
- let { changedFiles, removedFiles } = result;
13990
- callback(err, new Map(), new Map(), new Set(changedFiles), new Set(removedFiles));
13991
- }, (fileName)=>{
13992
- callbackUndelayed(fileName, Date.now());
13993
- }), {
13994
- close: ()=>{
13995
- nativeWatcher.close();
13996
- },
13997
- pause: ()=>{
13998
- nativeWatcher.pause();
13999
- },
14000
- getInfo: ()=>({
14001
- changes: new Set(),
14002
- removals: new Set(),
14003
- fileTimeInfoEntries: new Map(),
14004
- contextTimeInfoEntries: new Map()
14005
- })
14006
- };
14007
- }
14008
- getNativeWatcher(options) {
14009
- if (this.#inner) return this.#inner;
14010
- let nativeWatcherOptions = {
14011
- followSymlinks: options.followSymlinks,
14012
- aggregateTimeout: options.aggregateTimeout,
14013
- pollInterval: "boolean" == typeof options.poll ? 0 : options.poll,
14014
- ignored: ((ignored)=>{
14015
- if (Array.isArray(ignored)) {
14016
- let stringRegexps = ignored.map((i)=>stringToRegexp(i)).filter(Boolean);
14017
- if (0 === stringRegexps.length) return ()=>!1;
14018
- let regexp = new RegExp(stringRegexps.join("|"));
14019
- return (item)=>regexp.test(item.replace(/\\/g, "/"));
14020
- }
14021
- if ("string" == typeof ignored) {
14022
- let stringRegexp = stringToRegexp(ignored);
14023
- if (!stringRegexp) return ()=>!1;
14024
- let regexp = new RegExp(stringRegexp);
14025
- return (item)=>regexp.test(item.replace(/\\/g, "/"));
14026
- }
14027
- if (ignored instanceof RegExp) return (item)=>ignored.test(item.replace(/\\/g, "/"));
14028
- if ("function" == typeof ignored) return (item)=>ignored(item);
14029
- if (ignored) throw Error(`Invalid option for 'ignored': ${ignored}`);
14030
- })(options.ignored)
14031
- }, nativeWatcher = new (binding_default()).NativeWatcher(nativeWatcherOptions);
14032
- return this.#inner = nativeWatcher, nativeWatcher;
14033
- }
14034
- }
14035
14103
  class NodeWatchFileSystem {
14036
14104
  inputFileSystem;
14037
14105
  watcherOptions;
@@ -14285,7 +14353,7 @@ Help:
14285
14353
  })
14286
14354
  });
14287
14355
  let inputFileSystem = new (CachedInputFileSystem_default())(graceful_fs_index_js_default(), 60000);
14288
- compiler.inputFileSystem = inputFileSystem, compiler.outputFileSystem = graceful_fs_index_js_default(), compiler.intermediateFileSystem = null, compiler.options.experiments.nativeWatcher ? compiler.watchFileSystem = new NativeWatchFileSystem() : compiler.watchFileSystem = new NodeWatchFileSystem(inputFileSystem), compiler.hooks.beforeRun.tap("NodeEnvironmentPlugin", (compiler)=>{
14356
+ compiler.inputFileSystem = inputFileSystem, compiler.outputFileSystem = graceful_fs_index_js_default(), compiler.intermediateFileSystem = null, compiler.options.experiments.nativeWatcher ? compiler.watchFileSystem = new NativeWatchFileSystem(inputFileSystem) : compiler.watchFileSystem = new NodeWatchFileSystem(inputFileSystem), compiler.hooks.beforeRun.tap("NodeEnvironmentPlugin", (compiler)=>{
14289
14357
  compiler.inputFileSystem === inputFileSystem && (compiler.fsStartTime = Date.now(), inputFileSystem.purge?.());
14290
14358
  });
14291
14359
  }
@@ -14459,7 +14527,7 @@ Help:
14459
14527
  const_to_let: schemas_boolean(),
14460
14528
  module: schemas_boolean()
14461
14529
  }).partial(), ZodSwcTerserMangleOptions = strictObject({
14462
- props: record(schemas_string(), any()),
14530
+ props: schemas_record(schemas_string(), any()),
14463
14531
  topLevel: schemas_boolean(),
14464
14532
  toplevel: schemas_boolean(),
14465
14533
  keepClassNames: schemas_boolean(),
@@ -14488,14 +14556,14 @@ Help:
14488
14556
  ]),
14489
14557
  importSource: schemas_string()
14490
14558
  }).partial(), ZodSwcConstModulesConfig = strictObject({
14491
- globals: record(schemas_string(), record(schemas_string(), schemas_string())).optional()
14559
+ globals: schemas_record(schemas_string(), schemas_record(schemas_string(), schemas_string())).optional()
14492
14560
  }), ZodSwcGlobalPassOption = strictObject({
14493
- vars: record(schemas_string(), schemas_string()),
14561
+ vars: schemas_record(schemas_string(), schemas_string()),
14494
14562
  envs: union([
14495
14563
  schemas_string().array(),
14496
- record(schemas_string(), schemas_string())
14564
+ schemas_record(schemas_string(), schemas_string())
14497
14565
  ]),
14498
- typeofs: record(schemas_string(), schemas_string())
14566
+ typeofs: schemas_record(schemas_string(), schemas_string())
14499
14567
  }).partial(), ZodSwcOptimizerConfig = strictObject({
14500
14568
  simplify: schemas_boolean(),
14501
14569
  globals: ZodSwcGlobalPassOption,
@@ -14552,7 +14620,7 @@ Help:
14552
14620
  cacheRoot: schemas_string(),
14553
14621
  plugins: schemas_array(tuple([
14554
14622
  schemas_string(),
14555
- record(schemas_string(), any())
14623
+ schemas_record(schemas_string(), any())
14556
14624
  ])),
14557
14625
  runPluginFirst: schemas_boolean(),
14558
14626
  disableBuiltinTransformsForInternalTesting: schemas_boolean(),
@@ -14561,7 +14629,7 @@ Help:
14561
14629
  keepImportAssertions: schemas_boolean()
14562
14630
  }).partial(),
14563
14631
  baseUrl: schemas_string(),
14564
- paths: record(schemas_string(), schemas_string().array()),
14632
+ paths: schemas_record(schemas_string(), schemas_string().array()),
14565
14633
  minify: ZodSwcJsMinifyOptions,
14566
14634
  preserveAllComments: schemas_boolean(),
14567
14635
  output: strictObject({
@@ -14601,7 +14669,7 @@ Help:
14601
14669
  type: literal("commonjs")
14602
14670
  }), ZodSwcUmdConfig = ZodSwcBaseModuleConfig.extend({
14603
14671
  type: literal("umd"),
14604
- globals: record(schemas_string(), schemas_string()).optional()
14672
+ globals: schemas_record(schemas_string(), schemas_string()).optional()
14605
14673
  }), ZodSwcAmdConfig = ZodSwcBaseModuleConfig.extend({
14606
14674
  type: literal("amd"),
14607
14675
  moduleId: schemas_string().optional()
@@ -14751,7 +14819,7 @@ Help:
14751
14819
  library: libraryOptions.optional(),
14752
14820
  dependOn: entryDependOn.optional(),
14753
14821
  layer: layer.optional()
14754
- }), entryStatic = record(schemas_string(), entryItem.or(entryDescription)).or(entryItem), entry = entryStatic.or(anyFunction), path = schemas_string(), pathinfo = schemas_boolean().or(literal("verbose")), webassemblyModuleFilename = schemas_string(), crossOriginLoading = literal(!1).or(schemas_enum([
14822
+ }), entryStatic = schemas_record(schemas_string(), entryItem.or(entryDescription)).or(entryItem), entry = entryStatic.or(anyFunction), path = schemas_string(), pathinfo = schemas_boolean().or(literal("verbose")), webassemblyModuleFilename = schemas_string(), crossOriginLoading = literal(!1).or(schemas_enum([
14755
14823
  "anonymous",
14756
14824
  "use-credentials"
14757
14825
  ])), hotUpdateGlobal = schemas_string(), uniqueName = schemas_string(), chunkLoadingGlobal = schemas_string(), enabledLibraryTypes = schemas_array(libraryType), clean = union([
@@ -14841,7 +14909,7 @@ Help:
14841
14909
  charset: schemas_boolean(),
14842
14910
  environment: environment,
14843
14911
  compareBeforeEmit: schemas_boolean()
14844
- }).partial(), resolveAlias = record(schemas_string(), literal(!1).or(schemas_string()).or(schemas_array(schemas_string().or(literal(!1))))).or(literal(!1)), resolveTsConfigFile = schemas_string(), resolveTsConfig = resolveTsConfigFile.or(strictObject({
14912
+ }).partial(), resolveAlias = schemas_record(schemas_string(), literal(!1).or(schemas_string()).or(schemas_array(schemas_string().or(literal(!1))))).or(literal(!1)), resolveTsConfigFile = schemas_string(), resolveTsConfig = resolveTsConfigFile.or(strictObject({
14845
14913
  configFile: resolveTsConfigFile,
14846
14914
  references: schemas_array(schemas_string()).or(literal("auto")).optional()
14847
14915
  })), resolveOptions = strictObject({
@@ -14861,18 +14929,18 @@ Help:
14861
14929
  tsConfig: resolveTsConfig,
14862
14930
  fullySpecified: schemas_boolean(),
14863
14931
  exportsFields: schemas_array(schemas_string()),
14864
- extensionAlias: record(schemas_string(), schemas_string().or(schemas_array(schemas_string()))),
14932
+ extensionAlias: schemas_record(schemas_string(), schemas_string().or(schemas_array(schemas_string()))),
14865
14933
  aliasFields: schemas_array(schemas_string()),
14866
14934
  restrictions: schemas_array(schemas_string()),
14867
14935
  roots: schemas_array(schemas_string()),
14868
14936
  pnp: schemas_boolean()
14869
14937
  }).partial().extend({
14870
- byDependency: lazy(()=>record(schemas_string(), resolveOptions)).optional()
14938
+ byDependency: lazy(()=>schemas_record(schemas_string(), resolveOptions)).optional()
14871
14939
  }), ruleSetCondition = _instanceof(RegExp).or(schemas_string()).or(anyFunction).or(lazy(()=>ruleSetConditions)).or(lazy(()=>ruleSetLogicalConditions)), ruleSetConditions = lazy(()=>schemas_array(ruleSetCondition)), ruleSetLogicalConditions = strictObject({
14872
14940
  and: ruleSetConditions,
14873
14941
  or: ruleSetConditions,
14874
14942
  not: ruleSetCondition
14875
- }).partial(), ruleSetLoader = schemas_string(), ruleSetLoaderOptions = schemas_string().or(record(schemas_string(), any())), ruleSetLoaderWithOptions = strictObject({
14943
+ }).partial(), ruleSetLoader = schemas_string(), ruleSetLoaderOptions = schemas_string().or(schemas_record(schemas_string(), any())), ruleSetLoaderWithOptions = strictObject({
14876
14944
  ident: schemas_string().optional(),
14877
14945
  loader: ruleSetLoader,
14878
14946
  options: ruleSetLoaderOptions.optional(),
@@ -14906,15 +14974,15 @@ Help:
14906
14974
  resourceQuery: ruleSetCondition,
14907
14975
  scheme: ruleSetCondition,
14908
14976
  mimetype: ruleSetCondition,
14909
- descriptionData: record(schemas_string(), ruleSetCondition),
14910
- with: record(schemas_string(), ruleSetCondition),
14977
+ descriptionData: schemas_record(schemas_string(), ruleSetCondition),
14978
+ with: schemas_record(schemas_string(), ruleSetCondition),
14911
14979
  type: schemas_string(),
14912
14980
  layer: schemas_string(),
14913
14981
  loader: ruleSetLoader,
14914
14982
  options: ruleSetLoaderOptions,
14915
14983
  use: ruleSetUse,
14916
- parser: record(schemas_string(), any()),
14917
- generator: record(schemas_string(), any()),
14984
+ parser: schemas_record(schemas_string(), any()),
14985
+ generator: schemas_record(schemas_string(), any()),
14918
14986
  resolve: resolveOptions,
14919
14987
  sideEffects: schemas_boolean(),
14920
14988
  enforce: literal("pre").or(literal("post"))
@@ -15092,12 +15160,12 @@ Help:
15092
15160
  literal(!1),
15093
15161
  allowTarget,
15094
15162
  allowTarget.array()
15095
- ]), externalItemObjectValue = record(schemas_string(), schemas_string().or(schemas_string().array())), externalItemUmdValue = strictObject({
15163
+ ]), externalItemObjectValue = schemas_record(schemas_string(), schemas_string().or(schemas_string().array())), externalItemUmdValue = strictObject({
15096
15164
  root: schemas_string().or(schemas_string().array()),
15097
15165
  commonjs: schemas_string().or(schemas_string().array()),
15098
15166
  commonjs2: schemas_string().or(schemas_string().array()),
15099
15167
  amd: schemas_string().or(schemas_string().array())
15100
- }), externalItemValue = schemas_string().or(schemas_boolean()).or(schemas_string().array().min(1)).or(externalItemObjectValue), externalItemObjectUnknown = record(schemas_string(), externalItemValue), externalItem = schemas_string().or(_instanceof(RegExp)).or(externalItemObjectUnknown).or(anyFunction), externals = externalItem.array().or(externalItem), externalsPresets = strictObject({
15168
+ }), externalItemValue = schemas_string().or(schemas_boolean()).or(schemas_string().array().min(1)).or(externalItemObjectValue), externalItemObjectUnknown = schemas_record(schemas_string(), externalItemValue), externalItem = schemas_string().or(_instanceof(RegExp)).or(externalItemObjectUnknown).or(anyFunction), externals = externalItem.array().or(externalItem), externalsPresets = strictObject({
15101
15169
  node: schemas_boolean(),
15102
15170
  web: schemas_boolean(),
15103
15171
  webAsync: schemas_boolean(),
@@ -15136,7 +15204,7 @@ Help:
15136
15204
  "node-module"
15137
15205
  ])),
15138
15206
  global: schemas_boolean().or(literal("warn"))
15139
- }).partial(), node = literal(!1).or(nodeOptions), loader = record(schemas_string(), any()), snapshotOptions = strictObject({}), cacheOptions = schemas_boolean(), statsPresets = schemas_enum([
15207
+ }).partial(), node = literal(!1).or(nodeOptions), loader = schemas_record(schemas_string(), any()), snapshotOptions = strictObject({}), cacheOptions = schemas_boolean(), statsPresets = schemas_enum([
15140
15208
  "normal",
15141
15209
  "none",
15142
15210
  "verbose",
@@ -15241,7 +15309,7 @@ Help:
15241
15309
  "initial",
15242
15310
  "async",
15243
15311
  "all"
15244
- ]).or(_instanceof(RegExp)).or(anyFunction), optimizationSplitChunksSizes = numberOrInfinity.or(record(schemas_string(), numberOrInfinity)), sharedOptimizationSplitChunksCacheGroup = {
15312
+ ]).or(_instanceof(RegExp)).or(anyFunction), optimizationSplitChunksSizes = numberOrInfinity.or(schemas_record(schemas_string(), numberOrInfinity)), sharedOptimizationSplitChunksCacheGroup = {
15245
15313
  chunks: optimizationSplitChunksChunks,
15246
15314
  defaultSizeTypes: schemas_array(schemas_string()),
15247
15315
  minChunks: schemas_number().min(1).or(literal(1 / 0)),
@@ -15266,7 +15334,7 @@ Help:
15266
15334
  layer: schemas_string().or(_instanceof(RegExp)).or(anyFunction),
15267
15335
  ...sharedOptimizationSplitChunksCacheGroup
15268
15336
  }).partial(), optimizationSplitChunksOptions = strictObject({
15269
- cacheGroups: record(schemas_string(), literal(!1).or(optimizationSplitChunksCacheGroup)),
15337
+ cacheGroups: schemas_record(schemas_string(), literal(!1).or(optimizationSplitChunksCacheGroup)),
15270
15338
  fallbackCacheGroup: strictObject({
15271
15339
  chunks: optimizationSplitChunksChunks,
15272
15340
  minSize: numberOrInfinity,
@@ -15403,6 +15471,7 @@ Help:
15403
15471
  inlineConst: schemas_boolean(),
15404
15472
  inlineEnum: schemas_boolean(),
15405
15473
  typeReexportsPresence: schemas_boolean(),
15474
+ lazyBarrel: schemas_boolean(),
15406
15475
  nativeWatcher: schemas_boolean()
15407
15476
  }).partial(), watch = schemas_boolean(), watchOptions = strictObject({
15408
15477
  aggregateTimeout: numberOrInfinity,
@@ -15414,7 +15483,7 @@ Help:
15414
15483
  file: _instanceof(RegExp).optional(),
15415
15484
  message: _instanceof(RegExp).optional(),
15416
15485
  module: _instanceof(RegExp).optional()
15417
- })).array(), profile = schemas_boolean(), amd = literal(!1).or(record(schemas_string(), any())), bail = schemas_boolean(), performance = strictObject({
15486
+ })).array(), profile = schemas_boolean(), amd = literal(!1).or(schemas_record(schemas_string(), any())), bail = schemas_boolean(), performance = strictObject({
15418
15487
  assetFilter: anyFunction,
15419
15488
  hints: schemas_enum([
15420
15489
  "error",
@@ -15458,7 +15527,8 @@ Help:
15458
15527
  profile: profile,
15459
15528
  amd: amd,
15460
15529
  bail: bail,
15461
- performance: performance
15530
+ performance: performance,
15531
+ lazyCompilation: schemas_boolean().or(lazyCompilationOptions).optional()
15462
15532
  }).partial().check((ctx)=>{
15463
15533
  let config = ctx.value, library = config?.output?.library;
15464
15534
  function checkExternalItem(externalItem, path) {
@@ -15745,7 +15815,7 @@ Help:
15745
15815
  let _options = JSON.stringify(options || {});
15746
15816
  return binding_default().transform(source, _options);
15747
15817
  }
15748
- let exports_rspackVersion = "1.4.10", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
15818
+ let exports_rspackVersion = "1.5.0-beta.0", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
15749
15819
  getNormalizedRspackOptions: getNormalizedRspackOptions,
15750
15820
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
15751
15821
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
@@ -15942,11 +16012,12 @@ Help:
15942
16012
  SubresourceIntegrityPlugin: SubresourceIntegrityPlugin,
15943
16013
  lazyCompilationMiddleware: (compiler)=>{
15944
16014
  if (compiler instanceof MultiCompiler) {
15945
- let middlewareByCompiler = new Map(), i = 0;
16015
+ let middlewareByCompiler = new Map(), i = 0, isReportDeprecatedWarned = !1, isReportRepeatWarned = !1;
15946
16016
  for (let c of compiler.compilers){
15947
- if (!c.options.experiments.lazyCompilation) continue;
16017
+ if (c.options.experiments.lazyCompilation && (c.name ? console.warn(`The 'experiments.lazyCompilation' option in compiler named '${c.name}' is deprecated, please use the Configuration top level 'lazyCompilation' instead.`) : isReportDeprecatedWarned || (console.warn(DEPRECATED_LAZY_COMPILATION_OPTIONS_WARN), isReportDeprecatedWarned = !0)), c.options.lazyCompilation && c.options.experiments.lazyCompilation && (c.name ? console.warn(`The top-level 'lazyCompilation' option in compiler named '${c.name}' will override the 'experiments.lazyCompilation' option.`) : isReportRepeatWarned || (console.warn(REPEAT_LAZY_COMPILATION_OPTIONS_WARN), isReportRepeatWarned = !0)), !c.options.lazyCompilation && !c.options.experiments.lazyCompilation) continue;
15948
16018
  let options = {
15949
- ...c.options.experiments.lazyCompilation
16019
+ ...c.options.experiments.lazyCompilation,
16020
+ ...c.options.lazyCompilation
15950
16021
  }, prefix = options.prefix || LAZY_COMPILATION_PREFIX;
15951
16022
  options.prefix = `${prefix}__${i++}`;
15952
16023
  let activeModules = new Map(), filesByKey = new Map(), indexToModule = new Map(), moduleToIndex = new Map();
@@ -15962,9 +16033,10 @@ Help:
15962
16033
  return middleware?.(req, res, next);
15963
16034
  };
15964
16035
  }
15965
- if (!compiler.options.experiments.lazyCompilation) return noop;
16036
+ if (compiler.options.experiments.lazyCompilation && (console.warn(DEPRECATED_LAZY_COMPILATION_OPTIONS_WARN), compiler.options.lazyCompilation && console.warn(REPEAT_LAZY_COMPILATION_OPTIONS_WARN)), !compiler.options.lazyCompilation && !compiler.options.experiments.lazyCompilation) return noop;
15966
16037
  let activeModules = new Map(), filesByKey = new Map(), indexToMap = new Map(), moduleToIndex = new Map(), options = {
15967
- ...compiler.options.experiments.lazyCompilation
16038
+ ...compiler.options.experiments.lazyCompilation,
16039
+ ...compiler.options.lazyCompilation
15968
16040
  };
15969
16041
  return applyPlugin(compiler, moduleToIndex, indexToMap, options, activeModules, filesByKey), lazyCompilationMiddlewareInternal(compiler, indexToMap, activeModules, filesByKey, options.prefix || LAZY_COMPILATION_PREFIX);
15970
16042
  },
@@ -15980,6 +16052,12 @@ Help:
15980
16052
  return binding_default().transformSync(source, _options);
15981
16053
  }
15982
16054
  },
16055
+ resolver: {
16056
+ ResolverFactory: binding_.ResolverFactory,
16057
+ EnforceExtension: binding_.EnforceExtension,
16058
+ async: binding_.async,
16059
+ sync: binding_.sync
16060
+ },
15983
16061
  CssChunkingPlugin: CssChunkingPlugin,
15984
16062
  createNativePlugin: function(name, resolve, affectedHooks) {
15985
16063
  if (INTERNAL_PLUGIN_NAMES.includes(name)) throw Error(`Cannot register native plugin with name '${name}', it conflicts with internal plugin names.`);
@@ -16043,7 +16121,7 @@ Help:
16043
16121
  }, exports_namespaceObject);
16044
16122
  src_fn.rspack = src_fn, src_fn.webpack = src_fn;
16045
16123
  let src_rspack = src_fn, src_0 = src_rspack;
16046
- })(), 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.StatsErrorCode = __webpack_exports__.StatsErrorCode, 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 === [
16124
+ })(), 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.StatsErrorCode = __webpack_exports__.StatsErrorCode, exports.SwcJsMinimizerRspackPlugin = __webpack_exports__.SwcJsMinimizerRspackPlugin, exports.Template = __webpack_exports__.Template, exports.ValidationError = __webpack_exports__.ValidationError, exports.VirtualModulesPlugin = __webpack_exports__.VirtualModulesPlugin, 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 === [
16047
16125
  "AsyncDependenciesBlock",
16048
16126
  "BannerPlugin",
16049
16127
  "CircularDependencyRspackPlugin",
@@ -16092,6 +16170,7 @@ Help:
16092
16170
  "SwcJsMinimizerRspackPlugin",
16093
16171
  "Template",
16094
16172
  "ValidationError",
16173
+ "VirtualModulesPlugin",
16095
16174
  "WarnCaseSensitiveModulesPlugin",
16096
16175
  "WebpackError",
16097
16176
  "WebpackOptionsApply",