@rspack/core 1.1.5 → 1.1.6

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.
package/dist/index.js CHANGED
@@ -5415,12 +5415,26 @@ var DeterministicChunkIdsPlugin = create2(
5415
5415
 
5416
5416
  // src/builtin-plugin/DeterministicModuleIdsPlugin.ts
5417
5417
  var import_binding21 = require("@rspack/binding");
5418
- var DeterministicModuleIdsPlugin = create2(
5419
- import_binding21.BuiltinPluginName.DeterministicModuleIdsPlugin,
5420
- () => {
5421
- },
5422
- "compilation"
5423
- );
5418
+ var DeterministicModuleIdsPlugin = class extends RspackBuiltinPlugin {
5419
+ constructor() {
5420
+ super(...arguments);
5421
+ this.name = import_binding21.BuiltinPluginName.DeterministicModuleIdsPlugin;
5422
+ this.affectedHooks = "compilation";
5423
+ }
5424
+ raw(compiler) {
5425
+ const incremental2 = compiler.options.experiments.incremental;
5426
+ const logger = compiler.getInfrastructureLogger(
5427
+ "rspack.DeterministicModuleIdsPlugin"
5428
+ );
5429
+ if (incremental2.moduleIds) {
5430
+ incremental2.moduleIds = false;
5431
+ logger.warn(
5432
+ "`optimization.moduleIds = 'deterministic'` can't be used with `incremental.moduleIds` as deterministic module ids is a global effect. `incremental.moduleIds` has been overridden to false."
5433
+ );
5434
+ }
5435
+ return createBuiltinPlugin(this.name, void 0);
5436
+ }
5437
+ };
5424
5438
 
5425
5439
  // src/builtin-plugin/DynamicEntryPlugin.ts
5426
5440
  var import_binding25 = require("@rspack/binding");
@@ -6244,7 +6258,7 @@ async function runLoaders(compiler, context2) {
6244
6258
  this.cacheable(false);
6245
6259
  }
6246
6260
  if (res.error) {
6247
- reject(new Error(err));
6261
+ reject(new Error(res.error));
6248
6262
  } else {
6249
6263
  resolve2(
6250
6264
  compiler.__internal__getModuleExecutionResult(res.id)
@@ -7391,6 +7405,8 @@ function getRawIncremental(incremental2) {
7391
7405
  providedExports: incremental2.providedExports,
7392
7406
  dependenciesDiagnostics: incremental2.dependenciesDiagnostics,
7393
7407
  buildChunkGraph: incremental2.buildChunkGraph,
7408
+ moduleIds: incremental2.moduleIds,
7409
+ chunkIds: incremental2.chunkIds,
7394
7410
  modulesHashes: incremental2.modulesHashes,
7395
7411
  modulesCodegen: incremental2.modulesCodegen,
7396
7412
  modulesRuntimeRequirements: incremental2.modulesRuntimeRequirements,
@@ -8606,6 +8622,8 @@ var applyExperimentsDefaults = (experiments3, { production }) => {
8606
8622
  D(experiments3.incremental, "providedExports", false);
8607
8623
  D(experiments3.incremental, "dependenciesDiagnostics", false);
8608
8624
  D(experiments3.incremental, "buildChunkGraph", false);
8625
+ D(experiments3.incremental, "moduleIds", false);
8626
+ D(experiments3.incremental, "chunkIds", false);
8609
8627
  D(experiments3.incremental, "modulesHashes", false);
8610
8628
  D(experiments3.incremental, "modulesCodegen", false);
8611
8629
  D(experiments3.incremental, "modulesRuntimeRequirements", false);
@@ -9038,6 +9056,7 @@ ${helpMessage}`
9038
9056
  "policyName",
9039
9057
  () => output2.uniqueName.replace(/[^a-zA-Z0-9\-#=_/@.%]+/g, "_") || "webpack"
9040
9058
  );
9059
+ D(trustedTypes2, "onPolicyCreationFailure", "stop");
9041
9060
  }
9042
9061
  const forEachEntry = (fn2) => {
9043
9062
  if (typeof entry2 === "function") {
@@ -9576,6 +9595,8 @@ var getNormalizedRspackOptions = (config2) => {
9576
9595
  inferAsyncModules: true,
9577
9596
  providedExports: true,
9578
9597
  buildChunkGraph: true,
9598
+ moduleIds: true,
9599
+ chunkIds: true,
9579
9600
  modulesHashes: true,
9580
9601
  modulesCodegen: true,
9581
9602
  modulesRuntimeRequirements: true,
@@ -9958,7 +9979,12 @@ var chunkLoadingGlobal = import_zod2.z.string();
9958
9979
  var enabledLibraryTypes = import_zod2.z.array(
9959
9980
  libraryType
9960
9981
  );
9961
- var clean = import_zod2.z.boolean();
9982
+ var clean = import_zod2.z.union([
9983
+ import_zod2.z.boolean(),
9984
+ import_zod2.z.strictObject({
9985
+ keep: import_zod2.z.string().optional()
9986
+ })
9987
+ ]);
9962
9988
  var outputModule = import_zod2.z.boolean();
9963
9989
  var strictModuleExceptionHandling = import_zod2.z.boolean();
9964
9990
  var strictModuleErrorHandling = import_zod2.z.boolean();
@@ -9975,7 +10001,8 @@ var enabledChunkLoadingTypes = import_zod2.z.array(
9975
10001
  var chunkFormat = import_zod2.z.literal(false).or(import_zod2.z.string());
9976
10002
  var workerPublicPath = import_zod2.z.string();
9977
10003
  var trustedTypes = import_zod2.z.strictObject({
9978
- policyName: import_zod2.z.string().optional()
10004
+ policyName: import_zod2.z.string().optional(),
10005
+ onPolicyCreationFailure: import_zod2.z.enum(["continue", "stop"]).optional()
9979
10006
  });
9980
10007
  var hashDigest = import_zod2.z.string();
9981
10008
  var hashDigestLength = import_zod2.z.number();
@@ -10448,8 +10475,18 @@ var externalItemFunctionData = import_zod2.z.strictObject({
10448
10475
  dependencyType: import_zod2.z.string().optional(),
10449
10476
  request: import_zod2.z.string().optional(),
10450
10477
  contextInfo: import_zod2.z.strictObject({
10451
- issuer: import_zod2.z.string()
10452
- }).optional()
10478
+ issuer: import_zod2.z.string(),
10479
+ issuerLayer: import_zod2.z.string().or(import_zod2.z.null()).optional()
10480
+ }).optional(),
10481
+ getResolve: import_zod2.z.function().returns(
10482
+ import_zod2.z.function().args(import_zod2.z.string(), import_zod2.z.string()).returns(import_zod2.z.promise(import_zod2.z.string())).or(
10483
+ import_zod2.z.function().args(
10484
+ import_zod2.z.string(),
10485
+ import_zod2.z.string(),
10486
+ import_zod2.z.function().args(import_zod2.z.instanceof(Error).optional(), import_zod2.z.string().optional()).returns(import_zod2.z.void())
10487
+ ).returns(import_zod2.z.void())
10488
+ )
10489
+ ).optional()
10453
10490
  });
10454
10491
  var externalItem = import_zod2.z.string().or(import_zod2.z.instanceof(RegExp)).or(externalItemObjectUnknown).or(
10455
10492
  import_zod2.z.function().args(
@@ -10753,6 +10790,8 @@ var incremental = import_zod2.z.strictObject({
10753
10790
  providedExports: import_zod2.z.boolean().optional(),
10754
10791
  dependenciesDiagnostics: import_zod2.z.boolean().optional(),
10755
10792
  buildChunkGraph: import_zod2.z.boolean().optional(),
10793
+ moduleIds: import_zod2.z.boolean().optional(),
10794
+ chunkIds: import_zod2.z.boolean().optional(),
10756
10795
  modulesHashes: import_zod2.z.boolean().optional(),
10757
10796
  modulesCodegen: import_zod2.z.boolean().optional(),
10758
10797
  modulesRuntimeRequirements: import_zod2.z.boolean().optional(),
@@ -10982,29 +11021,126 @@ var EvalSourceMapDevToolPlugin = create2(
10982
11021
 
10983
11022
  // src/builtin-plugin/ExternalsPlugin.ts
10984
11023
  var import_binding33 = require("@rspack/binding");
10985
- var ExternalsPlugin = create2(
10986
- import_binding33.BuiltinPluginName.ExternalsPlugin,
10987
- (type, externals2) => {
10988
- return {
11024
+
11025
+ // src/Resolver.ts
11026
+ function isString(value) {
11027
+ return typeof value === "string";
11028
+ }
11029
+ var Resolver = class _Resolver {
11030
+ constructor(binding3) {
11031
+ this.binding = binding3;
11032
+ }
11033
+ resolveSync(context2, path10, request) {
11034
+ return this.binding.resolveSync(path10, request);
11035
+ }
11036
+ resolve(context2, path10, request, resolveContext, callback) {
11037
+ try {
11038
+ const res = this.binding.resolveSync(path10, request);
11039
+ callback(null, res);
11040
+ } catch (err) {
11041
+ callback(err);
11042
+ }
11043
+ }
11044
+ withOptions({
11045
+ dependencyCategory,
11046
+ resolveToContext,
11047
+ ...resolve2
11048
+ }) {
11049
+ const rawResolve = getRawResolve(resolve2);
11050
+ if (Array.isArray(rawResolve.restrictions)) {
11051
+ rawResolve.restrictions = rawResolve.restrictions.filter(isString);
11052
+ }
11053
+ const binding3 = this.binding.withOptions({
11054
+ dependencyCategory,
11055
+ resolveToContext,
11056
+ ...rawResolve
11057
+ });
11058
+ return new _Resolver(binding3);
11059
+ }
11060
+ };
11061
+
11062
+ // src/builtin-plugin/ExternalsPlugin.ts
11063
+ var ExternalsPlugin = class extends RspackBuiltinPlugin {
11064
+ constructor(type, externals2) {
11065
+ super();
11066
+ this.type = type;
11067
+ this.externals = externals2;
11068
+ this.name = import_binding33.BuiltinPluginName.ExternalsPlugin;
11069
+ }
11070
+ raw(compiler) {
11071
+ const { type, externals: externals2 } = this;
11072
+ const raw = {
10989
11073
  type,
10990
- externals: (Array.isArray(externals2) ? externals2 : [externals2]).filter(Boolean).map(getRawExternalItem)
11074
+ externals: (Array.isArray(externals2) ? externals2 : [externals2]).filter(Boolean).map((item) => getRawExternalItem(compiler, item))
10991
11075
  };
11076
+ return createBuiltinPlugin(this.name, raw);
10992
11077
  }
10993
- );
10994
- function getRawExternalItem(item) {
11078
+ };
11079
+ function getRawExternalItem(compiler, item) {
10995
11080
  if (typeof item === "string" || item instanceof RegExp) {
10996
11081
  return item;
10997
11082
  }
10998
11083
  if (typeof item === "function") {
10999
11084
  return async (ctx) => {
11000
11085
  return await new Promise((resolve2, reject) => {
11001
- const promise = item(ctx, (err, result2, type) => {
11002
- if (err) reject(err);
11003
- resolve2({
11004
- result: getRawExternalItemValueFormFnResult(result2),
11005
- externalType: type
11006
- });
11007
- });
11086
+ const data = ctx.data();
11087
+ const promise = item(
11088
+ {
11089
+ request: data.request,
11090
+ dependencyType: data.dependencyType,
11091
+ context: data.context,
11092
+ contextInfo: {
11093
+ issuer: data.contextInfo.issuer,
11094
+ issuerLayer: data.contextInfo.issuerLayer ?? null
11095
+ },
11096
+ getResolve: function getResolve(options) {
11097
+ const resolver = new Resolver(ctx.getResolver());
11098
+ const getResolveContext = () => ({
11099
+ fileDependencies: compiler._lastCompilation.fileDependencies,
11100
+ missingDependencies: compiler._lastCompilation.missingDependencies,
11101
+ contextDependencies: compiler._lastCompilation.contextDependencies
11102
+ });
11103
+ const child = options ? resolver.withOptions(options) : resolver;
11104
+ return (context2, request, callback) => {
11105
+ if (callback) {
11106
+ child.resolve(
11107
+ {},
11108
+ context2,
11109
+ request,
11110
+ getResolveContext(),
11111
+ (err, result2) => {
11112
+ if (err) return callback(err);
11113
+ callback(
11114
+ void 0,
11115
+ typeof result2 === "string" ? result2 : void 0
11116
+ );
11117
+ }
11118
+ );
11119
+ } else {
11120
+ return new Promise((resolve3, reject2) => {
11121
+ child.resolve(
11122
+ {},
11123
+ context2,
11124
+ request,
11125
+ getResolveContext(),
11126
+ (err, result2) => {
11127
+ if (err) reject2(err);
11128
+ else resolve3(result2);
11129
+ }
11130
+ );
11131
+ });
11132
+ }
11133
+ };
11134
+ }
11135
+ },
11136
+ (err, result2, type) => {
11137
+ if (err) reject(err);
11138
+ resolve2({
11139
+ result: getRawExternalItemValueFormFnResult(result2),
11140
+ externalType: type
11141
+ });
11142
+ }
11143
+ );
11008
11144
  if (promise == null ? void 0 : promise.then) {
11009
11145
  promise.then(
11010
11146
  (result2) => resolve2({
@@ -11975,6 +12111,12 @@ var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
11975
12111
  const logger = compiler.getInfrastructureLogger(
11976
12112
  "rspack.ModuleConcatenationPlugin"
11977
12113
  );
12114
+ if (incremental2.moduleIds) {
12115
+ incremental2.moduleIds = false;
12116
+ logger.warn(
12117
+ "`optimization.concatenateModules` can't be used with `incremental.moduleIds` as module concatenation is a global effect. `incremental.moduleIds` has been overridden to false."
12118
+ );
12119
+ }
11978
12120
  if (incremental2.modulesHashes) {
11979
12121
  incremental2.modulesHashes = false;
11980
12122
  logger.warn(
@@ -11993,6 +12135,24 @@ var ModuleConcatenationPlugin = class extends RspackBuiltinPlugin {
11993
12135
  "`optimization.concatenateModules` can't be used with `incremental.modulesRuntimeRequirements` as module concatenation is a global effect. `incremental.modulesRuntimeRequirements` has been overridden to false."
11994
12136
  );
11995
12137
  }
12138
+ if (incremental2.chunksRuntimeRequirements) {
12139
+ incremental2.chunksRuntimeRequirements = false;
12140
+ logger.warn(
12141
+ "`optimization.concatenateModules` can't be used with `incremental.chunksRuntimeRequirements` as module concatenation is a global effect. `incremental.chunksRuntimeRequirements` has been overridden to false."
12142
+ );
12143
+ }
12144
+ if (incremental2.chunksHashes) {
12145
+ incremental2.chunksHashes = false;
12146
+ logger.warn(
12147
+ "`optimization.concatenateModules` can't be used with `incremental.chunksHashes` as module concatenation is a global effect. `incremental.chunksHashes` has been overridden to false."
12148
+ );
12149
+ }
12150
+ if (incremental2.chunksRender) {
12151
+ incremental2.chunksRender = false;
12152
+ logger.warn(
12153
+ "`optimization.concatenateModules` can't be used with `incremental.chunksRender` as module concatenation is a global effect. `incremental.chunksRender` has been overridden to false."
12154
+ );
12155
+ }
11996
12156
  return createBuiltinPlugin(this.name, void 0);
11997
12157
  }
11998
12158
  };
@@ -12026,12 +12186,26 @@ var NaturalChunkIdsPlugin = create2(
12026
12186
 
12027
12187
  // src/builtin-plugin/NaturalModuleIdsPlugin.ts
12028
12188
  var import_binding54 = require("@rspack/binding");
12029
- var NaturalModuleIdsPlugin = create2(
12030
- import_binding54.BuiltinPluginName.NaturalModuleIdsPlugin,
12031
- () => {
12032
- },
12033
- "compilation"
12034
- );
12189
+ var NaturalModuleIdsPlugin = class extends RspackBuiltinPlugin {
12190
+ constructor() {
12191
+ super(...arguments);
12192
+ this.name = import_binding54.BuiltinPluginName.NaturalModuleIdsPlugin;
12193
+ this.affectedHooks = "compilation";
12194
+ }
12195
+ raw(compiler) {
12196
+ const incremental2 = compiler.options.experiments.incremental;
12197
+ const logger = compiler.getInfrastructureLogger(
12198
+ "rspack.NaturalModuleIdsPlugin"
12199
+ );
12200
+ if (incremental2.moduleIds) {
12201
+ incremental2.moduleIds = false;
12202
+ logger.warn(
12203
+ "`optimization.moduleIds = 'natural'` can't be used with `incremental.moduleIds` as natural module ids is a global effect. `incremental.moduleIds` has been overridden to false."
12204
+ );
12205
+ }
12206
+ return createBuiltinPlugin(this.name, void 0);
12207
+ }
12208
+ };
12035
12209
 
12036
12210
  // src/builtin-plugin/NodeTargetPlugin.ts
12037
12211
  var import_binding55 = require("@rspack/binding");
@@ -12636,6 +12810,7 @@ var mkdirp = (fs5, p, callback) => {
12636
12810
  };
12637
12811
 
12638
12812
  // src/FileSystem.ts
12813
+ var BUFFER_SIZE = 1e3;
12639
12814
  var NOOP_FILESYSTEM = {
12640
12815
  writeFile() {
12641
12816
  },
@@ -12654,12 +12829,28 @@ var NOOP_FILESYSTEM = {
12654
12829
  stat: () => {
12655
12830
  },
12656
12831
  lstat: () => {
12832
+ },
12833
+ open: () => {
12834
+ },
12835
+ rename: () => {
12836
+ },
12837
+ close: () => {
12838
+ },
12839
+ write: () => {
12840
+ },
12841
+ writeAll: () => {
12842
+ },
12843
+ read: () => {
12844
+ },
12845
+ readUntil: () => {
12846
+ },
12847
+ readToEnd: () => {
12657
12848
  }
12658
12849
  };
12659
- var ThreadsafeWritableNodeFS = class _ThreadsafeWritableNodeFS {
12850
+ var ThreadsafeOutputNodeFS = class _ThreadsafeOutputNodeFS {
12660
12851
  constructor(fs5) {
12852
+ Object.assign(this, NOOP_FILESYSTEM);
12661
12853
  if (!fs5) {
12662
- Object.assign(this, NOOP_FILESYSTEM);
12663
12854
  return;
12664
12855
  }
12665
12856
  this.writeFile = memoizeFn(() => import_node_util5.default.promisify(fs5.writeFile.bind(fs5)));
@@ -12694,7 +12885,7 @@ var ThreadsafeWritableNodeFS = class _ThreadsafeWritableNodeFS {
12694
12885
  const statFn = import_node_util5.default.promisify((fs5.lstat || fs5.stat).bind(fs5));
12695
12886
  return async (filePath) => {
12696
12887
  const res = await statFn(filePath);
12697
- return res && _ThreadsafeWritableNodeFS.__to_binding_stat(res);
12888
+ return res && _ThreadsafeOutputNodeFS.__to_binding_stat(res);
12698
12889
  };
12699
12890
  });
12700
12891
  }
@@ -12713,6 +12904,90 @@ var ThreadsafeWritableNodeFS = class _ThreadsafeWritableNodeFS {
12713
12904
  };
12714
12905
  }
12715
12906
  };
12907
+ var ThreadsafeIntermediateNodeFS = class extends ThreadsafeOutputNodeFS {
12908
+ constructor(fs5) {
12909
+ super(fs5);
12910
+ if (!fs5) {
12911
+ return;
12912
+ }
12913
+ this.open = memoizeFn(() => import_node_util5.default.promisify(fs5.open.bind(fs5)));
12914
+ this.rename = memoizeFn(() => import_node_util5.default.promisify(fs5.rename.bind(fs5)));
12915
+ this.close = memoizeFn(() => import_node_util5.default.promisify(fs5.close.bind(fs5)));
12916
+ this.write = memoizeFn(() => {
12917
+ const writeFn = import_node_util5.default.promisify(fs5.write.bind(fs5));
12918
+ return async (fd, content, position) => {
12919
+ return await writeFn(fd, content, {
12920
+ position
12921
+ });
12922
+ };
12923
+ });
12924
+ this.writeAll = memoizeFn(() => {
12925
+ const writeFn = import_node_util5.default.promisify(fs5.writeFile.bind(fs5));
12926
+ return async (fd, content) => {
12927
+ return await writeFn(fd, content);
12928
+ };
12929
+ });
12930
+ this.read = memoizeFn(() => {
12931
+ const readFn = fs5.read.bind(fs5);
12932
+ return async (fd, length, position) => {
12933
+ new Promise((resolve2) => {
12934
+ readFn(
12935
+ fd,
12936
+ {
12937
+ position,
12938
+ length
12939
+ },
12940
+ (err, bytesRead, buffer) => {
12941
+ if (err) {
12942
+ resolve2(err);
12943
+ } else {
12944
+ resolve2(buffer);
12945
+ }
12946
+ }
12947
+ );
12948
+ });
12949
+ };
12950
+ });
12951
+ this.readUntil = memoizeFn(() => {
12952
+ return async (fd, delim, position) => {
12953
+ const res = [];
12954
+ let current_position = position;
12955
+ while (true) {
12956
+ const buffer = await this.read(fd, BUFFER_SIZE, current_position);
12957
+ if (!buffer || buffer.length === 0) {
12958
+ break;
12959
+ }
12960
+ const pos = buffer.indexOf(delim);
12961
+ if (pos >= 0) {
12962
+ res.push(buffer.slice(0, pos));
12963
+ break;
12964
+ }
12965
+ res.push(buffer);
12966
+ current_position += buffer.length;
12967
+ }
12968
+ return Buffer.concat(res);
12969
+ };
12970
+ });
12971
+ this.readToEnd = memoizeFn(() => {
12972
+ return async (fd, position) => {
12973
+ const res = [];
12974
+ let current_position = position;
12975
+ while (true) {
12976
+ const buffer = await this.read(fd, BUFFER_SIZE, current_position);
12977
+ if (!buffer || buffer.length === 0) {
12978
+ break;
12979
+ }
12980
+ res.push(buffer);
12981
+ current_position += buffer.length;
12982
+ }
12983
+ return Buffer.concat(res);
12984
+ };
12985
+ });
12986
+ }
12987
+ static __to_binding(fs5) {
12988
+ return new this(fs5);
12989
+ }
12990
+ };
12716
12991
 
12717
12992
  // src/NormalModuleFactory.ts
12718
12993
  var liteTapable6 = __toESM(require("@rspack/lite-tapable"));
@@ -12736,45 +13011,6 @@ var NormalModuleFactory = class {
12736
13011
 
12737
13012
  // src/ResolverFactory.ts
12738
13013
  var binding = __toESM(require("@rspack/binding"));
12739
-
12740
- // src/Resolver.ts
12741
- function isString(value) {
12742
- return typeof value === "string";
12743
- }
12744
- var Resolver = class _Resolver {
12745
- constructor(binding3) {
12746
- this.binding = binding3;
12747
- }
12748
- resolveSync(context2, path10, request) {
12749
- return this.binding.resolveSync(path10, request);
12750
- }
12751
- resolve(context2, path10, request, resolveContext, callback) {
12752
- try {
12753
- const res = this.binding.resolveSync(path10, request);
12754
- callback(null, res);
12755
- } catch (err) {
12756
- callback(err);
12757
- }
12758
- }
12759
- withOptions({
12760
- dependencyCategory,
12761
- resolveToContext,
12762
- ...resolve2
12763
- }) {
12764
- const rawResolve = getRawResolve(resolve2);
12765
- if (Array.isArray(rawResolve.restrictions)) {
12766
- rawResolve.restrictions = rawResolve.restrictions.filter(isString);
12767
- }
12768
- const binding3 = this.binding.withOptions({
12769
- dependencyCategory,
12770
- resolveToContext,
12771
- ...rawResolve
12772
- });
12773
- return new _Resolver(binding3);
12774
- }
12775
- };
12776
-
12777
- // src/ResolverFactory.ts
12778
13014
  var ResolverFactory = class {
12779
13015
  #binding;
12780
13016
  static __to_binding(resolver_factory) {
@@ -13681,11 +13917,9 @@ var Compiler = class _Compiler {
13681
13917
  this.#registers = {
13682
13918
  registerCompilerThisCompilationTaps: this.#createHookRegisterTaps(
13683
13919
  binding2.RegisterJsTapKind.CompilerThisCompilation,
13684
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13685
13920
  function() {
13686
13921
  return that.deref().hooks.thisCompilation;
13687
13922
  },
13688
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13689
13923
  function(queried) {
13690
13924
  return function(native) {
13691
13925
  that.deref().#createCompilation(native);
@@ -13698,11 +13932,9 @@ var Compiler = class _Compiler {
13698
13932
  ),
13699
13933
  registerCompilerCompilationTaps: this.#createHookRegisterTaps(
13700
13934
  binding2.RegisterJsTapKind.CompilerCompilation,
13701
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13702
13935
  function() {
13703
13936
  return that.deref().hooks.compilation;
13704
13937
  },
13705
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13706
13938
  function(queried) {
13707
13939
  return function() {
13708
13940
  return queried.call(
@@ -13714,11 +13946,9 @@ var Compiler = class _Compiler {
13714
13946
  ),
13715
13947
  registerCompilerMakeTaps: this.#createHookRegisterTaps(
13716
13948
  binding2.RegisterJsTapKind.CompilerMake,
13717
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13718
13949
  function() {
13719
13950
  return that.deref().hooks.make;
13720
13951
  },
13721
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13722
13952
  function(queried) {
13723
13953
  return async function() {
13724
13954
  return await queried.promise(that.deref().#compilation);
@@ -13727,11 +13957,9 @@ var Compiler = class _Compiler {
13727
13957
  ),
13728
13958
  registerCompilerFinishMakeTaps: this.#createHookRegisterTaps(
13729
13959
  binding2.RegisterJsTapKind.CompilerFinishMake,
13730
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13731
13960
  function() {
13732
13961
  return that.deref().hooks.finishMake;
13733
13962
  },
13734
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13735
13963
  function(queried) {
13736
13964
  return async function() {
13737
13965
  return await queried.promise(that.deref().#compilation);
@@ -13740,11 +13968,9 @@ var Compiler = class _Compiler {
13740
13968
  ),
13741
13969
  registerCompilerShouldEmitTaps: this.#createHookRegisterTaps(
13742
13970
  binding2.RegisterJsTapKind.CompilerShouldEmit,
13743
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13744
13971
  function() {
13745
13972
  return that.deref().hooks.shouldEmit;
13746
13973
  },
13747
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13748
13974
  function(queried) {
13749
13975
  return function() {
13750
13976
  return queried.call(that.deref().#compilation);
@@ -13753,11 +13979,9 @@ var Compiler = class _Compiler {
13753
13979
  ),
13754
13980
  registerCompilerEmitTaps: this.#createHookRegisterTaps(
13755
13981
  binding2.RegisterJsTapKind.CompilerEmit,
13756
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13757
13982
  function() {
13758
13983
  return that.deref().hooks.emit;
13759
13984
  },
13760
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13761
13985
  function(queried) {
13762
13986
  return async function() {
13763
13987
  return await queried.promise(that.deref().#compilation);
@@ -13766,11 +13990,9 @@ var Compiler = class _Compiler {
13766
13990
  ),
13767
13991
  registerCompilerAfterEmitTaps: this.#createHookRegisterTaps(
13768
13992
  binding2.RegisterJsTapKind.CompilerAfterEmit,
13769
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13770
13993
  function() {
13771
13994
  return that.deref().hooks.afterEmit;
13772
13995
  },
13773
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13774
13996
  function(queried) {
13775
13997
  return async function() {
13776
13998
  return await queried.promise(that.deref().#compilation);
@@ -13779,11 +14001,9 @@ var Compiler = class _Compiler {
13779
14001
  ),
13780
14002
  registerCompilerAssetEmittedTaps: this.#createHookRegisterTaps(
13781
14003
  binding2.RegisterJsTapKind.CompilerAssetEmitted,
13782
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13783
14004
  function() {
13784
14005
  return that.deref().hooks.assetEmitted;
13785
14006
  },
13786
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13787
14007
  function(queried) {
13788
14008
  return async function({
13789
14009
  filename: filename2,
@@ -13808,11 +14028,9 @@ var Compiler = class _Compiler {
13808
14028
  ),
13809
14029
  registerCompilationAdditionalTreeRuntimeRequirements: this.#createHookRegisterTaps(
13810
14030
  binding2.RegisterJsTapKind.CompilationAdditionalTreeRuntimeRequirements,
13811
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13812
14031
  function() {
13813
14032
  return that.deref().#compilation.hooks.additionalTreeRuntimeRequirements;
13814
14033
  },
13815
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13816
14034
  function(queried) {
13817
14035
  return function({
13818
14036
  chunk,
@@ -13831,11 +14049,9 @@ var Compiler = class _Compiler {
13831
14049
  ),
13832
14050
  registerCompilationRuntimeRequirementInTree: this.#createHookMapRegisterTaps(
13833
14051
  binding2.RegisterJsTapKind.CompilationRuntimeRequirementInTree,
13834
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13835
14052
  function() {
13836
14053
  return that.deref().#compilation.hooks.runtimeRequirementInTree;
13837
14054
  },
13838
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13839
14055
  function(queried) {
13840
14056
  return function({
13841
14057
  chunk: rawChunk,
@@ -13857,11 +14073,9 @@ var Compiler = class _Compiler {
13857
14073
  ),
13858
14074
  registerCompilationRuntimeModuleTaps: this.#createHookRegisterTaps(
13859
14075
  binding2.RegisterJsTapKind.CompilationRuntimeModule,
13860
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13861
14076
  function() {
13862
14077
  return that.deref().#compilation.hooks.runtimeModule;
13863
14078
  },
13864
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13865
14079
  function(queried) {
13866
14080
  return function({ module: module2, chunk }) {
13867
14081
  var _a, _b;
@@ -13880,11 +14094,9 @@ var Compiler = class _Compiler {
13880
14094
  ),
13881
14095
  registerCompilationBuildModuleTaps: this.#createHookRegisterTaps(
13882
14096
  binding2.RegisterJsTapKind.CompilationBuildModule,
13883
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13884
14097
  function() {
13885
14098
  return that.deref().#compilation.hooks.buildModule;
13886
14099
  },
13887
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13888
14100
  function(queried) {
13889
14101
  return function(m) {
13890
14102
  return queried.call(
@@ -13895,11 +14107,9 @@ var Compiler = class _Compiler {
13895
14107
  ),
13896
14108
  registerCompilationStillValidModuleTaps: this.#createHookRegisterTaps(
13897
14109
  binding2.RegisterJsTapKind.CompilationStillValidModule,
13898
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13899
14110
  function() {
13900
14111
  return that.deref().#compilation.hooks.stillValidModule;
13901
14112
  },
13902
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13903
14113
  function(queried) {
13904
14114
  return function(m) {
13905
14115
  return queried.call(
@@ -13910,11 +14120,9 @@ var Compiler = class _Compiler {
13910
14120
  ),
13911
14121
  registerCompilationSucceedModuleTaps: this.#createHookRegisterTaps(
13912
14122
  binding2.RegisterJsTapKind.CompilationSucceedModule,
13913
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13914
14123
  function() {
13915
14124
  return that.deref().#compilation.hooks.succeedModule;
13916
14125
  },
13917
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13918
14126
  function(queried) {
13919
14127
  return function(m) {
13920
14128
  return queried.call(
@@ -13925,11 +14133,9 @@ var Compiler = class _Compiler {
13925
14133
  ),
13926
14134
  registerCompilationExecuteModuleTaps: this.#createHookRegisterTaps(
13927
14135
  binding2.RegisterJsTapKind.CompilationExecuteModule,
13928
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13929
14136
  function() {
13930
14137
  return that.deref().#compilation.hooks.executeModule;
13931
14138
  },
13932
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13933
14139
  function(queried) {
13934
14140
  return function({
13935
14141
  entry: entry2,
@@ -13990,11 +14196,9 @@ var Compiler = class _Compiler {
13990
14196
  ),
13991
14197
  registerCompilationFinishModulesTaps: this.#createHookRegisterTaps(
13992
14198
  binding2.RegisterJsTapKind.CompilationFinishModules,
13993
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13994
14199
  function() {
13995
14200
  return that.deref().#compilation.hooks.finishModules;
13996
14201
  },
13997
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
13998
14202
  function(queried) {
13999
14203
  return async function() {
14000
14204
  return await queried.promise(that.deref().#compilation.modules);
@@ -14003,11 +14207,9 @@ var Compiler = class _Compiler {
14003
14207
  ),
14004
14208
  registerCompilationOptimizeModulesTaps: this.#createHookRegisterTaps(
14005
14209
  binding2.RegisterJsTapKind.CompilationOptimizeModules,
14006
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14007
14210
  function() {
14008
14211
  return that.deref().#compilation.hooks.optimizeModules;
14009
14212
  },
14010
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14011
14213
  function(queried) {
14012
14214
  return function() {
14013
14215
  return queried.call(that.deref().#compilation.modules.values());
@@ -14016,11 +14218,9 @@ var Compiler = class _Compiler {
14016
14218
  ),
14017
14219
  registerCompilationAfterOptimizeModulesTaps: this.#createHookRegisterTaps(
14018
14220
  binding2.RegisterJsTapKind.CompilationAfterOptimizeModules,
14019
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14020
14221
  function() {
14021
14222
  return that.deref().#compilation.hooks.afterOptimizeModules;
14022
14223
  },
14023
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14024
14224
  function(queried) {
14025
14225
  return function() {
14026
14226
  queried.call(that.deref().#compilation.modules.values());
@@ -14029,11 +14229,9 @@ var Compiler = class _Compiler {
14029
14229
  ),
14030
14230
  registerCompilationOptimizeTreeTaps: this.#createHookRegisterTaps(
14031
14231
  binding2.RegisterJsTapKind.CompilationOptimizeTree,
14032
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14033
14232
  function() {
14034
14233
  return that.deref().#compilation.hooks.optimizeTree;
14035
14234
  },
14036
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14037
14235
  function(queried) {
14038
14236
  return async function() {
14039
14237
  return await queried.promise(
@@ -14045,11 +14243,9 @@ var Compiler = class _Compiler {
14045
14243
  ),
14046
14244
  registerCompilationOptimizeChunkModulesTaps: this.#createHookRegisterTaps(
14047
14245
  binding2.RegisterJsTapKind.CompilationOptimizeChunkModules,
14048
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14049
14246
  function() {
14050
14247
  return that.deref().#compilation.hooks.optimizeChunkModules;
14051
14248
  },
14052
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14053
14249
  function(queried) {
14054
14250
  return async function() {
14055
14251
  return await queried.promise(
@@ -14061,11 +14257,9 @@ var Compiler = class _Compiler {
14061
14257
  ),
14062
14258
  registerCompilationChunkHashTaps: this.#createHookRegisterTaps(
14063
14259
  binding2.RegisterJsTapKind.CompilationChunkHash,
14064
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14065
14260
  function() {
14066
14261
  return that.deref().#compilation.hooks.chunkHash;
14067
14262
  },
14068
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14069
14263
  function(queried) {
14070
14264
  return function(chunk) {
14071
14265
  if (!that.deref().options.output.hashFunction) {
@@ -14085,11 +14279,9 @@ var Compiler = class _Compiler {
14085
14279
  ),
14086
14280
  registerCompilationChunkAssetTaps: this.#createHookRegisterTaps(
14087
14281
  binding2.RegisterJsTapKind.CompilationChunkAsset,
14088
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14089
14282
  function() {
14090
14283
  return that.deref().#compilation.hooks.chunkAsset;
14091
14284
  },
14092
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14093
14285
  function(queried) {
14094
14286
  return function({ chunk, filename: filename2 }) {
14095
14287
  return queried.call(
@@ -14101,11 +14293,9 @@ var Compiler = class _Compiler {
14101
14293
  ),
14102
14294
  registerCompilationProcessAssetsTaps: this.#createHookRegisterTaps(
14103
14295
  binding2.RegisterJsTapKind.CompilationProcessAssets,
14104
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14105
14296
  function() {
14106
14297
  return that.deref().#compilation.hooks.processAssets;
14107
14298
  },
14108
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14109
14299
  function(queried) {
14110
14300
  return async function() {
14111
14301
  return await queried.promise(that.deref().#compilation.assets);
@@ -14114,11 +14304,9 @@ var Compiler = class _Compiler {
14114
14304
  ),
14115
14305
  registerCompilationAfterProcessAssetsTaps: this.#createHookRegisterTaps(
14116
14306
  binding2.RegisterJsTapKind.CompilationAfterProcessAssets,
14117
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14118
14307
  function() {
14119
14308
  return that.deref().#compilation.hooks.afterProcessAssets;
14120
14309
  },
14121
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14122
14310
  function(queried) {
14123
14311
  return function() {
14124
14312
  return queried.call(that.deref().#compilation.assets);
@@ -14127,11 +14315,9 @@ var Compiler = class _Compiler {
14127
14315
  ),
14128
14316
  registerCompilationSealTaps: this.#createHookRegisterTaps(
14129
14317
  binding2.RegisterJsTapKind.CompilationSeal,
14130
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14131
14318
  function() {
14132
14319
  return that.deref().#compilation.hooks.seal;
14133
14320
  },
14134
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14135
14321
  function(queried) {
14136
14322
  return function() {
14137
14323
  return queried.call();
@@ -14140,11 +14326,9 @@ var Compiler = class _Compiler {
14140
14326
  ),
14141
14327
  registerCompilationAfterSealTaps: this.#createHookRegisterTaps(
14142
14328
  binding2.RegisterJsTapKind.CompilationAfterSeal,
14143
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14144
14329
  function() {
14145
14330
  return that.deref().#compilation.hooks.afterSeal;
14146
14331
  },
14147
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14148
14332
  function(queried) {
14149
14333
  return async function() {
14150
14334
  return await queried.promise();
@@ -14153,11 +14337,9 @@ var Compiler = class _Compiler {
14153
14337
  ),
14154
14338
  registerNormalModuleFactoryBeforeResolveTaps: this.#createHookRegisterTaps(
14155
14339
  binding2.RegisterJsTapKind.NormalModuleFactoryBeforeResolve,
14156
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14157
14340
  function() {
14158
14341
  return that.deref().#compilationParams.normalModuleFactory.hooks.beforeResolve;
14159
14342
  },
14160
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14161
14343
  function(queried) {
14162
14344
  return async function(resolveData) {
14163
14345
  const normalizedResolveData = {
@@ -14179,11 +14361,9 @@ var Compiler = class _Compiler {
14179
14361
  ),
14180
14362
  registerNormalModuleFactoryFactorizeTaps: this.#createHookRegisterTaps(
14181
14363
  binding2.RegisterJsTapKind.NormalModuleFactoryFactorize,
14182
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14183
14364
  function() {
14184
14365
  return that.deref().#compilationParams.normalModuleFactory.hooks.factorize;
14185
14366
  },
14186
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14187
14367
  function(queried) {
14188
14368
  return async function(resolveData) {
14189
14369
  const normalizedResolveData = {
@@ -14205,11 +14385,9 @@ var Compiler = class _Compiler {
14205
14385
  ),
14206
14386
  registerNormalModuleFactoryResolveTaps: this.#createHookRegisterTaps(
14207
14387
  binding2.RegisterJsTapKind.NormalModuleFactoryResolve,
14208
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14209
14388
  function() {
14210
14389
  return that.deref().#compilationParams.normalModuleFactory.hooks.resolve;
14211
14390
  },
14212
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14213
14391
  function(queried) {
14214
14392
  return async function(resolveData) {
14215
14393
  const normalizedResolveData = {
@@ -14231,11 +14409,9 @@ var Compiler = class _Compiler {
14231
14409
  ),
14232
14410
  registerNormalModuleFactoryResolveForSchemeTaps: this.#createHookMapRegisterTaps(
14233
14411
  binding2.RegisterJsTapKind.NormalModuleFactoryResolveForScheme,
14234
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14235
14412
  function() {
14236
14413
  return that.deref().#compilationParams.normalModuleFactory.hooks.resolveForScheme;
14237
14414
  },
14238
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14239
14415
  function(queried) {
14240
14416
  return async function(args) {
14241
14417
  const ret = await queried.for(args.scheme).promise(args.resourceData);
@@ -14245,11 +14421,9 @@ var Compiler = class _Compiler {
14245
14421
  ),
14246
14422
  registerNormalModuleFactoryAfterResolveTaps: this.#createHookRegisterTaps(
14247
14423
  binding2.RegisterJsTapKind.NormalModuleFactoryAfterResolve,
14248
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14249
14424
  function() {
14250
14425
  return that.deref().#compilationParams.normalModuleFactory.hooks.afterResolve;
14251
14426
  },
14252
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14253
14427
  function(queried) {
14254
14428
  return async function(arg) {
14255
14429
  const data = {
@@ -14270,11 +14444,9 @@ var Compiler = class _Compiler {
14270
14444
  ),
14271
14445
  registerNormalModuleFactoryCreateModuleTaps: this.#createHookRegisterTaps(
14272
14446
  binding2.RegisterJsTapKind.NormalModuleFactoryCreateModule,
14273
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14274
14447
  function() {
14275
14448
  return that.deref().#compilationParams.normalModuleFactory.hooks.createModule;
14276
14449
  },
14277
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14278
14450
  function(queried) {
14279
14451
  return async function(args) {
14280
14452
  const data = {
@@ -14287,11 +14459,9 @@ var Compiler = class _Compiler {
14287
14459
  ),
14288
14460
  registerContextModuleFactoryBeforeResolveTaps: this.#createHookRegisterTaps(
14289
14461
  binding2.RegisterJsTapKind.ContextModuleFactoryBeforeResolve,
14290
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14291
14462
  function() {
14292
14463
  return that.deref().#compilationParams.contextModuleFactory.hooks.beforeResolve;
14293
14464
  },
14294
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14295
14465
  function(queried) {
14296
14466
  return async function(bindingData) {
14297
14467
  const data = bindingData ? ContextModuleFactoryBeforeResolveData.__from_binding(
@@ -14304,11 +14474,9 @@ var Compiler = class _Compiler {
14304
14474
  ),
14305
14475
  registerContextModuleFactoryAfterResolveTaps: this.#createHookRegisterTaps(
14306
14476
  binding2.RegisterJsTapKind.ContextModuleFactoryAfterResolve,
14307
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14308
14477
  function() {
14309
14478
  return that.deref().#compilationParams.contextModuleFactory.hooks.afterResolve;
14310
14479
  },
14311
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14312
14480
  function(queried) {
14313
14481
  return async function(bindingData) {
14314
14482
  const data = bindingData ? ContextModuleFactoryAfterResolveData.__from_binding(
@@ -14321,13 +14489,11 @@ var Compiler = class _Compiler {
14321
14489
  ),
14322
14490
  registerJavascriptModulesChunkHashTaps: this.#createHookRegisterTaps(
14323
14491
  binding2.RegisterJsTapKind.JavascriptModulesChunkHash,
14324
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14325
14492
  function() {
14326
14493
  return JavascriptModulesPlugin.getCompilationHooks(
14327
14494
  that.deref().#compilation
14328
14495
  ).chunkHash;
14329
14496
  },
14330
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14331
14497
  function(queried) {
14332
14498
  return function(chunk) {
14333
14499
  if (!that.deref().options.output.hashFunction) {
@@ -14347,13 +14513,11 @@ var Compiler = class _Compiler {
14347
14513
  ),
14348
14514
  registerHtmlPluginBeforeAssetTagGenerationTaps: this.#createHookRegisterTaps(
14349
14515
  binding2.RegisterJsTapKind.HtmlPluginBeforeAssetTagGeneration,
14350
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14351
14516
  function() {
14352
14517
  return HtmlRspackPlugin.getCompilationHooks(
14353
14518
  that.deref().#compilation
14354
14519
  ).beforeAssetTagGeneration;
14355
14520
  },
14356
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14357
14521
  function(queried) {
14358
14522
  return async function(data) {
14359
14523
  return await queried.promise({
@@ -14369,13 +14533,11 @@ var Compiler = class _Compiler {
14369
14533
  ),
14370
14534
  registerHtmlPluginAlterAssetTagsTaps: this.#createHookRegisterTaps(
14371
14535
  binding2.RegisterJsTapKind.HtmlPluginAlterAssetTags,
14372
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14373
14536
  function() {
14374
14537
  return HtmlRspackPlugin.getCompilationHooks(
14375
14538
  that.deref().#compilation
14376
14539
  ).alterAssetTags;
14377
14540
  },
14378
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14379
14541
  function(queried) {
14380
14542
  return async function(data) {
14381
14543
  return await queried.promise(data);
@@ -14384,13 +14546,11 @@ var Compiler = class _Compiler {
14384
14546
  ),
14385
14547
  registerHtmlPluginAlterAssetTagGroupsTaps: this.#createHookRegisterTaps(
14386
14548
  binding2.RegisterJsTapKind.HtmlPluginAlterAssetTagGroups,
14387
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14388
14549
  function() {
14389
14550
  return HtmlRspackPlugin.getCompilationHooks(
14390
14551
  that.deref().#compilation
14391
14552
  ).alterAssetTagGroups;
14392
14553
  },
14393
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14394
14554
  function(queried) {
14395
14555
  return async function(data) {
14396
14556
  return await queried.promise({
@@ -14406,13 +14566,11 @@ var Compiler = class _Compiler {
14406
14566
  ),
14407
14567
  registerHtmlPluginAfterTemplateExecutionTaps: this.#createHookRegisterTaps(
14408
14568
  binding2.RegisterJsTapKind.HtmlPluginAfterTemplateExecution,
14409
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14410
14569
  function() {
14411
14570
  return HtmlRspackPlugin.getCompilationHooks(
14412
14571
  that.deref().#compilation
14413
14572
  ).afterTemplateExecution;
14414
14573
  },
14415
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14416
14574
  function(queried) {
14417
14575
  return async function(data) {
14418
14576
  return await queried.promise({
@@ -14428,13 +14586,11 @@ var Compiler = class _Compiler {
14428
14586
  ),
14429
14587
  registerHtmlPluginBeforeEmitTaps: this.#createHookRegisterTaps(
14430
14588
  binding2.RegisterJsTapKind.HtmlPluginBeforeEmit,
14431
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14432
14589
  function() {
14433
14590
  return HtmlRspackPlugin.getCompilationHooks(
14434
14591
  that.deref().#compilation
14435
14592
  ).beforeEmit;
14436
14593
  },
14437
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14438
14594
  function(queried) {
14439
14595
  return async function(data) {
14440
14596
  return await queried.promise({
@@ -14450,13 +14606,11 @@ var Compiler = class _Compiler {
14450
14606
  ),
14451
14607
  registerHtmlPluginAfterEmitTaps: this.#createHookRegisterTaps(
14452
14608
  binding2.RegisterJsTapKind.HtmlPluginAfterEmit,
14453
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14454
14609
  function() {
14455
14610
  return HtmlRspackPlugin.getCompilationHooks(
14456
14611
  that.deref().#compilation
14457
14612
  ).afterEmit;
14458
14613
  },
14459
- // biome-ignore lint/complexity/useArrowFunction: <explanation>
14460
14614
  function(queried) {
14461
14615
  return async function(data) {
14462
14616
  return await queried.promise({
@@ -14475,7 +14629,8 @@ var Compiler = class _Compiler {
14475
14629
  rawOptions,
14476
14630
  this.#builtinPlugins,
14477
14631
  this.#registers,
14478
- ThreadsafeWritableNodeFS.__to_binding(this.outputFileSystem),
14632
+ ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem),
14633
+ ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem),
14479
14634
  ResolverFactory.__to_binding(this.resolverFactory)
14480
14635
  );
14481
14636
  callback(null, this.#instance);