@rspack-canary/core 1.5.7-canary-a3406c0a-20250922173625 → 1.5.8-canary-6c1a40e3-20250925175235

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 (81) hide show
  1. package/dist/Compiler.d.ts +45 -32
  2. package/dist/MultiCompiler.d.ts +5 -2
  3. package/dist/RuntimeModule.d.ts +1 -1
  4. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  5. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  6. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  7. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  8. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  9. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  10. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  11. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  12. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  13. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  14. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  15. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  16. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  17. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  18. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -2
  19. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -2
  20. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  21. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  22. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  23. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -2
  34. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -2
  43. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -2
  46. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -2
  50. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -2
  51. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  52. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/NormalModuleReplacementPlugin.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 +1 -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/types.d.ts +2 -0
  75. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  76. package/dist/exports.d.ts +1 -1
  77. package/dist/index.js +40 -38
  78. package/dist/schema/config.d.ts +4 -0
  79. package/dist/schema/loaders.d.ts +1 -0
  80. package/dist/worker.js +3 -3
  81. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -728,7 +728,7 @@ for(var __webpack_i__ in (()=>{
728
728
  static STAGE_BASIC = 5;
729
729
  static STAGE_ATTACH = 10;
730
730
  static STAGE_TRIGGER = 20;
731
- static __to_binding(compilation, module) {
731
+ static __to_binding(module) {
732
732
  return {
733
733
  name: module.name,
734
734
  stage: module.stage,
@@ -1518,7 +1518,7 @@ for(var __webpack_i__ in (()=>{
1518
1518
  afterProcessAssets: new lite_tapable_namespaceObject.SyncHook([
1519
1519
  "assets"
1520
1520
  ]),
1521
- additionalAssets: ((name, stage, getArgs, code)=>{
1521
+ additionalAssets: ((name, stage, getArgs)=>{
1522
1522
  let errorMessage = (reason)=>`Can't automatically convert plugin using Compilation.hooks.${name} to Compilation.hooks.processAssets because ${reason}.
1523
1523
  BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a single Compilation.hooks.processAssets hook.`, getOptions = (options)=>{
1524
1524
  let isString = "string" == typeof options;
@@ -1879,7 +1879,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
1879
1879
  this.#rebuildModuleTask.exec(module.identifier(), f);
1880
1880
  }
1881
1881
  addRuntimeModule(chunk, runtimeModule) {
1882
- runtimeModule.attach(this, chunk, this.chunkGraph), this.#inner.addRuntimeModule(chunk, RuntimeModule.__to_binding(this, runtimeModule));
1882
+ runtimeModule.attach(this, chunk, this.chunkGraph), this.#inner.addRuntimeModule(chunk, RuntimeModule.__to_binding(runtimeModule));
1883
1883
  }
1884
1884
  addInclude(context, dependency, options, callback) {
1885
1885
  this.#addIncludeDispatcher.call(context, dependency, options, callback);
@@ -2167,14 +2167,14 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
2167
2167
  class DeterministicChunkIdsPlugin extends builtin_plugin_base.Xj {
2168
2168
  name = binding_.BuiltinPluginName.DeterministicChunkIdsPlugin;
2169
2169
  affectedHooks = "compilation";
2170
- raw(compiler) {
2170
+ raw() {
2171
2171
  return (0, builtin_plugin_base.no)(this.name, void 0);
2172
2172
  }
2173
2173
  }
2174
2174
  class DeterministicModuleIdsPlugin extends builtin_plugin_base.Xj {
2175
2175
  name = binding_.BuiltinPluginName.DeterministicModuleIdsPlugin;
2176
2176
  affectedHooks = "compilation";
2177
- raw(compiler) {
2177
+ raw() {
2178
2178
  return (0, builtin_plugin_base.no)(this.name, void 0);
2179
2179
  }
2180
2180
  }
@@ -2749,10 +2749,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2749
2749
  }
2750
2750
  }
2751
2751
  class Hash {
2752
- update(data, inputEncoding) {
2752
+ update() {
2753
2753
  throw new AbstractMethodError();
2754
2754
  }
2755
- digest(encoding) {
2755
+ digest() {
2756
2756
  throw new AbstractMethodError();
2757
2757
  }
2758
2758
  }
@@ -2869,7 +2869,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2869
2869
  constructor(){
2870
2870
  super(), this.string = "";
2871
2871
  }
2872
- update(data, inputEncoding) {
2872
+ update(data) {
2873
2873
  let normalizedData;
2874
2874
  return (normalizedData = Buffer.isBuffer(data) ? data.toString("utf-8") : data).startsWith("debug-digest-") && (normalizedData = Buffer.from(normalizedData.slice(13), "hex").toString()), this.string += `[${normalizedData}](${Error().stack?.split("\n", 3)[2]})\n`, this;
2875
2875
  }
@@ -3954,7 +3954,8 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3954
3954
  importDynamic: parser.importDynamic,
3955
3955
  commonjsMagicComments: parser.commonjsMagicComments,
3956
3956
  inlineConst: parser.inlineConst,
3957
- typeReexportsPresence: parser.typeReexportsPresence
3957
+ typeReexportsPresence: parser.typeReexportsPresence,
3958
+ jsx: parser.jsx
3958
3959
  };
3959
3960
  }
3960
3961
  function getRawCssParserOptions(parser) {
@@ -4146,7 +4147,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4146
4147
  constructor(global){
4147
4148
  super(), this.global = global;
4148
4149
  }
4149
- raw(compiler) {
4150
+ raw() {
4150
4151
  return (0, builtin_plugin_base.no)(this.name, this.global);
4151
4152
  }
4152
4153
  }
@@ -7378,7 +7379,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7378
7379
  constructor(deterministic){
7379
7380
  super(), this.deterministic = deterministic;
7380
7381
  }
7381
- raw(compiler) {
7382
+ raw() {
7382
7383
  return (0, builtin_plugin_base.no)(this.name, this.deterministic);
7383
7384
  }
7384
7385
  }
@@ -7386,7 +7387,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7386
7387
  class ModuleConcatenationPlugin extends builtin_plugin_base.Xj {
7387
7388
  name = binding_.BuiltinPluginName.ModuleConcatenationPlugin;
7388
7389
  affectedHooks = "compilation";
7389
- raw(compiler) {
7390
+ raw() {
7390
7391
  return (0, builtin_plugin_base.no)(this.name, void 0);
7391
7392
  }
7392
7393
  }
@@ -7394,14 +7395,14 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7394
7395
  class NaturalChunkIdsPlugin extends builtin_plugin_base.Xj {
7395
7396
  name = binding_.BuiltinPluginName.NaturalChunkIdsPlugin;
7396
7397
  affectedHooks = "compilation";
7397
- raw(compiler) {
7398
+ raw() {
7398
7399
  return (0, builtin_plugin_base.no)(this.name, void 0);
7399
7400
  }
7400
7401
  }
7401
7402
  class NaturalModuleIdsPlugin extends builtin_plugin_base.Xj {
7402
7403
  name = binding_.BuiltinPluginName.NaturalModuleIdsPlugin;
7403
7404
  affectedHooks = "compilation";
7404
- raw(compiler) {
7405
+ raw() {
7405
7406
  return (0, builtin_plugin_base.no)(this.name, void 0);
7406
7407
  }
7407
7408
  }
@@ -8606,7 +8607,6 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8606
8607
  "./src"
8607
8608
  ]);
8608
8609
  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), !1 === options.cache && (options.experiments.cache = !1), applyExperimentsDefaults(options.experiments, {
8609
- production,
8610
8610
  development
8611
8611
  }), applyOptimizationDefaults(options.optimization, {
8612
8612
  production,
@@ -8651,15 +8651,15 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8651
8651
  defaults_F(infrastructureLogging, "stream", ()=>process.stderr);
8652
8652
  let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
8653
8653
  D(infrastructureLogging, "level", "info"), D(infrastructureLogging, "debug", !1), D(infrastructureLogging, "colors", tty), D(infrastructureLogging, "appendOnly", !tty);
8654
- }, applyExperimentsDefaults = (experiments, { production, development })=>{
8654
+ }, applyExperimentsDefaults = (experiments, { development })=>{
8655
8655
  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", !1), 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);
8656
8656
  }, applybundlerInfoDefaults = (rspackFuture, library)=>{
8657
- "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.7-canary-a3406c0a-20250922173625"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
8657
+ "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.8-canary-6c1a40e3-20250925175235"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
8658
8658
  }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
8659
8659
  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, { usedExports, inlineConst })=>{
8660
8660
  D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !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", [
8661
8661
  "..."
8662
- ]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant");
8662
+ ]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant"), D(parserOptions, "jsx", !1);
8663
8663
  })(module.parser.javascript, {
8664
8664
  usedExports,
8665
8665
  inlineConst
@@ -9402,7 +9402,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
9402
9402
  }
9403
9403
  let printGeneratedCodeForStack = (moduleId, code)=>{
9404
9404
  let lines = code.split("\n"), n = `${lines.length}`.length;
9405
- return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i, lines)=>{
9405
+ return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i)=>{
9406
9406
  let iStr = `${i + 1}`;
9407
9407
  return `${" ".repeat(n - iStr.length)}${iStr} | ${line}`;
9408
9408
  }).join("\n")}`;
@@ -10298,7 +10298,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
10298
10298
  });
10299
10299
  }
10300
10300
  }
10301
- let CORE_VERSION = "1.5.7-canary-a3406c0a-20250922173625", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
10301
+ let CORE_VERSION = "1.5.8-canary-6c1a40e3-20250925175235", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
10302
10302
 
10303
10303
  Help:
10304
10304
  Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
@@ -11311,7 +11311,7 @@ Help:
11311
11311
  };
11312
11312
  })
11313
11313
  }),
11314
- ...((getCompiler, createTap, createMapTap)=>{
11314
+ ...((getCompiler, createTap)=>{
11315
11315
  let getOptions = (uid)=>((compilation, uid)=>{
11316
11316
  if (!(compilation instanceof Compilation)) throw TypeError("The 'compilation' argument must be an instance of Compilation");
11317
11317
  return compilationOptionsMap.get(compilation)?.[uid];
@@ -11396,7 +11396,7 @@ Help:
11396
11396
  };
11397
11397
  })
11398
11398
  };
11399
- })(getCompiler7, createTap6, 0),
11399
+ })(getCompiler7, createTap6, createMapTap2),
11400
11400
  ...(getCompiler5 = getCompiler7, {
11401
11401
  registerRuntimePluginCreateScriptTaps: (createTap4 = createTap6)(binding_default().RegisterJsTapKind.RuntimePluginCreateScript, function() {
11402
11402
  return RuntimePlugin.getCompilationHooks(getCompiler5().__internal__get_compilation()).createScript;
@@ -11582,7 +11582,7 @@ Help:
11582
11582
  obj.children = this.stats.map((stat, idx)=>{
11583
11583
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
11584
11584
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
11585
- }), childOptions.version && (obj.rspackVersion = "1.5.7-canary-a3406c0a-20250922173625", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
11585
+ }), childOptions.version && (obj.rspackVersion = "1.5.8-canary-6c1a40e3-20250925175235", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
11586
11586
  let mapError = (j, obj)=>({
11587
11587
  ...obj,
11588
11588
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -12478,7 +12478,7 @@ Help:
12478
12478
  object.hash = context.getStatsCompilation(compilation).hash;
12479
12479
  },
12480
12480
  version: (object)=>{
12481
- object.version = "5.75.0", object.rspackVersion = "1.5.7-canary-a3406c0a-20250922173625";
12481
+ object.version = "5.75.0", object.rspackVersion = "1.5.8-canary-6c1a40e3-20250925175235";
12482
12482
  },
12483
12483
  env: (object, _compilation, _context, { _env })=>{
12484
12484
  object.env = _env;
@@ -12540,7 +12540,7 @@ Help:
12540
12540
  return chunk && 1 === chunk.files.size && (!chunkGroupAuxiliary || 0 === chunk.auxiliaryFiles.size);
12541
12541
  })) || (object.entrypoints = factory.create(`${type}.entrypoints`, array, context));
12542
12542
  },
12543
- chunkGroups: (object, compilation, context, { chunkGroupAuxiliary, chunkGroupChildren }, factory)=>{
12543
+ chunkGroups: (object, compilation, context, _, factory)=>{
12544
12544
  let { type, getStatsCompilation } = context, namedChunkGroups = getStatsCompilation(compilation).namedChunkGroups.map((cg)=>({
12545
12545
  name: cg.name,
12546
12546
  chunkGroup: cg
@@ -12733,7 +12733,7 @@ Help:
12733
12733
  error: EXTRACT_ERROR,
12734
12734
  warning: EXTRACT_ERROR,
12735
12735
  moduleTraceItem: {
12736
- _: (object, { origin, module, dependencies }, context, { requestShortener }, factory)=>{
12736
+ _: (object, { origin, module, dependencies }, context, _, factory)=>{
12737
12737
  let { type } = context;
12738
12738
  origin.moduleDescriptor && (object.originIdentifier = origin.moduleDescriptor.identifier, object.originName = origin.moduleDescriptor.name), module.moduleDescriptor && (object.moduleIdentifier = module.moduleDescriptor.identifier, object.moduleName = module.moduleDescriptor.name), object.dependencies = factory.create(`${type}.dependencies`, dependencies, context);
12739
12739
  },
@@ -12899,7 +12899,7 @@ Help:
12899
12899
  chunkGroups: OFF_FOR_TO_STRING,
12900
12900
  chunkGroupAuxiliary: OFF_FOR_TO_STRING,
12901
12901
  chunkGroupChildren: OFF_FOR_TO_STRING,
12902
- chunkGroupMaxAssets: (o, { forToString })=>forToString ? 5 : 1 / 0,
12902
+ chunkGroupMaxAssets: (_, { forToString })=>forToString ? 5 : 1 / 0,
12903
12903
  chunks: OFF_FOR_TO_STRING,
12904
12904
  chunkRelations: OFF_FOR_TO_STRING,
12905
12905
  chunkModules: ({ all, modules })=>!1 !== all && (!0 === all || !modules),
@@ -12914,16 +12914,16 @@ Help:
12914
12914
  groupModulesByAttributes: ON_FOR_TO_STRING,
12915
12915
  groupModulesByPath: ON_FOR_TO_STRING,
12916
12916
  groupModulesByExtension: ON_FOR_TO_STRING,
12917
- modulesSpace: (o, { forToString })=>forToString ? 15 : 1 / 0,
12918
- chunkModulesSpace: (o, { forToString })=>forToString ? 10 : 1 / 0,
12919
- nestedModulesSpace: (o, { forToString })=>forToString ? 10 : 1 / 0,
12917
+ modulesSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
12918
+ chunkModulesSpace: (_, { forToString })=>forToString ? 10 : 1 / 0,
12919
+ nestedModulesSpace: (_, { forToString })=>forToString ? 10 : 1 / 0,
12920
12920
  relatedAssets: OFF_FOR_TO_STRING,
12921
12921
  groupAssetsByEmitStatus: ON_FOR_TO_STRING,
12922
12922
  groupAssetsByInfo: ON_FOR_TO_STRING,
12923
12923
  groupAssetsByPath: ON_FOR_TO_STRING,
12924
12924
  groupAssetsByExtension: ON_FOR_TO_STRING,
12925
12925
  groupAssetsByChunk: ON_FOR_TO_STRING,
12926
- assetsSpace: (o, { forToString })=>forToString ? 15 : 1 / 0,
12926
+ assetsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
12927
12927
  orphanModules: OFF_FOR_TO_STRING,
12928
12928
  runtimeModules: ({ all, runtime }, { forToString })=>void 0 !== runtime ? runtime : forToString ? !0 === all : !1 !== all,
12929
12929
  cachedModules: ({ all, cached }, { forToString })=>void 0 !== cached ? cached : forToString ? !0 === all : !1 !== all,
@@ -12931,7 +12931,7 @@ Help:
12931
12931
  depth: OFF_FOR_TO_STRING,
12932
12932
  cachedAssets: OFF_FOR_TO_STRING,
12933
12933
  reasons: OFF_FOR_TO_STRING,
12934
- reasonsSpace: (o, { forToString })=>forToString ? 15 : 1 / 0,
12934
+ reasonsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
12935
12935
  groupReasonsByOrigin: ON_FOR_TO_STRING,
12936
12936
  usedExports: OFF_FOR_TO_STRING,
12937
12937
  providedExports: OFF_FOR_TO_STRING,
@@ -12993,7 +12993,7 @@ Help:
12993
12993
  compiler.hooks.compilation.tap("DefaultStatsPresetPlugin", (compilation)=>{
12994
12994
  for (let key of Object.keys(NAMED_PRESETS)){
12995
12995
  let defaults = NAMED_PRESETS[key];
12996
- compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options, context)=>{
12996
+ compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options)=>{
12997
12997
  applyDefaults(options, defaults);
12998
12998
  });
12999
12999
  }
@@ -13055,7 +13055,7 @@ Help:
13055
13055
  },
13056
13056
  "asset.type": (type)=>type,
13057
13057
  "asset.name": (name, { formatFilename, asset: { isOverSizeLimit } })=>formatFilename(name, isOverSizeLimit),
13058
- "asset.size": (size, { asset: { isOverSizeLimit }, yellow, green, formatSize })=>isOverSizeLimit ? yellow(formatSize(size)) : formatSize(size),
13058
+ "asset.size": (size, { asset: { isOverSizeLimit }, yellow, formatSize })=>isOverSizeLimit ? yellow(formatSize(size)) : formatSize(size),
13059
13059
  "asset.emitted": (emitted, { green, formatFlag })=>emitted ? green(formatFlag("emitted")) : void 0,
13060
13060
  "asset.comparedForEmit": (comparedForEmit, { yellow, formatFlag })=>comparedForEmit ? yellow(formatFlag("compared for emit")) : void 0,
13061
13061
  "asset.cached": (cached, { green, formatFlag })=>cached ? green(formatFlag("cached")) : void 0,
@@ -14527,7 +14527,8 @@ Help:
14527
14527
  }).partial()),
14528
14528
  runtime: schemas_enum([
14529
14529
  "automatic",
14530
- "classic"
14530
+ "classic",
14531
+ "preserve"
14531
14532
  ]),
14532
14533
  importSource: schemas_string()
14533
14534
  }).partial(), ZodSwcConstModulesConfig = strictObject({
@@ -15015,7 +15016,7 @@ Help:
15015
15016
  "no-tolerant",
15016
15017
  "tolerant",
15017
15018
  "tolerant-no-check"
15018
- ]), javascriptParserOptions = strictObject({
15019
+ ]), jsx = schemas_boolean(), javascriptParserOptions = strictObject({
15019
15020
  dynamicImportMode: dynamicImportMode,
15020
15021
  dynamicImportPreload: dynamicImportPreload,
15021
15022
  dynamicImportPrefetch: dynamicImportPrefetch,
@@ -15038,7 +15039,8 @@ Help:
15038
15039
  requireResolve: requireResolve,
15039
15040
  importDynamic: importDynamic,
15040
15041
  inlineConst: inlineConst,
15041
- typeReexportsPresence: typeReexportsPresence
15042
+ typeReexportsPresence: typeReexportsPresence,
15043
+ jsx: jsx
15042
15044
  }).partial(), parserOptionsByModuleTypeKnown = strictObject({
15043
15045
  asset: assetParserOptions,
15044
15046
  css: cssParserOptions,
@@ -15794,7 +15796,7 @@ Help:
15794
15796
  let _options = JSON.stringify(options || {});
15795
15797
  return binding_default().transform(source, _options);
15796
15798
  }
15797
- let exports_rspackVersion = "1.5.7-canary-a3406c0a-20250922173625", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
15799
+ let exports_rspackVersion = "1.5.8-canary-6c1a40e3-20250925175235", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
15798
15800
  getNormalizedRspackOptions: getNormalizedRspackOptions,
15799
15801
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
15800
15802
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
@@ -773,6 +773,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
773
773
  tolerant: "tolerant";
774
774
  "tolerant-no-check": "tolerant-no-check";
775
775
  }>>;
776
+ jsx: z.ZodOptional<z.ZodBoolean>;
776
777
  }, z.core.$strict>>;
777
778
  "javascript/auto": z.ZodOptional<z.ZodObject<{
778
779
  dynamicImportMode: z.ZodOptional<z.ZodEnum<{
@@ -826,6 +827,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
826
827
  tolerant: "tolerant";
827
828
  "tolerant-no-check": "tolerant-no-check";
828
829
  }>>;
830
+ jsx: z.ZodOptional<z.ZodBoolean>;
829
831
  }, z.core.$strict>>;
830
832
  "javascript/dynamic": z.ZodOptional<z.ZodObject<{
831
833
  dynamicImportMode: z.ZodOptional<z.ZodEnum<{
@@ -879,6 +881,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
879
881
  tolerant: "tolerant";
880
882
  "tolerant-no-check": "tolerant-no-check";
881
883
  }>>;
884
+ jsx: z.ZodOptional<z.ZodBoolean>;
882
885
  }, z.core.$strict>>;
883
886
  "javascript/esm": z.ZodOptional<z.ZodObject<{
884
887
  dynamicImportMode: z.ZodOptional<z.ZodEnum<{
@@ -932,6 +935,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
932
935
  tolerant: "tolerant";
933
936
  "tolerant-no-check": "tolerant-no-check";
934
937
  }>>;
938
+ jsx: z.ZodOptional<z.ZodBoolean>;
935
939
  }, z.core.$strict>>;
936
940
  }, z.core.$strict>>;
937
941
  generator: z.ZodOptional<z.ZodObject<{
@@ -90,6 +90,7 @@ export declare const getZodSwcLoaderOptionsSchema: () => z.ZodObject<{
90
90
  emitFullSignatures: z.ZodOptional<z.ZodBoolean>;
91
91
  }, z.core.$strict>]>>;
92
92
  runtime: z.ZodOptional<z.ZodEnum<{
93
+ preserve: "preserve";
93
94
  automatic: "automatic";
94
95
  classic: "classic";
95
96
  }>>;
package/dist/worker.js CHANGED
@@ -242,10 +242,10 @@ var __webpack_modules__ = {
242
242
  }
243
243
  }
244
244
  class Hash {
245
- update(data, inputEncoding) {
245
+ update() {
246
246
  throw new AbstractMethodError();
247
247
  }
248
- digest(encoding) {
248
+ digest() {
249
249
  throw new AbstractMethodError();
250
250
  }
251
251
  }
@@ -362,7 +362,7 @@ var __webpack_modules__ = {
362
362
  constructor(){
363
363
  super(), this.string = "";
364
364
  }
365
- update(data, inputEncoding) {
365
+ update(data) {
366
366
  let normalizedData;
367
367
  return (normalizedData = Buffer.isBuffer(data) ? data.toString("utf-8") : data).startsWith("debug-digest-") && (normalizedData = Buffer.from(normalizedData.slice(13), "hex").toString()), this.string += `[${normalizedData}](${Error().stack?.split("\n", 3)[2]})\n`, this;
368
368
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/core",
3
- "version": "1.5.7-canary-a3406c0a-20250922173625",
3
+ "version": "1.5.8-canary-6c1a40e3-20250925175235",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -47,7 +47,7 @@
47
47
  "enhanced-resolve": "5.18.3",
48
48
  "glob-to-regexp": "^0.4.1",
49
49
  "graceful-fs": "^4.2.11",
50
- "memfs": "4.38.2",
50
+ "memfs": "4.46.0",
51
51
  "prebundle": "^1.4.2",
52
52
  "tinypool": "^1.1.1",
53
53
  "tsx": "^4.20.5",
@@ -60,7 +60,7 @@
60
60
  "dependencies": {
61
61
  "@module-federation/runtime-tools": "0.18.0",
62
62
  "@rspack/lite-tapable": "1.0.1",
63
- "@rspack/binding": "npm:@rspack-canary/binding@1.5.7-canary-a3406c0a-20250922173625"
63
+ "@rspack/binding": "npm:@rspack-canary/binding@1.5.8-canary-6c1a40e3-20250925175235"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@swc/helpers": ">=0.5.1"