@rspack-canary/core 1.5.8-canary-e350b761-20250924173613 → 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.
@@ -13,7 +13,7 @@ export declare class RuntimeModule {
13
13
  static STAGE_BASIC: RuntimeModuleStage;
14
14
  static STAGE_ATTACH: RuntimeModuleStage;
15
15
  static STAGE_TRIGGER: RuntimeModuleStage;
16
- static __to_binding(compilation: Compilation, module: RuntimeModule): JsAddingRuntimeModule;
16
+ static __to_binding(module: RuntimeModule): JsAddingRuntimeModule;
17
17
  private _name;
18
18
  private _stage;
19
19
  fullHash: boolean;
@@ -1,8 +1,7 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "./base";
4
3
  export declare class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
5
4
  name: BuiltinPluginName;
6
5
  affectedHooks: "compilation";
7
- raw(compiler: Compiler): BuiltinPlugin;
6
+ raw(): BuiltinPlugin;
8
7
  }
@@ -1,8 +1,7 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "./base";
4
3
  export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
5
4
  name: BuiltinPluginName;
6
5
  affectedHooks: "compilation";
7
- raw(compiler: Compiler): BuiltinPlugin;
6
+ raw(): BuiltinPlugin;
8
7
  }
@@ -1,10 +1,9 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "./base";
4
3
  export declare class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
5
4
  private global;
6
5
  name: BuiltinPluginName;
7
6
  affectedHooks: "compilation";
8
7
  constructor(global: boolean);
9
- raw(compiler: Compiler): BuiltinPlugin;
8
+ raw(): BuiltinPlugin;
10
9
  }
@@ -1,10 +1,9 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "./base";
4
3
  export declare class MangleExportsPlugin extends RspackBuiltinPlugin {
5
4
  private deterministic;
6
5
  name: BuiltinPluginName;
7
6
  affectedHooks: "compilation";
8
7
  constructor(deterministic: boolean);
9
- raw(compiler: Compiler): BuiltinPlugin;
8
+ raw(): BuiltinPlugin;
10
9
  }
@@ -1,8 +1,7 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "./base";
4
3
  export declare class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
5
4
  name: BuiltinPluginName;
6
5
  affectedHooks: "compilation";
7
- raw(compiler: Compiler): BuiltinPlugin;
6
+ raw(): BuiltinPlugin;
8
7
  }
@@ -1,8 +1,7 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "./base";
4
3
  export declare class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
5
4
  name: BuiltinPluginName;
6
5
  affectedHooks: "compilation";
7
- raw(compiler: Compiler): BuiltinPlugin;
6
+ raw(): BuiltinPlugin;
8
7
  }
@@ -1,8 +1,7 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "./base";
4
3
  export declare class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
5
4
  name: BuiltinPluginName;
6
5
  affectedHooks: "compilation";
7
- raw(compiler: Compiler): BuiltinPlugin;
6
+ raw(): BuiltinPlugin;
8
7
  }
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
  }
@@ -4147,7 +4147,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4147
4147
  constructor(global){
4148
4148
  super(), this.global = global;
4149
4149
  }
4150
- raw(compiler) {
4150
+ raw() {
4151
4151
  return (0, builtin_plugin_base.no)(this.name, this.global);
4152
4152
  }
4153
4153
  }
@@ -7379,7 +7379,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7379
7379
  constructor(deterministic){
7380
7380
  super(), this.deterministic = deterministic;
7381
7381
  }
7382
- raw(compiler) {
7382
+ raw() {
7383
7383
  return (0, builtin_plugin_base.no)(this.name, this.deterministic);
7384
7384
  }
7385
7385
  }
@@ -7387,7 +7387,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7387
7387
  class ModuleConcatenationPlugin extends builtin_plugin_base.Xj {
7388
7388
  name = binding_.BuiltinPluginName.ModuleConcatenationPlugin;
7389
7389
  affectedHooks = "compilation";
7390
- raw(compiler) {
7390
+ raw() {
7391
7391
  return (0, builtin_plugin_base.no)(this.name, void 0);
7392
7392
  }
7393
7393
  }
@@ -7395,14 +7395,14 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7395
7395
  class NaturalChunkIdsPlugin extends builtin_plugin_base.Xj {
7396
7396
  name = binding_.BuiltinPluginName.NaturalChunkIdsPlugin;
7397
7397
  affectedHooks = "compilation";
7398
- raw(compiler) {
7398
+ raw() {
7399
7399
  return (0, builtin_plugin_base.no)(this.name, void 0);
7400
7400
  }
7401
7401
  }
7402
7402
  class NaturalModuleIdsPlugin extends builtin_plugin_base.Xj {
7403
7403
  name = binding_.BuiltinPluginName.NaturalModuleIdsPlugin;
7404
7404
  affectedHooks = "compilation";
7405
- raw(compiler) {
7405
+ raw() {
7406
7406
  return (0, builtin_plugin_base.no)(this.name, void 0);
7407
7407
  }
7408
7408
  }
@@ -8607,7 +8607,6 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8607
8607
  "./src"
8608
8608
  ]);
8609
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, {
8610
- production,
8611
8610
  development
8612
8611
  }), applyOptimizationDefaults(options.optimization, {
8613
8612
  production,
@@ -8652,10 +8651,10 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8652
8651
  defaults_F(infrastructureLogging, "stream", ()=>process.stderr);
8653
8652
  let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
8654
8653
  D(infrastructureLogging, "level", "info"), D(infrastructureLogging, "debug", !1), D(infrastructureLogging, "colors", tty), D(infrastructureLogging, "appendOnly", !tty);
8655
- }, applyExperimentsDefaults = (experiments, { production, development })=>{
8654
+ }, applyExperimentsDefaults = (experiments, { development })=>{
8656
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);
8657
8656
  }, applybundlerInfoDefaults = (rspackFuture, library)=>{
8658
- "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.8-canary-e350b761-20250924173613"), 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)));
8659
8658
  }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
8660
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 })=>{
8661
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", [
@@ -9403,7 +9402,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
9403
9402
  }
9404
9403
  let printGeneratedCodeForStack = (moduleId, code)=>{
9405
9404
  let lines = code.split("\n"), n = `${lines.length}`.length;
9406
- return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i, lines)=>{
9405
+ return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i)=>{
9407
9406
  let iStr = `${i + 1}`;
9408
9407
  return `${" ".repeat(n - iStr.length)}${iStr} | ${line}`;
9409
9408
  }).join("\n")}`;
@@ -10299,7 +10298,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
10299
10298
  });
10300
10299
  }
10301
10300
  }
10302
- let CORE_VERSION = "1.5.8-canary-e350b761-20250924173613", 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.
10303
10302
 
10304
10303
  Help:
10305
10304
  Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
@@ -11312,7 +11311,7 @@ Help:
11312
11311
  };
11313
11312
  })
11314
11313
  }),
11315
- ...((getCompiler, createTap, createMapTap)=>{
11314
+ ...((getCompiler, createTap)=>{
11316
11315
  let getOptions = (uid)=>((compilation, uid)=>{
11317
11316
  if (!(compilation instanceof Compilation)) throw TypeError("The 'compilation' argument must be an instance of Compilation");
11318
11317
  return compilationOptionsMap.get(compilation)?.[uid];
@@ -11397,7 +11396,7 @@ Help:
11397
11396
  };
11398
11397
  })
11399
11398
  };
11400
- })(getCompiler7, createTap6, 0),
11399
+ })(getCompiler7, createTap6, createMapTap2),
11401
11400
  ...(getCompiler5 = getCompiler7, {
11402
11401
  registerRuntimePluginCreateScriptTaps: (createTap4 = createTap6)(binding_default().RegisterJsTapKind.RuntimePluginCreateScript, function() {
11403
11402
  return RuntimePlugin.getCompilationHooks(getCompiler5().__internal__get_compilation()).createScript;
@@ -11583,7 +11582,7 @@ Help:
11583
11582
  obj.children = this.stats.map((stat, idx)=>{
11584
11583
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
11585
11584
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
11586
- }), childOptions.version && (obj.rspackVersion = "1.5.8-canary-e350b761-20250924173613", 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(""));
11587
11586
  let mapError = (j, obj)=>({
11588
11587
  ...obj,
11589
11588
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -12479,7 +12478,7 @@ Help:
12479
12478
  object.hash = context.getStatsCompilation(compilation).hash;
12480
12479
  },
12481
12480
  version: (object)=>{
12482
- object.version = "5.75.0", object.rspackVersion = "1.5.8-canary-e350b761-20250924173613";
12481
+ object.version = "5.75.0", object.rspackVersion = "1.5.8-canary-6c1a40e3-20250925175235";
12483
12482
  },
12484
12483
  env: (object, _compilation, _context, { _env })=>{
12485
12484
  object.env = _env;
@@ -12541,7 +12540,7 @@ Help:
12541
12540
  return chunk && 1 === chunk.files.size && (!chunkGroupAuxiliary || 0 === chunk.auxiliaryFiles.size);
12542
12541
  })) || (object.entrypoints = factory.create(`${type}.entrypoints`, array, context));
12543
12542
  },
12544
- chunkGroups: (object, compilation, context, { chunkGroupAuxiliary, chunkGroupChildren }, factory)=>{
12543
+ chunkGroups: (object, compilation, context, _, factory)=>{
12545
12544
  let { type, getStatsCompilation } = context, namedChunkGroups = getStatsCompilation(compilation).namedChunkGroups.map((cg)=>({
12546
12545
  name: cg.name,
12547
12546
  chunkGroup: cg
@@ -12734,7 +12733,7 @@ Help:
12734
12733
  error: EXTRACT_ERROR,
12735
12734
  warning: EXTRACT_ERROR,
12736
12735
  moduleTraceItem: {
12737
- _: (object, { origin, module, dependencies }, context, { requestShortener }, factory)=>{
12736
+ _: (object, { origin, module, dependencies }, context, _, factory)=>{
12738
12737
  let { type } = context;
12739
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);
12740
12739
  },
@@ -12900,7 +12899,7 @@ Help:
12900
12899
  chunkGroups: OFF_FOR_TO_STRING,
12901
12900
  chunkGroupAuxiliary: OFF_FOR_TO_STRING,
12902
12901
  chunkGroupChildren: OFF_FOR_TO_STRING,
12903
- chunkGroupMaxAssets: (o, { forToString })=>forToString ? 5 : 1 / 0,
12902
+ chunkGroupMaxAssets: (_, { forToString })=>forToString ? 5 : 1 / 0,
12904
12903
  chunks: OFF_FOR_TO_STRING,
12905
12904
  chunkRelations: OFF_FOR_TO_STRING,
12906
12905
  chunkModules: ({ all, modules })=>!1 !== all && (!0 === all || !modules),
@@ -12915,16 +12914,16 @@ Help:
12915
12914
  groupModulesByAttributes: ON_FOR_TO_STRING,
12916
12915
  groupModulesByPath: ON_FOR_TO_STRING,
12917
12916
  groupModulesByExtension: ON_FOR_TO_STRING,
12918
- modulesSpace: (o, { forToString })=>forToString ? 15 : 1 / 0,
12919
- chunkModulesSpace: (o, { forToString })=>forToString ? 10 : 1 / 0,
12920
- 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,
12921
12920
  relatedAssets: OFF_FOR_TO_STRING,
12922
12921
  groupAssetsByEmitStatus: ON_FOR_TO_STRING,
12923
12922
  groupAssetsByInfo: ON_FOR_TO_STRING,
12924
12923
  groupAssetsByPath: ON_FOR_TO_STRING,
12925
12924
  groupAssetsByExtension: ON_FOR_TO_STRING,
12926
12925
  groupAssetsByChunk: ON_FOR_TO_STRING,
12927
- assetsSpace: (o, { forToString })=>forToString ? 15 : 1 / 0,
12926
+ assetsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
12928
12927
  orphanModules: OFF_FOR_TO_STRING,
12929
12928
  runtimeModules: ({ all, runtime }, { forToString })=>void 0 !== runtime ? runtime : forToString ? !0 === all : !1 !== all,
12930
12929
  cachedModules: ({ all, cached }, { forToString })=>void 0 !== cached ? cached : forToString ? !0 === all : !1 !== all,
@@ -12932,7 +12931,7 @@ Help:
12932
12931
  depth: OFF_FOR_TO_STRING,
12933
12932
  cachedAssets: OFF_FOR_TO_STRING,
12934
12933
  reasons: OFF_FOR_TO_STRING,
12935
- reasonsSpace: (o, { forToString })=>forToString ? 15 : 1 / 0,
12934
+ reasonsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
12936
12935
  groupReasonsByOrigin: ON_FOR_TO_STRING,
12937
12936
  usedExports: OFF_FOR_TO_STRING,
12938
12937
  providedExports: OFF_FOR_TO_STRING,
@@ -12994,7 +12993,7 @@ Help:
12994
12993
  compiler.hooks.compilation.tap("DefaultStatsPresetPlugin", (compilation)=>{
12995
12994
  for (let key of Object.keys(NAMED_PRESETS)){
12996
12995
  let defaults = NAMED_PRESETS[key];
12997
- compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options, context)=>{
12996
+ compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options)=>{
12998
12997
  applyDefaults(options, defaults);
12999
12998
  });
13000
12999
  }
@@ -13056,7 +13055,7 @@ Help:
13056
13055
  },
13057
13056
  "asset.type": (type)=>type,
13058
13057
  "asset.name": (name, { formatFilename, asset: { isOverSizeLimit } })=>formatFilename(name, isOverSizeLimit),
13059
- "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),
13060
13059
  "asset.emitted": (emitted, { green, formatFlag })=>emitted ? green(formatFlag("emitted")) : void 0,
13061
13060
  "asset.comparedForEmit": (comparedForEmit, { yellow, formatFlag })=>comparedForEmit ? yellow(formatFlag("compared for emit")) : void 0,
13062
13061
  "asset.cached": (cached, { green, formatFlag })=>cached ? green(formatFlag("cached")) : void 0,
@@ -15797,7 +15796,7 @@ Help:
15797
15796
  let _options = JSON.stringify(options || {});
15798
15797
  return binding_default().transform(source, _options);
15799
15798
  }
15800
- let exports_rspackVersion = "1.5.8-canary-e350b761-20250924173613", 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 = {
15801
15800
  getNormalizedRspackOptions: getNormalizedRspackOptions,
15802
15801
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
15803
15802
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
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.8-canary-e350b761-20250924173613",
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.8-canary-e350b761-20250924173613"
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"