@rspack-canary/core 1.5.9-canary-740cd963-20250929173807 → 1.5.9-canary-61eba72c-20251001174057

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
@@ -28,12 +28,11 @@ var __webpack_modules__ = {
28
28
  if ("function" == typeof options && (callback = options, options = void 0), "string" != typeof path && !Buffer.isBuffer(path) && !(path instanceof URL) && "number" != typeof path) return void callback(TypeError("path must be a string, Buffer, URL or number"));
29
29
  if (options) return this._provider.call(this._providerContext, path, options, callback);
30
30
  let callbacks = this._activeAsyncOperations.get(path);
31
- if (callbacks) return void callbacks.push(callback);
32
- this._activeAsyncOperations.set(path, callbacks = [
31
+ callbacks ? callbacks.push(callback) : (this._activeAsyncOperations.set(path, callbacks = [
33
32
  callback
34
33
  ]), provider(path, (err, result)=>{
35
34
  this._activeAsyncOperations.delete(path), runCallbacks(callbacks, err, result);
36
- });
35
+ }));
37
36
  } : null, this.provideSync = this._syncProvider ? (path, options)=>this._syncProvider.call(this._providerContext, path, options) : null;
38
37
  }
39
38
  purge() {}
@@ -54,12 +53,11 @@ var __webpack_modules__ = {
54
53
  let cacheEntry = this._data.get(strPath);
55
54
  if (void 0 !== cacheEntry) return cacheEntry.err ? nextTick(callback, cacheEntry.err) : nextTick(callback, null, cacheEntry.result);
56
55
  let callbacks = this._activeAsyncOperations.get(strPath);
57
- if (void 0 !== callbacks) return void callbacks.push(callback);
58
- this._activeAsyncOperations.set(strPath, callbacks = [
56
+ void 0 !== callbacks ? callbacks.push(callback) : (this._activeAsyncOperations.set(strPath, callbacks = [
59
57
  callback
60
58
  ]), this._provider.call(this._providerContext, path, (err, result)=>{
61
59
  this._activeAsyncOperations.delete(strPath), this._storeResult(strPath, err, result), this._enterAsyncMode(), runCallbacks(callbacks, err, result);
62
- });
60
+ }));
63
61
  }
64
62
  provideSync(path, options) {
65
63
  let result;
@@ -161,21 +159,21 @@ var __webpack_modules__ = {
161
159
  module.exports = class {
162
160
  constructor(fileSystem, duration){
163
161
  this.fileSystem = fileSystem, this._lstatBackend = createBackend(duration, this.fileSystem.lstat, this.fileSystem.lstatSync, this.fileSystem);
164
- let lstat = this._lstatBackend.provide;
162
+ const lstat = this._lstatBackend.provide;
165
163
  this.lstat = lstat;
166
- let lstatSync = this._lstatBackend.provideSync;
164
+ const lstatSync = this._lstatBackend.provideSync;
167
165
  this.lstatSync = lstatSync, this._statBackend = createBackend(duration, this.fileSystem.stat, this.fileSystem.statSync, this.fileSystem);
168
- let stat = this._statBackend.provide;
166
+ const stat = this._statBackend.provide;
169
167
  this.stat = stat;
170
- let statSync = this._statBackend.provideSync;
168
+ const statSync = this._statBackend.provideSync;
171
169
  this.statSync = statSync, this._readdirBackend = createBackend(duration, this.fileSystem.readdir, this.fileSystem.readdirSync, this.fileSystem);
172
- let readdir = this._readdirBackend.provide;
170
+ const readdir = this._readdirBackend.provide;
173
171
  this.readdir = readdir;
174
- let readdirSync = this._readdirBackend.provideSync;
172
+ const readdirSync = this._readdirBackend.provideSync;
175
173
  this.readdirSync = readdirSync, this._readFileBackend = createBackend(duration, this.fileSystem.readFile, this.fileSystem.readFileSync, this.fileSystem);
176
- let readFile = this._readFileBackend.provide;
174
+ const readFile = this._readFileBackend.provide;
177
175
  this.readFile = readFile;
178
- let readFileSync = this._readFileBackend.provideSync;
176
+ const readFileSync = this._readFileBackend.provideSync;
179
177
  this.readFileSync = readFileSync, this._readJsonBackend = createBackend(duration, this.fileSystem.readJson || this.readFile && ((path, callback)=>{
180
178
  this.readFile(path, (err, buffer)=>{
181
179
  let data;
@@ -189,17 +187,17 @@ var __webpack_modules__ = {
189
187
  callback(null, data);
190
188
  });
191
189
  }), this.fileSystem.readJsonSync || this.readFileSync && ((path)=>JSON.parse(this.readFileSync(path).toString("utf8"))), this.fileSystem);
192
- let readJson = this._readJsonBackend.provide;
190
+ const readJson = this._readJsonBackend.provide;
193
191
  this.readJson = readJson;
194
- let readJsonSync = this._readJsonBackend.provideSync;
192
+ const readJsonSync = this._readJsonBackend.provideSync;
195
193
  this.readJsonSync = readJsonSync, this._readlinkBackend = createBackend(duration, this.fileSystem.readlink, this.fileSystem.readlinkSync, this.fileSystem);
196
- let readlink = this._readlinkBackend.provide;
194
+ const readlink = this._readlinkBackend.provide;
197
195
  this.readlink = readlink;
198
- let readlinkSync = this._readlinkBackend.provideSync;
196
+ const readlinkSync = this._readlinkBackend.provideSync;
199
197
  this.readlinkSync = readlinkSync, this._realpathBackend = createBackend(duration, this.fileSystem.realpath, this.fileSystem.realpathSync, this.fileSystem);
200
- let realpath = this._realpathBackend.provide;
198
+ const realpath = this._realpathBackend.provide;
201
199
  this.realpath = realpath;
202
- let realpathSync = this._realpathBackend.provideSync;
200
+ const realpathSync = this._realpathBackend.provideSync;
203
201
  this.realpathSync = realpathSync;
204
202
  }
205
203
  purge(what) {
@@ -964,8 +962,8 @@ for(var __webpack_i__ in (()=>{
964
962
  "context"
965
963
  ]))
966
964
  });
967
- let hooks = this.hooks, caches = {};
968
- for (let key of Object.keys(hooks))caches[key] = new Map();
965
+ const hooks = this.hooks, caches = {};
966
+ for (const key of Object.keys(hooks))caches[key] = new Map();
969
967
  this._caches = caches, this._inCreate = !1;
970
968
  }
971
969
  _getAllLevelHooks(hookMap, cache, type) {
@@ -1509,8 +1507,10 @@ for(var __webpack_i__ in (()=>{
1509
1507
  #addEntryDispatcher;
1510
1508
  [_computedKey];
1511
1509
  constructor(compiler, inner){
1510
+ var name, stage, getArgs;
1511
+ let errorMessage, getOptions;
1512
1512
  this.#inner = inner, this.#shutdown = !1;
1513
- let processAssetsHook = new lite_tapable_namespaceObject.AsyncSeriesHook([
1513
+ const processAssetsHook = new lite_tapable_namespaceObject.AsyncSeriesHook([
1514
1514
  "assets"
1515
1515
  ]);
1516
1516
  this.hooks = {
@@ -1518,35 +1518,32 @@ for(var __webpack_i__ in (()=>{
1518
1518
  afterProcessAssets: new lite_tapable_namespaceObject.SyncHook([
1519
1519
  "assets"
1520
1520
  ]),
1521
- additionalAssets: ((name, stage, getArgs)=>{
1522
- let errorMessage = (reason)=>`Can't automatically convert plugin using Compilation.hooks.${name} to Compilation.hooks.processAssets because ${reason}.
1521
+ additionalAssets: (name = "additionalAssets", stage = Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL, getArgs = ()=>[], errorMessage = (reason)=>`Can't automatically convert plugin using Compilation.hooks.${name} to Compilation.hooks.processAssets because ${reason}.
1523
1522
  BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a single Compilation.hooks.processAssets hook.`, getOptions = (options)=>{
1524
- let isString = "string" == typeof options;
1525
- if (!isString && options.stage) throw Error(errorMessage("it's using the 'stage' option"));
1526
- return {
1527
- ...isString ? {
1528
- name: options
1529
- } : options,
1530
- stage: stage
1531
- };
1523
+ let isString = "string" == typeof options;
1524
+ if (!isString && options.stage) throw Error(errorMessage("it's using the 'stage' option"));
1525
+ return {
1526
+ ...isString ? {
1527
+ name: options
1528
+ } : options,
1529
+ stage: stage
1532
1530
  };
1533
- return Object.freeze({
1534
- name,
1535
- intercept () {
1536
- throw Error(errorMessage("it's using 'intercept'"));
1537
- },
1538
- tap: (options, fn)=>{
1539
- processAssetsHook.tap(getOptions(options), ()=>fn(...getArgs()));
1540
- },
1541
- tapAsync: (options, fn)=>{
1542
- processAssetsHook.tapAsync(getOptions(options), (assets, callback)=>fn(...getArgs(), callback));
1543
- },
1544
- tapPromise: (options, fn)=>{
1545
- processAssetsHook.tapPromise(getOptions(options), ()=>fn(...getArgs()));
1546
- },
1547
- _fakeHook: !0
1548
- });
1549
- })("additionalAssets", Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL, ()=>[]),
1531
+ }, Object.freeze({
1532
+ name,
1533
+ intercept () {
1534
+ throw Error(errorMessage("it's using 'intercept'"));
1535
+ },
1536
+ tap: (options, fn)=>{
1537
+ processAssetsHook.tap(getOptions(options), ()=>fn(...getArgs()));
1538
+ },
1539
+ tapAsync: (options, fn)=>{
1540
+ processAssetsHook.tapAsync(getOptions(options), (assets, callback)=>fn(...getArgs(), callback));
1541
+ },
1542
+ tapPromise: (options, fn)=>{
1543
+ processAssetsHook.tapPromise(getOptions(options), ()=>fn(...getArgs()));
1544
+ },
1545
+ _fakeHook: !0
1546
+ })),
1550
1547
  childCompiler: new lite_tapable_namespaceObject.SyncHook([
1551
1548
  "childCompiler",
1552
1549
  "compilerName",
@@ -2754,7 +2751,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2754
2751
  class Message extends Error {
2755
2752
  constructor(){
2756
2753
  super(), this.stack = void 0, Error.captureStackTrace(this);
2757
- let match = this.stack.split("\n")[3].match(CURRENT_METHOD_REGEXP);
2754
+ const match = this.stack.split("\n")[3].match(CURRENT_METHOD_REGEXP);
2758
2755
  this.message = match?.[1] ? createMessage(match[1]) : createMessage();
2759
2756
  }
2760
2757
  }
@@ -2780,7 +2777,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2780
2777
  chunkSize;
2781
2778
  digestSize;
2782
2779
  constructor(instance, instancesPool, chunkSize, digestSize){
2783
- let exports1 = instance.exports;
2780
+ const exports1 = instance.exports;
2784
2781
  exports1.init(), this.exports = exports1, this.mem = Buffer.from(exports1.memory.buffer, 0, 65536), this.buffered = 0, this.instancesPool = instancesPool, this.chunkSize = chunkSize, this.digestSize = digestSize;
2785
2782
  }
2786
2783
  reset() {
@@ -3134,35 +3131,34 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3134
3131
  parallel;
3135
3132
  loaderItem;
3136
3133
  constructor(loaderItem, compiler){
3137
- let { request, path, query, fragment, options, ident, normal, pitch, raw, type } = function(loader, compiler) {
3138
- let obj = {
3139
- path: null,
3140
- query: null,
3141
- fragment: null,
3142
- options: null,
3143
- ident: null,
3144
- normal: null,
3145
- pitch: null,
3146
- raw: null,
3147
- data: null,
3148
- pitchExecuted: !1,
3149
- normalExecuted: !1
3150
- };
3151
- return Object.defineProperty(obj, "request", {
3152
- enumerable: !0,
3153
- get: ()=>obj.path.replace(/#/g, "\u200b#") + obj.query.replace(/#/g, "\u200b#") + obj.fragment,
3154
- set: (value)=>{
3155
- let splittedRequest = parseResourceWithoutFragment(value.loader);
3156
- if (obj.path = splittedRequest.path, obj.query = splittedRequest.query, obj.fragment = "", obj.options = null === obj.options ? splittedRequest.query ? splittedRequest.query.slice(1) : void 0 : obj.options, "string" == typeof obj.options && "?" === obj.options[0]) {
3157
- let ident = obj.options.slice(1);
3158
- if ("[[missing ident]]" === ident) throw Error("No ident is provided by referenced loader. When using a function for Rule.use in config you need to provide an 'ident' property for referenced loader options.");
3159
- if (obj.options = compiler.__internal__ruleSet.references.get(ident), void 0 === obj.options) throw Error("Invalid ident is provided by referenced loader");
3160
- obj.ident = ident;
3161
- }
3162
- obj.type = "" === value.type ? void 0 : value.type, null === obj.options || void 0 === obj.options ? obj.query = "" : "string" == typeof obj.options ? obj.query = `?${obj.options}` : obj.ident ? obj.query = `??${obj.ident}` : "object" == typeof obj.options && obj.options.ident ? obj.query = `??${obj.options.ident}` : obj.query = `?${JSON.stringify(obj.options)}`;
3134
+ var loader, compiler1;
3135
+ let obj;
3136
+ const { request, path, query, fragment, options, ident, normal, pitch, raw, type } = (loader = loaderItem, compiler1 = compiler, Object.defineProperty(obj = {
3137
+ path: null,
3138
+ query: null,
3139
+ fragment: null,
3140
+ options: null,
3141
+ ident: null,
3142
+ normal: null,
3143
+ pitch: null,
3144
+ raw: null,
3145
+ data: null,
3146
+ pitchExecuted: !1,
3147
+ normalExecuted: !1
3148
+ }, "request", {
3149
+ enumerable: !0,
3150
+ get: ()=>obj.path.replace(/#/g, "\u200b#") + obj.query.replace(/#/g, "\u200b#") + obj.fragment,
3151
+ set: (value)=>{
3152
+ let splittedRequest = parseResourceWithoutFragment(value.loader);
3153
+ if (obj.path = splittedRequest.path, obj.query = splittedRequest.query, obj.fragment = "", obj.options = null === obj.options ? splittedRequest.query ? splittedRequest.query.slice(1) : void 0 : obj.options, "string" == typeof obj.options && "?" === obj.options[0]) {
3154
+ let ident = obj.options.slice(1);
3155
+ if ("[[missing ident]]" === ident) throw Error("No ident is provided by referenced loader. When using a function for Rule.use in config you need to provide an 'ident' property for referenced loader options.");
3156
+ if (obj.options = compiler1.__internal__ruleSet.references.get(ident), void 0 === obj.options) throw Error("Invalid ident is provided by referenced loader");
3157
+ obj.ident = ident;
3163
3158
  }
3164
- }), obj.request = loader, Object.preventExtensions && Object.preventExtensions(obj), obj;
3165
- }(loaderItem, compiler);
3159
+ obj.type = "" === value.type ? void 0 : value.type, null === obj.options || void 0 === obj.options ? obj.query = "" : "string" == typeof obj.options ? obj.query = `?${obj.options}` : obj.ident ? obj.query = `??${obj.ident}` : "object" == typeof obj.options && obj.options.ident ? obj.query = `??${obj.options.ident}` : obj.query = `?${JSON.stringify(obj.options)}`;
3160
+ }
3161
+ }), obj.request = loader, Object.preventExtensions && Object.preventExtensions(obj), obj);
3166
3162
  this.request = request, this.path = path, this.query = query, this.fragment = fragment, this.options = options, this.ident = ident, this.normal = normal, this.pitch = pitch, this.raw = raw, this.type = type, this.parallel = !!ident && compiler.__internal__ruleSet.references.get(`${ident}$$parallelism`), this.loaderItem = loaderItem, this.loaderItem.data = this.loaderItem.data ?? {};
3167
3163
  }
3168
3164
  get pitchExecuted() {
@@ -3428,9 +3424,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3428
3424
  is_pitch: pitch,
3429
3425
  resource: resource
3430
3426
  }
3431
- }), parallelism) result = await service_run(loaderName, {
3432
- loaderContext: (()=>{
3433
- let normalModule = loaderContext._module instanceof binding_.NormalModule ? loaderContext._module : void 0, workerLoaderContext = {
3427
+ }), parallelism) {
3428
+ let normalModule, workerLoaderContext;
3429
+ result = await service_run(loaderName, {
3430
+ loaderContext: (normalModule = loaderContext._module instanceof binding_.NormalModule ? loaderContext._module : void 0, Object.assign(workerLoaderContext = {
3434
3431
  hot: loaderContext.hot,
3435
3432
  context: loaderContext.context,
3436
3433
  resourcePath: loaderContext.resourcePath,
@@ -3483,125 +3480,125 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3483
3480
  userRequest: normalModule?.userRequest,
3484
3481
  rawRequest: normalModule?.rawRequest
3485
3482
  }
3486
- };
3487
- return Object.assign(workerLoaderContext, compiler.options.loader), workerLoaderContext;
3488
- })(),
3489
- loaderState,
3490
- args
3491
- }, {
3492
- handleIncomingRequest (requestType, ...args) {
3493
- switch(requestType){
3494
- case "AddDependency":
3495
- loaderContext.addDependency(args[0]);
3496
- break;
3497
- case "AddContextDependency":
3498
- loaderContext.addContextDependency(args[0]);
3499
- break;
3500
- case "AddMissingDependency":
3501
- loaderContext.addMissingDependency(args[0]);
3502
- break;
3503
- case "AddBuildDependency":
3504
- loaderContext.addBuildDependency(args[0]);
3505
- break;
3506
- case "GetDependencies":
3507
- return loaderContext.getDependencies();
3508
- case "GetContextDependencies":
3509
- return loaderContext.getContextDependencies();
3510
- case "GetMissingDependencies":
3511
- return loaderContext.getMissingDependencies();
3512
- case "ClearDependencies":
3513
- loaderContext.clearDependencies();
3514
- break;
3515
- case "Resolve":
3516
- return new Promise((resolve, reject)=>{
3517
- loaderContext.resolve(args[0], args[1], (err, result)=>{
3518
- err ? reject(err) : resolve(result);
3519
- });
3520
- });
3521
- case "GetResolve":
3522
- return new Promise((resolve, reject)=>{
3523
- loaderContext.getResolve(args[0])(args[1], args[2], (err, result)=>{
3524
- err ? reject(err) : resolve(result);
3525
- });
3526
- });
3527
- case "GetLogger":
3528
- {
3529
- let [type, name, arg] = args;
3530
- loaderContext.getLogger(name)[type](...arg);
3531
- }
3532
- case "EmitError":
3533
- {
3534
- let workerError = args[0], error = Error(workerError.message);
3535
- error.stack = workerError.stack, error.name = workerError.name, loaderContext.emitError(error);
3483
+ }, compiler.options.loader), workerLoaderContext),
3484
+ loaderState,
3485
+ args
3486
+ }, {
3487
+ handleIncomingRequest (requestType, ...args) {
3488
+ switch(requestType){
3489
+ case "AddDependency":
3490
+ loaderContext.addDependency(args[0]);
3536
3491
  break;
3537
- }
3538
- case "EmitWarning":
3539
- {
3540
- let workerError = args[0], error = Error(workerError.message);
3541
- error.stack = workerError.stack, error.name = workerError.name, loaderContext.emitWarning(error);
3492
+ case "AddContextDependency":
3493
+ loaderContext.addContextDependency(args[0]);
3542
3494
  break;
3543
- }
3544
- case "EmitFile":
3545
- {
3546
- let [name, content, sourceMap, assetInfo] = args;
3547
- loaderContext.emitFile(name, content, sourceMap, assetInfo);
3495
+ case "AddMissingDependency":
3496
+ loaderContext.addMissingDependency(args[0]);
3548
3497
  break;
3549
- }
3550
- case "EmitDiagnostic":
3551
- {
3552
- let diagnostic = args[0];
3553
- loaderContext.experiments.emitDiagnostic(diagnostic);
3498
+ case "AddBuildDependency":
3499
+ loaderContext.addBuildDependency(args[0]);
3554
3500
  break;
3555
- }
3556
- case "SetCacheable":
3557
- {
3558
- let cacheable = args[0];
3559
- loaderContext.cacheable(cacheable);
3501
+ case "GetDependencies":
3502
+ return loaderContext.getDependencies();
3503
+ case "GetContextDependencies":
3504
+ return loaderContext.getContextDependencies();
3505
+ case "GetMissingDependencies":
3506
+ return loaderContext.getMissingDependencies();
3507
+ case "ClearDependencies":
3508
+ loaderContext.clearDependencies();
3560
3509
  break;
3561
- }
3562
- case "ImportModule":
3563
- return loaderContext.importModule(args[0], args[1]);
3564
- case "UpdateLoaderObjects":
3565
- {
3566
- let updates = args[0];
3567
- loaderContext.loaders = loaderContext.loaders.map((item, index)=>{
3568
- let update = updates[index];
3569
- return item.loaderItem.data = update.data, update.pitchExecuted && (item.pitchExecuted = !0), update.normalExecuted && (item.normalExecuted = !0), item;
3510
+ case "Resolve":
3511
+ return new Promise((resolve, reject)=>{
3512
+ loaderContext.resolve(args[0], args[1], (err, result)=>{
3513
+ err ? reject(err) : resolve(result);
3514
+ });
3570
3515
  });
3571
- break;
3572
- }
3573
- case "CompilationGetPath":
3574
- {
3575
- let filename = args[0], data = args[1];
3576
- return compiler._lastCompilation.getPath(filename, data);
3577
- }
3578
- case "CompilationGetPathWithInfo":
3579
- {
3580
- let filename = args[0], data = args[1];
3581
- return compiler._lastCompilation.getPathWithInfo(filename, data);
3582
- }
3583
- case "CompilationGetAssetPath":
3584
- {
3585
- let filename = args[0], data = args[1];
3586
- return compiler._lastCompilation.getAssetPath(filename, data);
3587
- }
3588
- case "CompilationGetAssetPathWithInfo":
3589
- {
3590
- let filename = args[0], data = args[1];
3591
- return compiler._lastCompilation.getAssetPathWithInfo(filename, data);
3592
- }
3593
- default:
3594
- throw Error(`Unknown request type: ${requestType}`);
3516
+ case "GetResolve":
3517
+ return new Promise((resolve, reject)=>{
3518
+ loaderContext.getResolve(args[0])(args[1], args[2], (err, result)=>{
3519
+ err ? reject(err) : resolve(result);
3520
+ });
3521
+ });
3522
+ case "GetLogger":
3523
+ {
3524
+ let [type, name, arg] = args;
3525
+ loaderContext.getLogger(name)[type](...arg);
3526
+ break;
3527
+ }
3528
+ case "EmitError":
3529
+ {
3530
+ let workerError = args[0], error = Error(workerError.message);
3531
+ error.stack = workerError.stack, error.name = workerError.name, loaderContext.emitError(error);
3532
+ break;
3533
+ }
3534
+ case "EmitWarning":
3535
+ {
3536
+ let workerError = args[0], error = Error(workerError.message);
3537
+ error.stack = workerError.stack, error.name = workerError.name, loaderContext.emitWarning(error);
3538
+ break;
3539
+ }
3540
+ case "EmitFile":
3541
+ {
3542
+ let [name, content, sourceMap, assetInfo] = args;
3543
+ loaderContext.emitFile(name, content, sourceMap, assetInfo);
3544
+ break;
3545
+ }
3546
+ case "EmitDiagnostic":
3547
+ {
3548
+ let diagnostic = args[0];
3549
+ loaderContext.experiments.emitDiagnostic(diagnostic);
3550
+ break;
3551
+ }
3552
+ case "SetCacheable":
3553
+ {
3554
+ let cacheable = args[0];
3555
+ loaderContext.cacheable(cacheable);
3556
+ break;
3557
+ }
3558
+ case "ImportModule":
3559
+ return loaderContext.importModule(args[0], args[1]);
3560
+ case "UpdateLoaderObjects":
3561
+ {
3562
+ let updates = args[0];
3563
+ loaderContext.loaders = loaderContext.loaders.map((item, index)=>{
3564
+ let update = updates[index];
3565
+ return item.loaderItem.data = update.data, update.pitchExecuted && (item.pitchExecuted = !0), update.normalExecuted && (item.normalExecuted = !0), item;
3566
+ });
3567
+ break;
3568
+ }
3569
+ case "CompilationGetPath":
3570
+ {
3571
+ let filename = args[0], data = args[1];
3572
+ return compiler._lastCompilation.getPath(filename, data);
3573
+ }
3574
+ case "CompilationGetPathWithInfo":
3575
+ {
3576
+ let filename = args[0], data = args[1];
3577
+ return compiler._lastCompilation.getPathWithInfo(filename, data);
3578
+ }
3579
+ case "CompilationGetAssetPath":
3580
+ {
3581
+ let filename = args[0], data = args[1];
3582
+ return compiler._lastCompilation.getAssetPath(filename, data);
3583
+ }
3584
+ case "CompilationGetAssetPathWithInfo":
3585
+ {
3586
+ let filename = args[0], data = args[1];
3587
+ return compiler._lastCompilation.getAssetPathWithInfo(filename, data);
3588
+ }
3589
+ default:
3590
+ throw Error(`Unknown request type: ${requestType}`);
3591
+ }
3595
3592
  }
3596
- }
3597
- }) || [];
3598
- else {
3599
- var args1, raw;
3600
- loaderState === binding_.JsLoaderState.Normal && (args1 = args, !(raw = !!currentLoaderObject?.raw) && args1[0] instanceof Uint8Array ? args1[0] = function(buf) {
3601
- let str = decoder.decode(buf.buffer instanceof SharedArrayBuffer ? Buffer.from(buf) : buf);
3602
- return 0xfeff === str.charCodeAt(0) ? str.slice(1) : str;
3603
- }(args1[0]) : raw && "string" == typeof args1[0] && (args1[0] = Buffer.from(args1[0], "utf-8")), raw && args1[0] instanceof Uint8Array && !Buffer.isBuffer(args1[0]) && (args1[0] = Buffer.from(args1[0].buffer))), result = await utils_runSyncOrAsync(fn, loaderContext, args) || [];
3604
- }
3593
+ }) || [];
3594
+ } else loaderState === binding_.JsLoaderState.Normal && function(args, raw) {
3595
+ if (!raw && args[0] instanceof Uint8Array) {
3596
+ var buf;
3597
+ let str;
3598
+ args[0] = (buf = args[0], 0xfeff === (str = decoder.decode(buf.buffer instanceof SharedArrayBuffer ? Buffer.from(buf) : buf)).charCodeAt(0) ? str.slice(1) : str);
3599
+ } else raw && "string" == typeof args[0] && (args[0] = Buffer.from(args[0], "utf-8"));
3600
+ raw && args[0] instanceof Uint8Array && !Buffer.isBuffer(args[0]) && (args[0] = Buffer.from(args[0].buffer));
3601
+ }(args, !!currentLoaderObject?.raw), result = await utils_runSyncOrAsync(fn, loaderContext, args) || [];
3605
3602
  return JavaScriptTracer.endAsync({
3606
3603
  name: loaderName,
3607
3604
  trackName: loaderName,
@@ -3701,39 +3698,45 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3701
3698
  let o, isBuiltin = !1;
3702
3699
  if (use.loader.startsWith(BUILTIN_LOADER_PREFIX)) {
3703
3700
  let temp = function(identifier, o, options) {
3704
- if (identifier.startsWith(`${BUILTIN_LOADER_PREFIX}swc-loader`)) {
3705
- var o1, options1, options2 = o;
3706
- if (options2 && "object" == typeof options2) {
3707
- options2.jsc ??= {}, options2.jsc.experimental ??= {}, options2.jsc.experimental.disableAllLints ??= !0;
3708
- let { rspackExperiments } = options2;
3709
- rspackExperiments && ((rspackExperiments.import || rspackExperiments.pluginImport) && (rspackExperiments.import = function(pluginImport) {
3710
- if (pluginImport) return pluginImport.map((config)=>{
3711
- let rawConfig = {
3712
- ...config,
3713
- style: {}
3714
- };
3715
- if ("boolean" == typeof config.style) rawConfig.style.bool = config.style;
3716
- else if ("string" == typeof config.style) {
3717
- let isTpl = config.style.includes("{{");
3718
- rawConfig.style[isTpl ? "custom" : "css"] = config.style;
3719
- } else {
3720
- var val;
3721
- val = config.style, "[object Object]" === Object.prototype.toString.call(val) && (rawConfig.style = config.style);
3722
- }
3723
- return config.styleLibraryDirectory && (rawConfig.style = {
3724
- styleLibraryDirectory: config.styleLibraryDirectory
3725
- }), rawConfig;
3701
+ if (identifier.startsWith(`${BUILTIN_LOADER_PREFIX}swc-loader`)) return ((options, _)=>{
3702
+ if (options && "object" == typeof options) {
3703
+ options.jsc ??= {}, options.jsc.experimental ??= {}, options.jsc.experimental.disableAllLints ??= !0;
3704
+ let { rspackExperiments } = options;
3705
+ if (rspackExperiments) {
3706
+ var options1;
3707
+ (rspackExperiments.import || rspackExperiments.pluginImport) && (rspackExperiments.import = function(pluginImport) {
3708
+ if (pluginImport) return pluginImport.map((config)=>{
3709
+ let rawConfig = {
3710
+ ...config,
3711
+ style: {}
3712
+ };
3713
+ if ("boolean" == typeof config.style) rawConfig.style.bool = config.style;
3714
+ else if ("string" == typeof config.style) {
3715
+ let isTpl = config.style.includes("{{");
3716
+ rawConfig.style[isTpl ? "custom" : "css"] = config.style;
3717
+ } else {
3718
+ var val;
3719
+ val = config.style, "[object Object]" === Object.prototype.toString.call(val) && (rawConfig.style = config.style);
3720
+ }
3721
+ return config.styleLibraryDirectory && (rawConfig.style = {
3722
+ styleLibraryDirectory: config.styleLibraryDirectory
3723
+ }), rawConfig;
3724
+ });
3725
+ }(rspackExperiments.import || rspackExperiments.pluginImport)), rspackExperiments.collectTypeScriptInfo && (rspackExperiments.collectTypeScriptInfo = {
3726
+ typeExports: (options1 = rspackExperiments.collectTypeScriptInfo).typeExports,
3727
+ exportedEnum: !0 === options1.exportedEnum ? "all" : !1 === options1.exportedEnum || void 0 === options1.exportedEnum ? "none" : "const-only"
3726
3728
  });
3727
- }(rspackExperiments.import || rspackExperiments.pluginImport)), rspackExperiments.collectTypeScriptInfo && (rspackExperiments.collectTypeScriptInfo = {
3728
- typeExports: (options1 = rspackExperiments.collectTypeScriptInfo).typeExports,
3729
- exportedEnum: !0 === options1.exportedEnum ? "all" : !1 === options1.exportedEnum || void 0 === options1.exportedEnum ? "none" : "const-only"
3730
- }));
3729
+ }
3731
3730
  }
3732
- return options2;
3731
+ return options;
3732
+ })(o, 0);
3733
+ if (identifier.startsWith(`${BUILTIN_LOADER_PREFIX}lightningcss-loader`)) {
3734
+ var o1;
3735
+ return (o1 = o) && "object" == typeof o1 && ("string" == typeof o1.targets && (o1.targets = [
3736
+ o1.targets
3737
+ ]), o1.include && "object" == typeof o1.include && (o1.include = toFeatures(o1.include)), o1.exclude && "object" == typeof o1.exclude && (o1.exclude = toFeatures(o1.exclude))), o1;
3733
3738
  }
3734
- return identifier.startsWith(`${BUILTIN_LOADER_PREFIX}lightningcss-loader`) ? ((o1 = o) && "object" == typeof o1 && ("string" == typeof o1.targets && (o1.targets = [
3735
- o1.targets
3736
- ]), o1.include && "object" == typeof o1.include && (o1.include = toFeatures(o1.include)), o1.exclude && "object" == typeof o1.exclude && (o1.exclude = toFeatures(o1.exclude))), o1) : o;
3739
+ return o;
3737
3740
  }(use.loader, use.options, 0);
3738
3741
  o = isNil(temp) ? void 0 : "string" == typeof temp ? temp : JSON.stringify(temp, null, 2), isBuiltin = !0;
3739
3742
  }
@@ -4188,11 +4191,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4188
4191
  chunks.push(chunk);
4189
4192
  }), stream.on("end", ()=>{
4190
4193
  let bodyBuffer = Buffer.concat(chunks);
4191
- if (!res.complete) return void reject(Error(`${url} request was terminated early`));
4192
- resolve({
4194
+ res.complete ? resolve({
4193
4195
  res,
4194
4196
  body: bodyBuffer
4195
- });
4197
+ }) : reject(Error(`${url} request was terminated early`));
4196
4198
  });
4197
4199
  }).on("error", reject);
4198
4200
  });
@@ -4462,11 +4464,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4462
4464
  var _a;
4463
4465
  (_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
4464
4466
  }), inst._zod.check = (payload)=>{
4467
+ var val, step;
4468
+ let valDecCount, stepDecCount, decCount, valInt;
4465
4469
  if (typeof payload.value != typeof def.value) throw Error("Cannot mix number and bigint in multiple_of check.");
4466
- ("bigint" == typeof payload.value ? payload.value % def.value === BigInt(0) : 0 === function(val, step) {
4467
- let valDecCount = (val.toString().split(".")[1] || "").length, stepDecCount = (step.toString().split(".")[1] || "").length, decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount, valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
4468
- return valInt % Number.parseInt(step.toFixed(decCount).replace(".", "")) / 10 ** decCount;
4469
- }(payload.value, def.value)) || payload.issues.push({
4470
+ ("bigint" == typeof payload.value ? payload.value % def.value === BigInt(0) : 0 == (val = payload.value, step = def.value, valDecCount = (val.toString().split(".")[1] || "").length, stepDecCount = (step.toString().split(".")[1] || "").length, decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount, (valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""))) % Number.parseInt(step.toFixed(decCount).replace(".", "")) / 10 ** decCount)) || payload.issues.push({
4470
4471
  origin: typeof payload.value,
4471
4472
  code: "not_multiple_of",
4472
4473
  divisor: def.value,
@@ -4828,12 +4829,11 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4828
4829
  version: 1
4829
4830
  };
4830
4831
  }), $ZodString = $constructor("$ZodString", (inst, def)=>{
4832
+ var params;
4833
+ let regex;
4831
4834
  $ZodType.init(inst, def), inst._zod.pattern = [
4832
4835
  ...inst?._zod.bag?.patterns ?? []
4833
- ].pop() ?? ((params)=>{
4834
- let regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : "[\\s\\S]*";
4835
- return RegExp(`^${regex}$`);
4836
- })(inst._zod.bag), inst._zod.parse = (payload, _)=>{
4836
+ ].pop() ?? (regex = (params = inst._zod.bag) ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : "[\\s\\S]*", RegExp(`^${regex}$`)), inst._zod.parse = (payload, _)=>{
4837
4837
  if (def.coerce) try {
4838
4838
  payload.value = String(payload.value);
4839
4839
  } catch (_) {}
@@ -4913,16 +4913,13 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4913
4913
  }), $ZodKSUID = $constructor("$ZodKSUID", (inst, def)=>{
4914
4914
  def.pattern ?? (def.pattern = ksuid), $ZodStringFormat.init(inst, def);
4915
4915
  }), $ZodISODateTime = $constructor("$ZodISODateTime", (inst, def)=>{
4916
- def.pattern ?? (def.pattern = function(args) {
4917
- let time = timeSource({
4918
- precision: args.precision
4919
- }), opts = [
4920
- "Z"
4921
- ];
4922
- args.local && opts.push(""), args.offset && opts.push("([+-]\\d{2}:\\d{2})");
4923
- let timeRegex = `${time}(?:${opts.join("|")})`;
4924
- return RegExp(`^${dateSource}T(?:${timeRegex})$`);
4925
- }(def)), $ZodStringFormat.init(inst, def);
4916
+ var args;
4917
+ let time, opts, timeRegex;
4918
+ def.pattern ?? (time = timeSource({
4919
+ precision: (args = def).precision
4920
+ }), opts = [
4921
+ "Z"
4922
+ ], args.local && opts.push(""), args.offset && opts.push("([+-]\\d{2}:\\d{2})"), timeRegex = `${time}(?:${opts.join("|")})`, def.pattern = RegExp(`^${dateSource}T(?:${timeRegex})$`)), $ZodStringFormat.init(inst, def);
4926
4923
  }), $ZodISODate = $constructor("$ZodISODate", (inst, def)=>{
4927
4924
  def.pattern ?? (def.pattern = regexes_date), $ZodStringFormat.init(inst, def);
4928
4925
  }), $ZodISOTime = $constructor("$ZodISOTime", (inst, def)=>{
@@ -5464,11 +5461,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
5464
5461
  return proms.length ? Promise.all(proms).then(()=>payload) : payload;
5465
5462
  };
5466
5463
  }), $ZodEnum = $constructor("$ZodEnum", (inst, def)=>{
5464
+ var entries;
5465
+ let numericValues;
5467
5466
  $ZodType.init(inst, def);
5468
- let values = function(entries) {
5469
- let numericValues = Object.values(entries).filter((v)=>"number" == typeof v);
5470
- return Object.entries(entries).filter(([k, _])=>-1 === numericValues.indexOf(+k)).map(([_, v])=>v);
5471
- }(def.entries);
5467
+ let values = (numericValues = Object.values(entries = def.entries).filter((v)=>"number" == typeof v), Object.entries(entries).filter(([k, _])=>-1 === numericValues.indexOf(+k)).map(([_, v])=>v));
5472
5468
  inst._zod.values = new Set(values), inst._zod.pattern = RegExp(`^(${values.filter((k)=>propertyKeyTypes.has(typeof k)).map((o)=>"string" == typeof o ? escapeRegex(o) : o.toString()).join("|")})$`), inst._zod.parse = (payload, _ctx)=>{
5473
5469
  let input = payload.value;
5474
5470
  return inst._zod.values.has(input) || payload.issues.push({
@@ -5727,36 +5723,37 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
5727
5723
  }), classic_errors_initializer = (inst, issues)=>{
5728
5724
  $ZodError.init(inst, issues), inst.name = "ZodError", Object.defineProperties(inst, {
5729
5725
  format: {
5730
- value: (mapper)=>(function(error, _mapper) {
5731
- let mapper = _mapper || function(issue) {
5732
- return issue.message;
5733
- }, fieldErrors = {
5734
- _errors: []
5735
- }, processError = (error)=>{
5736
- for (let issue of error.issues)if ("invalid_union" === issue.code && issue.errors.length) issue.errors.map((issues)=>processError({
5737
- issues
5738
- }));
5739
- else if ("invalid_key" === issue.code) processError({
5740
- issues: issue.issues
5741
- });
5742
- else if ("invalid_element" === issue.code) processError({
5743
- issues: issue.issues
5744
- });
5745
- else if (0 === issue.path.length) fieldErrors._errors.push(mapper(issue));
5746
- else {
5747
- let curr = fieldErrors, i = 0;
5748
- for(; i < issue.path.length;){
5749
- let el = issue.path[i];
5750
- i === issue.path.length - 1 ? (curr[el] = curr[el] || {
5751
- _errors: []
5752
- }, curr[el]._errors.push(mapper(issue))) : curr[el] = curr[el] || {
5753
- _errors: []
5754
- }, curr = curr[el], i++;
5755
- }
5726
+ value: (mapper)=>{
5727
+ var error;
5728
+ let mapper1, fieldErrors, processError;
5729
+ return error = inst, mapper1 = mapper || function(issue) {
5730
+ return issue.message;
5731
+ }, fieldErrors = {
5732
+ _errors: []
5733
+ }, (processError = (error)=>{
5734
+ for (let issue of error.issues)if ("invalid_union" === issue.code && issue.errors.length) issue.errors.map((issues)=>processError({
5735
+ issues
5736
+ }));
5737
+ else if ("invalid_key" === issue.code) processError({
5738
+ issues: issue.issues
5739
+ });
5740
+ else if ("invalid_element" === issue.code) processError({
5741
+ issues: issue.issues
5742
+ });
5743
+ else if (0 === issue.path.length) fieldErrors._errors.push(mapper1(issue));
5744
+ else {
5745
+ let curr = fieldErrors, i = 0;
5746
+ for(; i < issue.path.length;){
5747
+ let el = issue.path[i];
5748
+ i === issue.path.length - 1 ? (curr[el] = curr[el] || {
5749
+ _errors: []
5750
+ }, curr[el]._errors.push(mapper1(issue))) : curr[el] = curr[el] || {
5751
+ _errors: []
5752
+ }, curr = curr[el], i++;
5756
5753
  }
5757
- };
5758
- return processError(error), fieldErrors;
5759
- })(inst, mapper)
5754
+ }
5755
+ })(error), fieldErrors;
5756
+ }
5760
5757
  },
5761
5758
  flatten: {
5762
5759
  value: (mapper)=>(function(error, mapper = (issue)=>issue.message) {
@@ -5838,17 +5835,15 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
5838
5835
  fn: fn,
5839
5836
  ...normalizeParams(_params)
5840
5837
  });
5841
- }(check, params)), inst.superRefine = (refinement)=>inst.check(function(fn) {
5842
- let ch = function(fn) {
5843
- let ch = new $ZodCheck({
5844
- check: "custom"
5845
- });
5846
- return ch._zod.check = fn, ch;
5847
- }((payload)=>(payload.addIssue = (issue)=>{
5848
- "string" == typeof issue ? payload.issues.push(util_issue(issue, payload.value, ch._zod.def)) : (issue.fatal && (issue.continue = !1), issue.code ?? (issue.code = "custom"), issue.input ?? (issue.input = payload.value), issue.inst ?? (issue.inst = ch), issue.continue ?? (issue.continue = !ch._zod.def.abort), payload.issues.push(util_issue(issue)));
5849
- }, fn(payload.value, payload)));
5850
- return ch;
5851
- }(refinement)), inst.overwrite = (fn)=>inst.check(_overwrite(fn)), inst.optional = ()=>schemas_optional(inst), inst.nullable = ()=>nullable(inst), inst.nullish = ()=>schemas_optional(nullable(inst)), inst.nonoptional = (params)=>new ZodNonOptional({
5838
+ }(check, params)), inst.superRefine = (refinement)=>{
5839
+ var fn, fn1;
5840
+ let ch, ch1;
5841
+ return inst.check((fn = refinement, ch1 = (fn1 = (payload)=>(payload.addIssue = (issue)=>{
5842
+ "string" == typeof issue ? payload.issues.push(util_issue(issue, payload.value, ch1._zod.def)) : (issue.fatal && (issue.continue = !1), issue.code ?? (issue.code = "custom"), issue.input ?? (issue.input = payload.value), issue.inst ?? (issue.inst = ch1), issue.continue ?? (issue.continue = !ch1._zod.def.abort), payload.issues.push(util_issue(issue)));
5843
+ }, fn(payload.value, payload)), (ch = new $ZodCheck({
5844
+ check: "custom"
5845
+ }))._zod.check = fn1, ch)));
5846
+ }, inst.overwrite = (fn)=>inst.check(_overwrite(fn)), inst.optional = ()=>schemas_optional(inst), inst.nullable = ()=>nullable(inst), inst.nullish = ()=>schemas_optional(nullable(inst)), inst.nonoptional = (params)=>new ZodNonOptional({
5852
5847
  type: "nonoptional",
5853
5848
  innerType: inst,
5854
5849
  ...normalizeParams(params)
@@ -6509,9 +6504,9 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
6509
6504
  $ZodCustom.init(inst, def), ZodType.init(inst, def);
6510
6505
  });
6511
6506
  function custom(fn, _params) {
6512
- var Class = ZodCustom, fn1 = fn ?? (()=>!0), _params1 = _params;
6513
- let norm = normalizeParams(_params1);
6514
- return norm.abort ?? (norm.abort = !0), new Class({
6507
+ var Class, fn1;
6508
+ let norm;
6509
+ return Class = ZodCustom, fn1 = fn ?? (()=>!0), (norm = normalizeParams(_params)).abort ?? (norm.abort = !0), new Class({
6515
6510
  type: "custom",
6516
6511
  check: "custom",
6517
6512
  fn: fn1,
@@ -7174,9 +7169,9 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7174
7169
  let json = JSON.parse(data);
7175
7170
  "function" != typeof c.templateParameters && (json.compilation = compilation);
7176
7171
  let renderTag = function() {
7177
- var tag = this;
7178
- let attributes = Object.keys(tag.attributes || {}).filter((attributeName)=>"" === tag.attributes[attributeName] || tag.attributes[attributeName]).map((attributeName)=>"true" === tag.attributes[attributeName] ? attributeName : `${attributeName}="${tag.attributes[attributeName]}"`);
7179
- return `<${[
7172
+ var tag;
7173
+ let attributes;
7174
+ return tag = this, attributes = Object.keys(tag.attributes || {}).filter((attributeName)=>"" === tag.attributes[attributeName] || tag.attributes[attributeName]).map((attributeName)=>"true" === tag.attributes[attributeName] ? attributeName : `${attributeName}="${tag.attributes[attributeName]}"`), `<${[
7180
7175
  tag.tagName
7181
7176
  ].concat(attributes).join(" ")}${tag.voidTag && !tag.innerHTML ? "/" : ""}>${tag.innerHTML || ""}${tag.voidTag && !tag.innerHTML ? "" : `</${tag.tagName}>`}`;
7182
7177
  }, renderTagList = function() {
@@ -7193,14 +7188,13 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7193
7188
  return json;
7194
7189
  }
7195
7190
  this.hooks.compilation.tap("HtmlRspackPlugin", (compilationInstance)=>{
7196
- var compilation1 = compilation = compilationInstance, uid1 = uid, options = c;
7197
- let optionsMap = compilationOptionsMap.get(compilation1) || {};
7198
- optionsMap[uid1] = options, compilationOptionsMap.set(compilation1, optionsMap);
7191
+ var compilation1, uid1, options;
7192
+ let optionsMap;
7193
+ compilation1 = compilation = compilationInstance, uid1 = uid, options = c, (optionsMap = compilationOptionsMap.get(compilation1) || {})[uid1] = options, compilationOptionsMap.set(compilation1, optionsMap);
7199
7194
  }), this.hooks.done.tap("HtmlRspackPlugin", (stats)=>{
7200
- compilation = stats.compilation, hooks_compilationHooksMap.delete(compilation);
7201
- var compilation, compilation1 = stats.compilation, uid1 = uid;
7202
- let optionsMap = compilationOptionsMap.get(compilation1) || {};
7203
- delete optionsMap[uid1], 0 === Object.keys(optionsMap).length ? compilationOptionsMap.delete(compilation1) : compilationOptionsMap.set(compilation1, optionsMap);
7195
+ var compilation, compilation1, uid1;
7196
+ let optionsMap;
7197
+ compilation = stats.compilation, hooks_compilationHooksMap.delete(compilation), compilation1 = stats.compilation, uid1 = uid, optionsMap = compilationOptionsMap.get(compilation1) || {}, delete optionsMap[uid1], 0 === Object.keys(optionsMap).length ? compilationOptionsMap.delete(compilation1) : compilationOptionsMap.set(compilation1, optionsMap);
7204
7198
  });
7205
7199
  let templateContent = c.templateContent;
7206
7200
  if ("function" == typeof templateContent) templateFn = async (data)=>{
@@ -7582,7 +7576,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7582
7576
  } catch (e) {
7583
7577
  validateError = e;
7584
7578
  }
7585
- let finalOptions = validateError ? {
7579
+ const finalOptions = validateError ? {
7586
7580
  hashFuncNames: [
7587
7581
  "sha384"
7588
7582
  ],
@@ -7660,11 +7654,11 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7660
7654
  });
7661
7655
  });
7662
7656
  }), "string" == typeof this.options.htmlPlugin && this.options.htmlPlugin !== NATIVE_HTML_PLUGIN) {
7657
+ var htmlPlugin, obj;
7663
7658
  let self = this;
7664
7659
  try {
7665
- var obj, htmlPlugin = require(this.options.htmlPlugin);
7666
- let getHooks = htmlPlugin.getCompilationHooks || htmlPlugin.getHooks;
7667
- "function" == typeof getHooks && compiler.hooks.thisCompilation.tap(SubresourceIntegrityPlugin_PLUGIN_NAME, (compilation)=>{
7660
+ let getHooks;
7661
+ getHooks = (htmlPlugin = require(this.options.htmlPlugin)).getCompilationHooks || htmlPlugin.getHooks, "function" == typeof getHooks && compiler.hooks.thisCompilation.tap(SubresourceIntegrityPlugin_PLUGIN_NAME, (compilation)=>{
7668
7662
  if ("string" == typeof compiler.options.output.chunkLoading && [
7669
7663
  "require",
7670
7664
  "async-node"
@@ -7702,7 +7696,8 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7702
7696
  include: options?.include,
7703
7697
  exclude: options?.exclude,
7704
7698
  extractComments: function(extractComments) {
7705
- let conditionStr = (condition)=>{
7699
+ var value;
7700
+ let type, conditionStr = (condition)=>{
7706
7701
  if (void 0 === condition || !0 === condition) return "@preserve|@lic|@cc_on|^\\**!";
7707
7702
  if (!1 === condition) throw Error("unreachable");
7708
7703
  return condition.source;
@@ -7716,10 +7711,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7716
7711
  if (extractComments instanceof RegExp) return {
7717
7712
  condition: extractComments.source
7718
7713
  };
7719
- if (function(value) {
7720
- let type = typeof value;
7721
- return null != value && ("object" === type || "function" === type);
7722
- }(extractComments)) {
7714
+ if (type = typeof (value = extractComments), null != value && ("object" === type || "function" === type)) {
7723
7715
  if (!1 === extractComments.condition) return;
7724
7716
  return {
7725
7717
  condition: conditionStr(extractComments.condition),
@@ -7769,7 +7761,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
7769
7761
  };
7770
7762
  }
7771
7763
  }
7772
- let DELTA_A_TO_Z = 26, NUMBER_OF_IDENTIFIER_START_CHARS = 54, NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS = 64, FUNCTION_CONTENT_REGEX = /^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g, INDENT_MULTILINE_REGEX = /^\t/gm, LINE_SEPARATOR_REGEX = /\r?\n/g, IDENTIFIER_NAME_REPLACE_REGEX = /^([^a-zA-Z$_])/, IDENTIFIER_ALPHA_NUMERIC_NAME_REPLACE_REGEX = /[^a-zA-Z0-9$]+/g, COMMENT_END_REGEX = /\*\//g, PATH_NAME_NORMALIZE_REPLACE_REGEX = /[^a-zA-Z0-9_!§$()=\-^°]+/g, MATCH_PADDED_HYPHENS_REPLACE_REGEX = /^-|-$/g;
7764
+ let JSON_MODULE_TYPE = "json", DELTA_A_TO_Z = 26, NUMBER_OF_IDENTIFIER_START_CHARS = 54, NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS = 64, FUNCTION_CONTENT_REGEX = /^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g, INDENT_MULTILINE_REGEX = /^\t/gm, LINE_SEPARATOR_REGEX = /\r?\n/g, IDENTIFIER_NAME_REPLACE_REGEX = /^([^a-zA-Z$_])/, IDENTIFIER_ALPHA_NUMERIC_NAME_REPLACE_REGEX = /[^a-zA-Z0-9$]+/g, COMMENT_END_REGEX = /\*\//g, PATH_NAME_NORMALIZE_REPLACE_REGEX = /[^a-zA-Z0-9_!§$()=\-^°]+/g, MATCH_PADDED_HYPHENS_REPLACE_REGEX = /^-|-$/g;
7773
7765
  class Template {
7774
7766
  static getFunctionContent(fn) {
7775
7767
  return fn.toString().replace(FUNCTION_CONTENT_REGEX, "").replace(INDENT_MULTILINE_REGEX, "").replace(LINE_SEPARATOR_REGEX, "\n");
@@ -8670,7 +8662,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8670
8662
  }, applyExperimentsDefaults = (experiments, { development })=>{
8671
8663
  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);
8672
8664
  }, applybundlerInfoDefaults = (rspackFuture, library)=>{
8673
- "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-740cd963-20250929173807"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
8665
+ "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-61eba72c-20251001174057"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
8674
8666
  }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
8675
8667
  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 })=>{
8676
8668
  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, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
@@ -8679,7 +8671,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
8679
8671
  })(module.parser.javascript, {
8680
8672
  usedExports,
8681
8673
  inlineConst
8682
- }), defaults_F(module.parser, "json", ()=>({})), assertNotNill(module.parser.json), D(module.parser.json, "exportsDepth", "development" === mode ? 1 : Number.MAX_SAFE_INTEGER), defaults_F(module.generator, "json", ()=>({})), assertNotNill(module.generator.json), D(module.generator.json, "JSONParse", !0), css) {
8674
+ }), defaults_F(module.parser, JSON_MODULE_TYPE, ()=>({})), assertNotNill(module.parser[JSON_MODULE_TYPE]), D(module.parser[JSON_MODULE_TYPE], "exportsDepth", "development" === mode ? 1 : Number.MAX_SAFE_INTEGER), defaults_F(module.generator, "json", ()=>({})), assertNotNill(module.generator.json), D(module.generator.json, "JSONParse", !0), css) {
8683
8675
  defaults_F(module.parser, "css", ()=>({})), assertNotNill(module.parser.css), D(module.parser.css, "namedExports", !0), D(module.parser.css, "url", !0), defaults_F(module.parser, "css/auto", ()=>({})), assertNotNill(module.parser["css/auto"]), D(module.parser["css/auto"], "namedExports", !0), D(module.parser["css/auto"], "url", !0), defaults_F(module.parser, "css/module", ()=>({})), assertNotNill(module.parser["css/module"]), D(module.parser["css/module"], "namedExports", !0), D(module.parser["css/module"], "url", !0), defaults_F(module.generator, "css", ()=>({})), assertNotNill(module.generator.css), D(module.generator.css, "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator.css, "esModule", !0), defaults_F(module.generator, "css/auto", ()=>({})), assertNotNill(module.generator["css/auto"]), D(module.generator["css/auto"], "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator["css/auto"], "exportsConvention", "as-is");
8684
8676
  let localIdentName = uniqueName && uniqueName.length > 0 ? "[uniqueName]-[id]-[local]" : "[id]-[local]";
8685
8677
  D(module.generator["css/auto"], "localIdentName", localIdentName), D(module.generator["css/auto"], "esModule", !0), defaults_F(module.generator, "css/module", ()=>({})), assertNotNill(module.generator["css/module"]), D(module.generator["css/module"], "exportsOnly", !targetProperties || !targetProperties.document), D(module.generator["css/module"], "exportsConvention", "as-is"), D(module.generator["css/module"], "localIdentName", localIdentName), D(module.generator["css/module"], "esModule", !0);
@@ -9446,10 +9438,8 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
9446
9438
  throw Error(`${absPath} is neither a posix nor a windows path, and there is no 'dirname' method defined in the file system`);
9447
9439
  })(fs, p);
9448
9440
  return dir === p ? void callback(err) : void mkdirp(fs, dir, (err)=>{
9449
- if (err) return void callback(err);
9450
- fs.mkdir(p, (err)=>{
9451
- if (err) return "EEXIST" === err.code ? void callback() : void callback(err);
9452
- callback();
9441
+ err ? callback(err) : fs.mkdir(p, (err)=>{
9442
+ err ? "EEXIST" === err.code ? callback() : callback(err) : callback();
9453
9443
  });
9454
9444
  });
9455
9445
  }
@@ -9661,8 +9651,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
9661
9651
  }
9662
9652
  }
9663
9653
  let makeWebpackErrorCallback = (callback, hook)=>(err, result)=>{
9664
- if (err) return err instanceof WebpackError ? void callback(err) : void callback(new HookWebpackError(err, hook));
9665
- callback(null, result);
9654
+ err ? err instanceof WebpackError ? callback(err) : callback(new HookWebpackError(err, hook)) : callback(null, result);
9666
9655
  };
9667
9656
  class Cache {
9668
9657
  static STAGE_DISK = 10;
@@ -10314,7 +10303,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
10314
10303
  });
10315
10304
  }
10316
10305
  }
10317
- let CORE_VERSION = "1.5.9-canary-740cd963-20250929173807", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
10306
+ let CORE_VERSION = "1.5.9-canary-61eba72c-20251001174057", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
10318
10307
 
10319
10308
  Help:
10320
10309
  Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
@@ -10846,10 +10835,9 @@ Help:
10846
10835
  });
10847
10836
  }
10848
10837
  close(callback) {
10849
- if (this.watching) return void this.watching.close(()=>{
10838
+ this.watching ? this.watching.close(()=>{
10850
10839
  this.close(callback);
10851
- });
10852
- this.hooks.shutdown.callAsync((err)=>{
10840
+ }) : this.hooks.shutdown.callAsync((err)=>{
10853
10841
  if (err) return callback(err);
10854
10842
  this.cache.shutdown(()=>{
10855
10843
  this.#getInstance((error, instance)=>{
@@ -10895,160 +10883,158 @@ Help:
10895
10883
  return this.#compilationParams = params, params;
10896
10884
  }
10897
10885
  #getInstance(callback) {
10898
- let error = CORE_VERSION === binding_default().EXPECTED_RSPACK_CORE_VERSION || CORE_VERSION.includes("canary") ? null : Error(bindingVersionCheck_errorMessage(CORE_VERSION, binding_default().EXPECTED_RSPACK_CORE_VERSION));
10886
+ var options, compiler, output, module, options1, parser, generator, stats;
10887
+ let mode, experiments, error = CORE_VERSION === binding_default().EXPECTED_RSPACK_CORE_VERSION || CORE_VERSION.includes("canary") ? null : Error(bindingVersionCheck_errorMessage(CORE_VERSION, binding_default().EXPECTED_RSPACK_CORE_VERSION));
10899
10888
  if (error) return callback(error);
10900
10889
  if (this.#instance) return callback(null, this.#instance);
10901
- let options = this.options, rawOptions = ((options, compiler)=>{
10902
- var output, module, options1, parser, generator, stats;
10903
- let mode = options.mode, experiments = options.experiments;
10904
- return {
10905
- name: options.name,
10890
+ let options2 = this.options, rawOptions = (options = options2, compiler = this, mode = options.mode, experiments = options.experiments, {
10891
+ name: options.name,
10892
+ mode,
10893
+ context: options.context,
10894
+ output: {
10895
+ ...output = options.output,
10896
+ environment: function(environment = {}) {
10897
+ return {
10898
+ const: !!environment.const,
10899
+ arrowFunction: !!environment.arrowFunction,
10900
+ nodePrefixForCoreModules: !!environment.nodePrefixForCoreModules,
10901
+ asyncFunction: !!environment.asyncFunction,
10902
+ bigIntLiteral: !!environment.bigIntLiteral,
10903
+ destructuring: !!environment.destructuring,
10904
+ document: !!environment.document,
10905
+ dynamicImport: !!environment.dynamicImport,
10906
+ forOf: !!environment.forOf,
10907
+ globalThis: !!environment.globalThis,
10908
+ module: !!environment.module,
10909
+ optionalChaining: !!environment.optionalChaining,
10910
+ templateLiteral: !!environment.templateLiteral
10911
+ };
10912
+ }(output.environment)
10913
+ },
10914
+ resolve: getRawResolve(options.resolve),
10915
+ resolveLoader: getRawResolve(options.resolveLoader),
10916
+ module: (module = options.module, options1 = {
10917
+ compiler,
10906
10918
  mode,
10907
10919
  context: options.context,
10908
- output: {
10909
- ...output = options.output,
10910
- environment: function(environment = {}) {
10911
- return {
10912
- const: !!environment.const,
10913
- arrowFunction: !!environment.arrowFunction,
10914
- nodePrefixForCoreModules: !!environment.nodePrefixForCoreModules,
10915
- asyncFunction: !!environment.asyncFunction,
10916
- bigIntLiteral: !!environment.bigIntLiteral,
10917
- destructuring: !!environment.destructuring,
10918
- document: !!environment.document,
10919
- dynamicImport: !!environment.dynamicImport,
10920
- forOf: !!environment.forOf,
10921
- globalThis: !!environment.globalThis,
10922
- module: !!environment.module,
10923
- optionalChaining: !!environment.optionalChaining,
10924
- templateLiteral: !!environment.templateLiteral
10925
- };
10926
- }(output.environment)
10927
- },
10928
- resolve: getRawResolve(options.resolve),
10929
- resolveLoader: getRawResolve(options.resolveLoader),
10930
- module: (module = options.module, options1 = {
10931
- compiler,
10932
- mode,
10933
- context: options.context,
10934
- experiments
10935
- }, external_node_assert_default()(!isNil(module.defaultRules), "module.defaultRules should not be nil after defaults"), {
10936
- rules: [
10937
- {
10938
- rules: module.defaultRules
10939
- },
10940
- {
10941
- rules: module.rules
10942
- }
10943
- ].map((rule, index)=>getRawModuleRule(rule, `ruleSet[${index}]`, options1, "javascript/auto")),
10944
- parser: Object.fromEntries(Object.entries(parser = module.parser).map(([k, v])=>[
10945
- k,
10946
- getRawParserOptions(v, k)
10947
- ]).filter(([k, v])=>void 0 !== v)),
10948
- generator: Object.fromEntries(Object.entries(generator = module.generator).map(([k, v])=>[
10949
- k,
10950
- getRawGeneratorOptions(v, k)
10951
- ]).filter(([k, v])=>void 0 !== v)),
10952
- noParse: module.noParse
10953
- }),
10954
- optimization: options.optimization,
10955
- stats: {
10956
- colors: function(options) {
10957
- if ("boolean" == typeof options || "string" == typeof options) return presetToOptions(options);
10958
- if (!options) return {};
10959
- let obj = {
10960
- ...presetToOptions(options.preset),
10961
- ...options
10962
- };
10963
- return delete obj.preset, obj;
10964
- }(stats = options.stats).colors ?? !1
10965
- },
10966
- cache: {
10967
- type: options.cache ? "memory" : "disable"
10968
- },
10969
- experiments,
10970
- node: function(node) {
10971
- if (!1 !== node) return external_node_assert_default()(!isNil(node.__dirname) && !isNil(node.global) && !isNil(node.__filename)), {
10972
- dirname: String(node.__dirname),
10973
- filename: String(node.__filename),
10974
- global: String(node.global)
10920
+ experiments
10921
+ }, external_node_assert_default()(!isNil(module.defaultRules), "module.defaultRules should not be nil after defaults"), {
10922
+ rules: [
10923
+ {
10924
+ rules: module.defaultRules
10925
+ },
10926
+ {
10927
+ rules: module.rules
10928
+ }
10929
+ ].map((rule, index)=>getRawModuleRule(rule, `ruleSet[${index}]`, options1, "javascript/auto")),
10930
+ parser: Object.fromEntries(Object.entries(parser = module.parser).map(([k, v])=>[
10931
+ k,
10932
+ getRawParserOptions(v, k)
10933
+ ]).filter(([k, v])=>void 0 !== v)),
10934
+ generator: Object.fromEntries(Object.entries(generator = module.generator).map(([k, v])=>[
10935
+ k,
10936
+ getRawGeneratorOptions(v, k)
10937
+ ]).filter(([k, v])=>void 0 !== v)),
10938
+ noParse: module.noParse
10939
+ }),
10940
+ optimization: options.optimization,
10941
+ stats: {
10942
+ colors: !!function(options) {
10943
+ if ("boolean" == typeof options || "string" == typeof options) return presetToOptions(options);
10944
+ if (!options) return {};
10945
+ let obj = {
10946
+ ...presetToOptions(options.preset),
10947
+ ...options
10975
10948
  };
10976
- }(options.node),
10977
- profile: options.profile,
10978
- amd: options.amd ? JSON.stringify(options.amd || {}) : void 0,
10979
- bail: options.bail,
10980
- __references: {}
10981
- };
10982
- })(options, this);
10949
+ return delete obj.preset, obj;
10950
+ }(stats = options.stats).colors
10951
+ },
10952
+ cache: {
10953
+ type: options.cache ? "memory" : "disable"
10954
+ },
10955
+ experiments,
10956
+ node: function(node) {
10957
+ if (!1 !== node) return external_node_assert_default()(!isNil(node.__dirname) && !isNil(node.global) && !isNil(node.__filename)), {
10958
+ dirname: String(node.__dirname),
10959
+ filename: String(node.__filename),
10960
+ global: String(node.global)
10961
+ };
10962
+ }(options.node),
10963
+ profile: options.profile,
10964
+ amd: options.amd ? JSON.stringify(options.amd || {}) : void 0,
10965
+ bail: options.bail,
10966
+ __references: {}
10967
+ });
10983
10968
  rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries()), rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
10984
10969
  let instanceBinding = __webpack_require__("@rspack/binding");
10985
10970
  this.#registers = this.#createHooksRegisters();
10986
- let inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
10971
+ let inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options2.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
10987
10972
  this.#instance = new instanceBinding.JsCompiler(this.compilerPath, rawOptions, this.#builtinPlugins, this.#registers, ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem), this.intermediateFileSystem ? ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem) : void 0, inputFileSystem, ResolverFactory.__to_binding(this.resolverFactory)), callback(null, this.#instance);
10988
10973
  }
10989
10974
  #createHooksRegisters() {
10990
- let getCompiler, createTap, getCompiler1, createTap1, createMapTap, getCompiler2, createTap2, createMapTap1, getCompiler3, createTap3, getCompiler4, getCompiler5, createTap4, getCompiler6, createTap5, ref = new WeakRef(this), getCompiler7 = ()=>ref.deref(), createTap6 = this.#createHookRegisterTaps.bind(this), createMapTap2 = this.#createHookMapRegisterTaps.bind(this);
10975
+ var getCompiler, createTap;
10976
+ let getCompiler1, createTap1, getCompiler2, createTap2, createMapTap, getCompiler3, createTap3, createMapTap1, getCompiler4, createTap4, getCompiler5, getOptions, getCompiler6, createTap5, getCompiler7, createTap6, ref = new WeakRef(this), getCompiler8 = ()=>ref.deref(), createTap7 = this.#createHookRegisterTaps.bind(this), createMapTap2 = this.#createHookMapRegisterTaps.bind(this);
10991
10977
  return {
10992
- ...(getCompiler = getCompiler7, {
10993
- registerCompilerThisCompilationTaps: (createTap = createTap6)(binding_default().RegisterJsTapKind.CompilerThisCompilation, function() {
10994
- return getCompiler().hooks.thisCompilation;
10978
+ ...(getCompiler1 = getCompiler8, {
10979
+ registerCompilerThisCompilationTaps: (createTap1 = createTap7)(binding_default().RegisterJsTapKind.CompilerThisCompilation, function() {
10980
+ return getCompiler1().hooks.thisCompilation;
10995
10981
  }, function(queried) {
10996
10982
  return function(native) {
10997
- return getCompiler().__internal__create_compilation(native), queried.call(getCompiler().__internal__get_compilation(), getCompiler().__internal__get_compilation_params());
10983
+ return getCompiler1().__internal__create_compilation(native), queried.call(getCompiler1().__internal__get_compilation(), getCompiler1().__internal__get_compilation_params());
10998
10984
  };
10999
10985
  }),
11000
- registerCompilerCompilationTaps: createTap(binding_default().RegisterJsTapKind.CompilerCompilation, function() {
11001
- return getCompiler().hooks.compilation;
10986
+ registerCompilerCompilationTaps: createTap1(binding_default().RegisterJsTapKind.CompilerCompilation, function() {
10987
+ return getCompiler1().hooks.compilation;
11002
10988
  }, function(queried) {
11003
10989
  return function() {
11004
- return queried.call(getCompiler().__internal__get_compilation(), getCompiler().__internal__get_compilation_params());
10990
+ return queried.call(getCompiler1().__internal__get_compilation(), getCompiler1().__internal__get_compilation_params());
11005
10991
  };
11006
10992
  }),
11007
- registerCompilerMakeTaps: createTap(binding_default().RegisterJsTapKind.CompilerMake, function() {
11008
- return getCompiler().hooks.make;
10993
+ registerCompilerMakeTaps: createTap1(binding_default().RegisterJsTapKind.CompilerMake, function() {
10994
+ return getCompiler1().hooks.make;
11009
10995
  }, function(queried) {
11010
10996
  return async function() {
11011
- return await queried.promise(getCompiler().__internal__get_compilation());
10997
+ return await queried.promise(getCompiler1().__internal__get_compilation());
11012
10998
  };
11013
10999
  }),
11014
- registerCompilerFinishMakeTaps: createTap(binding_default().RegisterJsTapKind.CompilerFinishMake, function() {
11015
- return getCompiler().hooks.finishMake;
11000
+ registerCompilerFinishMakeTaps: createTap1(binding_default().RegisterJsTapKind.CompilerFinishMake, function() {
11001
+ return getCompiler1().hooks.finishMake;
11016
11002
  }, function(queried) {
11017
11003
  return async function() {
11018
- return await queried.promise(getCompiler().__internal__get_compilation());
11004
+ return await queried.promise(getCompiler1().__internal__get_compilation());
11019
11005
  };
11020
11006
  }),
11021
- registerCompilerShouldEmitTaps: createTap(binding_default().RegisterJsTapKind.CompilerShouldEmit, function() {
11022
- return getCompiler().hooks.shouldEmit;
11007
+ registerCompilerShouldEmitTaps: createTap1(binding_default().RegisterJsTapKind.CompilerShouldEmit, function() {
11008
+ return getCompiler1().hooks.shouldEmit;
11023
11009
  }, function(queried) {
11024
11010
  return function() {
11025
- return queried.call(getCompiler().__internal__get_compilation());
11011
+ return queried.call(getCompiler1().__internal__get_compilation());
11026
11012
  };
11027
11013
  }),
11028
- registerCompilerEmitTaps: createTap(binding_default().RegisterJsTapKind.CompilerEmit, function() {
11029
- return getCompiler().hooks.emit;
11014
+ registerCompilerEmitTaps: createTap1(binding_default().RegisterJsTapKind.CompilerEmit, function() {
11015
+ return getCompiler1().hooks.emit;
11030
11016
  }, function(queried) {
11031
11017
  return async function() {
11032
- return await queried.promise(getCompiler().__internal__get_compilation());
11018
+ return await queried.promise(getCompiler1().__internal__get_compilation());
11033
11019
  };
11034
11020
  }),
11035
- registerCompilerAfterEmitTaps: createTap(binding_default().RegisterJsTapKind.CompilerAfterEmit, function() {
11036
- return getCompiler().hooks.afterEmit;
11021
+ registerCompilerAfterEmitTaps: createTap1(binding_default().RegisterJsTapKind.CompilerAfterEmit, function() {
11022
+ return getCompiler1().hooks.afterEmit;
11037
11023
  }, function(queried) {
11038
11024
  return async function() {
11039
- return await queried.promise(getCompiler().__internal__get_compilation());
11025
+ return await queried.promise(getCompiler1().__internal__get_compilation());
11040
11026
  };
11041
11027
  }),
11042
- registerCompilerAssetEmittedTaps: createTap(binding_default().RegisterJsTapKind.CompilerAssetEmitted, function() {
11043
- return getCompiler().hooks.assetEmitted;
11028
+ registerCompilerAssetEmittedTaps: createTap1(binding_default().RegisterJsTapKind.CompilerAssetEmitted, function() {
11029
+ return getCompiler1().hooks.assetEmitted;
11044
11030
  }, function(queried) {
11045
11031
  return async function({ filename, targetPath, outputPath }) {
11046
11032
  return queried.promise(filename, {
11047
- compilation: getCompiler().__internal__get_compilation(),
11033
+ compilation: getCompiler1().__internal__get_compilation(),
11048
11034
  targetPath,
11049
11035
  outputPath,
11050
11036
  get source () {
11051
- return getCompiler().__internal__get_compilation().getAsset(filename)?.source;
11037
+ return getCompiler1().__internal__get_compilation().getAsset(filename)?.source;
11052
11038
  },
11053
11039
  get content () {
11054
11040
  return this.source?.buffer();
@@ -11057,9 +11043,9 @@ Help:
11057
11043
  };
11058
11044
  })
11059
11045
  }),
11060
- ...(getCompiler1 = getCompiler7, createTap1 = createTap6, createMapTap = createMapTap2, {
11061
- registerCompilationAdditionalTreeRuntimeRequirementsTaps: createTap1(binding_default().RegisterJsTapKind.CompilationAdditionalTreeRuntimeRequirements, function() {
11062
- return getCompiler1().__internal__get_compilation().hooks.additionalTreeRuntimeRequirements;
11046
+ ...(getCompiler2 = getCompiler8, createTap2 = createTap7, createMapTap = createMapTap2, {
11047
+ registerCompilationAdditionalTreeRuntimeRequirementsTaps: createTap2(binding_default().RegisterJsTapKind.CompilationAdditionalTreeRuntimeRequirements, function() {
11048
+ return getCompiler2().__internal__get_compilation().hooks.additionalTreeRuntimeRequirements;
11063
11049
  }, function(queried) {
11064
11050
  return function({ chunk, runtimeRequirements }) {
11065
11051
  let set = __from_binding_runtime_globals(runtimeRequirements);
@@ -11069,7 +11055,7 @@ Help:
11069
11055
  };
11070
11056
  }),
11071
11057
  registerCompilationRuntimeRequirementInTreeTaps: createMapTap(binding_default().RegisterJsTapKind.CompilationRuntimeRequirementInTree, function() {
11072
- return getCompiler1().__internal__get_compilation().hooks.runtimeRequirementInTree;
11058
+ return getCompiler2().__internal__get_compilation().hooks.runtimeRequirementInTree;
11073
11059
  }, function(queried) {
11074
11060
  return function({ chunk, allRuntimeRequirements, runtimeRequirements }) {
11075
11061
  let set = __from_binding_runtime_globals(runtimeRequirements), all = __from_binding_runtime_globals(allRuntimeRequirements), customRuntimeGlobals = new Set(), originalAdd = all.add.bind(all), add = function(r) {
@@ -11083,8 +11069,8 @@ Help:
11083
11069
  };
11084
11070
  };
11085
11071
  }),
11086
- registerCompilationRuntimeModuleTaps: createTap1(binding_default().RegisterJsTapKind.CompilationRuntimeModule, function() {
11087
- return getCompiler1().__internal__get_compilation().hooks.runtimeModule;
11072
+ registerCompilationRuntimeModuleTaps: createTap2(binding_default().RegisterJsTapKind.CompilationRuntimeModule, function() {
11073
+ return getCompiler2().__internal__get_compilation().hooks.runtimeModule;
11088
11074
  }, function(queried) {
11089
11075
  return function({ module, chunk }) {
11090
11076
  let originSource = module.source?.source;
@@ -11093,29 +11079,29 @@ Help:
11093
11079
  if (newSource && newSource !== originSource) return module;
11094
11080
  };
11095
11081
  }),
11096
- registerCompilationBuildModuleTaps: createTap1(binding_default().RegisterJsTapKind.CompilationBuildModule, function() {
11097
- return getCompiler1().__internal__get_compilation().hooks.buildModule;
11082
+ registerCompilationBuildModuleTaps: createTap2(binding_default().RegisterJsTapKind.CompilationBuildModule, function() {
11083
+ return getCompiler2().__internal__get_compilation().hooks.buildModule;
11098
11084
  }, function(queried) {
11099
11085
  return function(module) {
11100
11086
  return queried.call(module);
11101
11087
  };
11102
11088
  }),
11103
- registerCompilationStillValidModuleTaps: createTap1(binding_default().RegisterJsTapKind.CompilationStillValidModule, function() {
11104
- return getCompiler1().__internal__get_compilation().hooks.stillValidModule;
11089
+ registerCompilationStillValidModuleTaps: createTap2(binding_default().RegisterJsTapKind.CompilationStillValidModule, function() {
11090
+ return getCompiler2().__internal__get_compilation().hooks.stillValidModule;
11105
11091
  }, function(queried) {
11106
11092
  return function(module) {
11107
11093
  return queried.call(module);
11108
11094
  };
11109
11095
  }),
11110
- registerCompilationSucceedModuleTaps: createTap1(binding_default().RegisterJsTapKind.CompilationSucceedModule, function() {
11111
- return getCompiler1().__internal__get_compilation().hooks.succeedModule;
11096
+ registerCompilationSucceedModuleTaps: createTap2(binding_default().RegisterJsTapKind.CompilationSucceedModule, function() {
11097
+ return getCompiler2().__internal__get_compilation().hooks.succeedModule;
11112
11098
  }, function(queried) {
11113
11099
  return function(module) {
11114
11100
  return queried.call(module);
11115
11101
  };
11116
11102
  }),
11117
- registerCompilationExecuteModuleTaps: createTap1(binding_default().RegisterJsTapKind.CompilationExecuteModule, function() {
11118
- return getCompiler1().__internal__get_compilation().hooks.executeModule;
11103
+ registerCompilationExecuteModuleTaps: createTap2(binding_default().RegisterJsTapKind.CompilationExecuteModule, function() {
11104
+ return getCompiler2().__internal__get_compilation().hooks.executeModule;
11119
11105
  }, function(queried) {
11120
11106
  return function({ entry, id, codegenResults, runtimeModules }) {
11121
11107
  try {
@@ -11153,96 +11139,96 @@ Help:
11153
11139
  }, moduleCache = __nested_webpack_require_4781_4800__[RuntimeGlobals.moduleCache.replace(`${RuntimeGlobals.require}.`, "")] = {}, interceptModuleExecution = __nested_webpack_require_4781_4800__[RuntimeGlobals.interceptModuleExecution.replace(`${RuntimeGlobals.require}.`, "")] = [];
11154
11140
  for (let runtimeModule of runtimeModules)__nested_webpack_require_4781_4800__(runtimeModule);
11155
11141
  let executeResult = __nested_webpack_require_4781_4800__(entry);
11156
- getCompiler1().__internal__get_module_execution_results_map().set(id, executeResult);
11142
+ getCompiler2().__internal__get_module_execution_results_map().set(id, executeResult);
11157
11143
  } catch (e) {
11158
- throw getCompiler1().__internal__get_module_execution_results_map().set(id, e), e;
11144
+ throw getCompiler2().__internal__get_module_execution_results_map().set(id, e), e;
11159
11145
  }
11160
11146
  };
11161
11147
  }),
11162
- registerCompilationFinishModulesTaps: createTap1(binding_default().RegisterJsTapKind.CompilationFinishModules, function() {
11163
- return getCompiler1().__internal__get_compilation().hooks.finishModules;
11148
+ registerCompilationFinishModulesTaps: createTap2(binding_default().RegisterJsTapKind.CompilationFinishModules, function() {
11149
+ return getCompiler2().__internal__get_compilation().hooks.finishModules;
11164
11150
  }, function(queried) {
11165
11151
  return async function() {
11166
- return await queried.promise(getCompiler1().__internal__get_compilation().modules);
11152
+ return await queried.promise(getCompiler2().__internal__get_compilation().modules);
11167
11153
  };
11168
11154
  }),
11169
- registerCompilationOptimizeModulesTaps: createTap1(binding_default().RegisterJsTapKind.CompilationOptimizeModules, function() {
11170
- return getCompiler1().__internal__get_compilation().hooks.optimizeModules;
11155
+ registerCompilationOptimizeModulesTaps: createTap2(binding_default().RegisterJsTapKind.CompilationOptimizeModules, function() {
11156
+ return getCompiler2().__internal__get_compilation().hooks.optimizeModules;
11171
11157
  }, function(queried) {
11172
11158
  return function() {
11173
- return queried.call(getCompiler1().__internal__get_compilation().modules.values());
11159
+ return queried.call(getCompiler2().__internal__get_compilation().modules.values());
11174
11160
  };
11175
11161
  }),
11176
- registerCompilationAfterOptimizeModulesTaps: createTap1(binding_default().RegisterJsTapKind.CompilationAfterOptimizeModules, function() {
11177
- return getCompiler1().__internal__get_compilation().hooks.afterOptimizeModules;
11162
+ registerCompilationAfterOptimizeModulesTaps: createTap2(binding_default().RegisterJsTapKind.CompilationAfterOptimizeModules, function() {
11163
+ return getCompiler2().__internal__get_compilation().hooks.afterOptimizeModules;
11178
11164
  }, function(queried) {
11179
11165
  return function() {
11180
- queried.call(getCompiler1().__internal__get_compilation().modules.values());
11166
+ queried.call(getCompiler2().__internal__get_compilation().modules.values());
11181
11167
  };
11182
11168
  }),
11183
- registerCompilationOptimizeTreeTaps: createTap1(binding_default().RegisterJsTapKind.CompilationOptimizeTree, function() {
11184
- return getCompiler1().__internal__get_compilation().hooks.optimizeTree;
11169
+ registerCompilationOptimizeTreeTaps: createTap2(binding_default().RegisterJsTapKind.CompilationOptimizeTree, function() {
11170
+ return getCompiler2().__internal__get_compilation().hooks.optimizeTree;
11185
11171
  }, function(queried) {
11186
11172
  return async function() {
11187
- return await queried.promise(getCompiler1().__internal__get_compilation().chunks, getCompiler1().__internal__get_compilation().modules);
11173
+ return await queried.promise(getCompiler2().__internal__get_compilation().chunks, getCompiler2().__internal__get_compilation().modules);
11188
11174
  };
11189
11175
  }),
11190
- registerCompilationOptimizeChunkModulesTaps: createTap1(binding_default().RegisterJsTapKind.CompilationOptimizeChunkModules, function() {
11191
- return getCompiler1().__internal__get_compilation().hooks.optimizeChunkModules;
11176
+ registerCompilationOptimizeChunkModulesTaps: createTap2(binding_default().RegisterJsTapKind.CompilationOptimizeChunkModules, function() {
11177
+ return getCompiler2().__internal__get_compilation().hooks.optimizeChunkModules;
11192
11178
  }, function(queried) {
11193
11179
  return async function() {
11194
- return await queried.promise(getCompiler1().__internal__get_compilation().chunks, getCompiler1().__internal__get_compilation().modules);
11180
+ return await queried.promise(getCompiler2().__internal__get_compilation().chunks, getCompiler2().__internal__get_compilation().modules);
11195
11181
  };
11196
11182
  }),
11197
- registerCompilationChunkHashTaps: createTap1(binding_default().RegisterJsTapKind.CompilationChunkHash, function() {
11198
- return getCompiler1().__internal__get_compilation().hooks.chunkHash;
11183
+ registerCompilationChunkHashTaps: createTap2(binding_default().RegisterJsTapKind.CompilationChunkHash, function() {
11184
+ return getCompiler2().__internal__get_compilation().hooks.chunkHash;
11199
11185
  }, function(queried) {
11200
11186
  return function(chunk) {
11201
11187
  let digestResult;
11202
- if (!getCompiler1().options.output.hashFunction) throw Error("'output.hashFunction' cannot be undefined");
11203
- let hash = createHash(getCompiler1().options.output.hashFunction);
11204
- return queried.call(chunk, hash), "string" == typeof (digestResult = getCompiler1().options.output.hashDigest ? hash.digest(getCompiler1().options.output.hashDigest) : hash.digest()) ? Buffer.from(digestResult) : digestResult;
11188
+ if (!getCompiler2().options.output.hashFunction) throw Error("'output.hashFunction' cannot be undefined");
11189
+ let hash = createHash(getCompiler2().options.output.hashFunction);
11190
+ return queried.call(chunk, hash), "string" == typeof (digestResult = getCompiler2().options.output.hashDigest ? hash.digest(getCompiler2().options.output.hashDigest) : hash.digest()) ? Buffer.from(digestResult) : digestResult;
11205
11191
  };
11206
11192
  }),
11207
- registerCompilationChunkAssetTaps: createTap1(binding_default().RegisterJsTapKind.CompilationChunkAsset, function() {
11208
- return getCompiler1().__internal__get_compilation().hooks.chunkAsset;
11193
+ registerCompilationChunkAssetTaps: createTap2(binding_default().RegisterJsTapKind.CompilationChunkAsset, function() {
11194
+ return getCompiler2().__internal__get_compilation().hooks.chunkAsset;
11209
11195
  }, function(queried) {
11210
11196
  return function({ chunk, filename }) {
11211
11197
  return queried.call(chunk, filename);
11212
11198
  };
11213
11199
  }),
11214
- registerCompilationProcessAssetsTaps: createTap1(binding_default().RegisterJsTapKind.CompilationProcessAssets, function() {
11215
- return getCompiler1().__internal__get_compilation().hooks.processAssets;
11200
+ registerCompilationProcessAssetsTaps: createTap2(binding_default().RegisterJsTapKind.CompilationProcessAssets, function() {
11201
+ return getCompiler2().__internal__get_compilation().hooks.processAssets;
11216
11202
  }, function(queried) {
11217
11203
  return async function() {
11218
- return await queried.promise(getCompiler1().__internal__get_compilation().assets);
11204
+ return await queried.promise(getCompiler2().__internal__get_compilation().assets);
11219
11205
  };
11220
11206
  }),
11221
- registerCompilationAfterProcessAssetsTaps: createTap1(binding_default().RegisterJsTapKind.CompilationAfterProcessAssets, function() {
11222
- return getCompiler1().__internal__get_compilation().hooks.afterProcessAssets;
11207
+ registerCompilationAfterProcessAssetsTaps: createTap2(binding_default().RegisterJsTapKind.CompilationAfterProcessAssets, function() {
11208
+ return getCompiler2().__internal__get_compilation().hooks.afterProcessAssets;
11223
11209
  }, function(queried) {
11224
11210
  return function() {
11225
- return queried.call(getCompiler1().__internal__get_compilation().assets);
11211
+ return queried.call(getCompiler2().__internal__get_compilation().assets);
11226
11212
  };
11227
11213
  }),
11228
- registerCompilationSealTaps: createTap1(binding_default().RegisterJsTapKind.CompilationSeal, function() {
11229
- return getCompiler1().__internal__get_compilation().hooks.seal;
11214
+ registerCompilationSealTaps: createTap2(binding_default().RegisterJsTapKind.CompilationSeal, function() {
11215
+ return getCompiler2().__internal__get_compilation().hooks.seal;
11230
11216
  }, function(queried) {
11231
11217
  return function() {
11232
11218
  return queried.call();
11233
11219
  };
11234
11220
  }),
11235
- registerCompilationAfterSealTaps: createTap1(binding_default().RegisterJsTapKind.CompilationAfterSeal, function() {
11236
- return getCompiler1().__internal__get_compilation().hooks.afterSeal;
11221
+ registerCompilationAfterSealTaps: createTap2(binding_default().RegisterJsTapKind.CompilationAfterSeal, function() {
11222
+ return getCompiler2().__internal__get_compilation().hooks.afterSeal;
11237
11223
  }, function(queried) {
11238
11224
  return async function() {
11239
11225
  return await queried.promise();
11240
11226
  };
11241
11227
  })
11242
11228
  }),
11243
- ...(getCompiler2 = getCompiler7, createTap2 = createTap6, createMapTap1 = createMapTap2, {
11244
- registerNormalModuleFactoryBeforeResolveTaps: createTap2(binding_default().RegisterJsTapKind.NormalModuleFactoryBeforeResolve, function() {
11245
- return getCompiler2().__internal__get_compilation_params().normalModuleFactory.hooks.beforeResolve;
11229
+ ...(getCompiler3 = getCompiler8, createTap3 = createTap7, createMapTap1 = createMapTap2, {
11230
+ registerNormalModuleFactoryBeforeResolveTaps: createTap3(binding_default().RegisterJsTapKind.NormalModuleFactoryBeforeResolve, function() {
11231
+ return getCompiler3().__internal__get_compilation_params().normalModuleFactory.hooks.beforeResolve;
11246
11232
  }, function(queried) {
11247
11233
  return async function(resolveData) {
11248
11234
  return [
@@ -11251,22 +11237,22 @@ Help:
11251
11237
  ];
11252
11238
  };
11253
11239
  }),
11254
- registerNormalModuleFactoryFactorizeTaps: createTap2(binding_default().RegisterJsTapKind.NormalModuleFactoryFactorize, function() {
11255
- return getCompiler2().__internal__get_compilation_params().normalModuleFactory.hooks.factorize;
11240
+ registerNormalModuleFactoryFactorizeTaps: createTap3(binding_default().RegisterJsTapKind.NormalModuleFactoryFactorize, function() {
11241
+ return getCompiler3().__internal__get_compilation_params().normalModuleFactory.hooks.factorize;
11256
11242
  }, function(queried) {
11257
11243
  return async function(resolveData) {
11258
11244
  return await queried.promise(resolveData), resolveData;
11259
11245
  };
11260
11246
  }),
11261
- registerNormalModuleFactoryResolveTaps: createTap2(binding_default().RegisterJsTapKind.NormalModuleFactoryResolve, function() {
11262
- return getCompiler2().__internal__get_compilation_params().normalModuleFactory.hooks.resolve;
11247
+ registerNormalModuleFactoryResolveTaps: createTap3(binding_default().RegisterJsTapKind.NormalModuleFactoryResolve, function() {
11248
+ return getCompiler3().__internal__get_compilation_params().normalModuleFactory.hooks.resolve;
11263
11249
  }, function(queried) {
11264
11250
  return async function(resolveData) {
11265
11251
  return await queried.promise(resolveData), resolveData;
11266
11252
  };
11267
11253
  }),
11268
11254
  registerNormalModuleFactoryResolveForSchemeTaps: createMapTap1(binding_default().RegisterJsTapKind.NormalModuleFactoryResolveForScheme, function() {
11269
- return getCompiler2().__internal__get_compilation_params().normalModuleFactory.hooks.resolveForScheme;
11255
+ return getCompiler3().__internal__get_compilation_params().normalModuleFactory.hooks.resolveForScheme;
11270
11256
  }, function(queried) {
11271
11257
  return async function(args) {
11272
11258
  return [
@@ -11275,8 +11261,8 @@ Help:
11275
11261
  ];
11276
11262
  };
11277
11263
  }),
11278
- registerNormalModuleFactoryAfterResolveTaps: createTap2(binding_default().RegisterJsTapKind.NormalModuleFactoryAfterResolve, function() {
11279
- return getCompiler2().__internal__get_compilation_params().normalModuleFactory.hooks.afterResolve;
11264
+ registerNormalModuleFactoryAfterResolveTaps: createTap3(binding_default().RegisterJsTapKind.NormalModuleFactoryAfterResolve, function() {
11265
+ return getCompiler3().__internal__get_compilation_params().normalModuleFactory.hooks.afterResolve;
11280
11266
  }, function(queried) {
11281
11267
  return async function(resolveData) {
11282
11268
  return [
@@ -11285,8 +11271,8 @@ Help:
11285
11271
  ];
11286
11272
  };
11287
11273
  }),
11288
- registerNormalModuleFactoryCreateModuleTaps: createTap2(binding_default().RegisterJsTapKind.NormalModuleFactoryCreateModule, function() {
11289
- return getCompiler2().__internal__get_compilation_params().normalModuleFactory.hooks.createModule;
11274
+ registerNormalModuleFactoryCreateModuleTaps: createTap3(binding_default().RegisterJsTapKind.NormalModuleFactoryCreateModule, function() {
11275
+ return getCompiler3().__internal__get_compilation_params().normalModuleFactory.hooks.createModule;
11290
11276
  }, function(queried) {
11291
11277
  return async function(args) {
11292
11278
  let data = {
@@ -11297,17 +11283,17 @@ Help:
11297
11283
  };
11298
11284
  })
11299
11285
  }),
11300
- ...(getCompiler3 = getCompiler7, {
11301
- registerContextModuleFactoryBeforeResolveTaps: (createTap3 = createTap6)(binding_default().RegisterJsTapKind.ContextModuleFactoryBeforeResolve, function() {
11302
- return getCompiler3().__internal__get_compilation_params().contextModuleFactory.hooks.beforeResolve;
11286
+ ...(getCompiler4 = getCompiler8, {
11287
+ registerContextModuleFactoryBeforeResolveTaps: (createTap4 = createTap7)(binding_default().RegisterJsTapKind.ContextModuleFactoryBeforeResolve, function() {
11288
+ return getCompiler4().__internal__get_compilation_params().contextModuleFactory.hooks.beforeResolve;
11303
11289
  }, function(queried) {
11304
11290
  return async function(bindingData) {
11305
11291
  let data = !!bindingData && ContextModuleFactoryBeforeResolveData.__from_binding(bindingData), result = await queried.promise(data);
11306
11292
  return !!result && ContextModuleFactoryBeforeResolveData.__to_binding(result);
11307
11293
  };
11308
11294
  }),
11309
- registerContextModuleFactoryAfterResolveTaps: createTap3(binding_default().RegisterJsTapKind.ContextModuleFactoryAfterResolve, function() {
11310
- return getCompiler3().__internal__get_compilation_params().contextModuleFactory.hooks.afterResolve;
11295
+ registerContextModuleFactoryAfterResolveTaps: createTap4(binding_default().RegisterJsTapKind.ContextModuleFactoryAfterResolve, function() {
11296
+ return getCompiler4().__internal__get_compilation_params().contextModuleFactory.hooks.afterResolve;
11311
11297
  }, function(queried) {
11312
11298
  return async function(bindingData) {
11313
11299
  let data = !!bindingData && ContextModuleFactoryAfterResolveData.__from_binding(bindingData), result = await queried.promise(data);
@@ -11315,158 +11301,155 @@ Help:
11315
11301
  };
11316
11302
  })
11317
11303
  }),
11318
- ...(getCompiler4 = getCompiler7, {
11319
- registerJavascriptModulesChunkHashTaps: createTap6(binding_default().RegisterJsTapKind.JavascriptModulesChunkHash, function() {
11320
- return JavascriptModulesPlugin.getCompilationHooks(getCompiler4().__internal__get_compilation()).chunkHash;
11304
+ ...(getCompiler5 = getCompiler8, {
11305
+ registerJavascriptModulesChunkHashTaps: createTap7(binding_default().RegisterJsTapKind.JavascriptModulesChunkHash, function() {
11306
+ return JavascriptModulesPlugin.getCompilationHooks(getCompiler5().__internal__get_compilation()).chunkHash;
11321
11307
  }, function(queried) {
11322
11308
  return function(chunk) {
11323
11309
  let digestResult;
11324
- if (!getCompiler4().options.output.hashFunction) throw Error("'output.hashFunction' cannot be undefined");
11325
- let hash = createHash(getCompiler4().options.output.hashFunction);
11326
- return queried.call(chunk, hash), "string" == typeof (digestResult = getCompiler4().options.output.hashDigest ? hash.digest(getCompiler4().options.output.hashDigest) : hash.digest()) ? Buffer.from(digestResult) : digestResult;
11310
+ if (!getCompiler5().options.output.hashFunction) throw Error("'output.hashFunction' cannot be undefined");
11311
+ let hash = createHash(getCompiler5().options.output.hashFunction);
11312
+ return queried.call(chunk, hash), "string" == typeof (digestResult = getCompiler5().options.output.hashDigest ? hash.digest(getCompiler5().options.output.hashDigest) : hash.digest()) ? Buffer.from(digestResult) : digestResult;
11327
11313
  };
11328
11314
  })
11329
11315
  }),
11330
- ...((getCompiler, createTap)=>{
11331
- let getOptions = (uid)=>((compilation, uid)=>{
11332
- if (!(compilation instanceof Compilation)) throw TypeError("The 'compilation' argument must be an instance of Compilation");
11333
- return compilationOptionsMap.get(compilation)?.[uid];
11334
- })(getCompiler().__internal__get_compilation(), uid);
11335
- return {
11336
- registerHtmlPluginBeforeAssetTagGenerationTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginBeforeAssetTagGeneration, function() {
11337
- return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeAssetTagGeneration;
11338
- }, function(queried) {
11339
- return async function(data) {
11340
- let { compilationId, uid } = data, res = await queried.promise({
11341
- ...data,
11342
- plugin: {
11343
- options: getOptions(uid)
11344
- }
11345
- });
11346
- return res.compilationId = compilationId, res.uid = uid, res;
11347
- };
11348
- }),
11349
- registerHtmlPluginAlterAssetTagsTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginAlterAssetTags, function() {
11350
- return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTags;
11351
- }, function(queried) {
11352
- return async function(data) {
11353
- let { compilationId, uid } = data, res = await queried.promise({
11354
- ...data,
11355
- plugin: {
11356
- options: getOptions(uid)
11357
- }
11358
- });
11359
- return res.compilationId = compilationId, res.uid = uid, res;
11360
- };
11361
- }),
11362
- registerHtmlPluginAlterAssetTagGroupsTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginAlterAssetTagGroups, function() {
11363
- return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTagGroups;
11364
- }, function(queried) {
11365
- return async function(data) {
11366
- let { compilationId, uid } = data, res = await queried.promise({
11367
- ...data,
11368
- plugin: {
11369
- options: getOptions(uid)
11370
- }
11371
- });
11372
- return res.compilationId = compilationId, res.uid = uid, res;
11373
- };
11374
- }),
11375
- registerHtmlPluginAfterTemplateExecutionTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginAfterTemplateExecution, function() {
11376
- return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterTemplateExecution;
11377
- }, function(queried) {
11378
- return async function(data) {
11379
- let { compilationId, uid } = data, res = await queried.promise({
11380
- ...data,
11381
- plugin: {
11382
- options: getOptions(uid)
11383
- }
11384
- });
11385
- return res.compilationId = compilationId, res;
11386
- };
11387
- }),
11388
- registerHtmlPluginBeforeEmitTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginBeforeEmit, function() {
11389
- return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeEmit;
11390
- }, function(queried) {
11391
- return async function(data) {
11392
- let { compilationId, uid } = data, res = await queried.promise({
11393
- ...data,
11394
- plugin: {
11395
- options: getOptions(uid)
11396
- }
11397
- });
11398
- return res.compilationId = compilationId, res.uid = uid, res;
11399
- };
11400
- }),
11401
- registerHtmlPluginAfterEmitTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginAfterEmit, function() {
11402
- return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterEmit;
11403
- }, function(queried) {
11404
- return async function(data) {
11405
- let { compilationId, uid } = data, res = await queried.promise({
11406
- ...data,
11407
- plugin: {
11408
- options: getOptions(uid)
11409
- }
11410
- });
11411
- return res.compilationId = compilationId, res.uid = uid, res;
11412
- };
11413
- })
11414
- };
11415
- })(getCompiler7, createTap6, createMapTap2),
11416
- ...(getCompiler5 = getCompiler7, {
11417
- registerRuntimePluginCreateScriptTaps: (createTap4 = createTap6)(binding_default().RegisterJsTapKind.RuntimePluginCreateScript, function() {
11418
- return RuntimePlugin.getCompilationHooks(getCompiler5().__internal__get_compilation()).createScript;
11316
+ ...(getCompiler = getCompiler8, createTap = createTap7, getOptions = (uid)=>((compilation, uid)=>{
11317
+ if (!(compilation instanceof Compilation)) throw TypeError("The 'compilation' argument must be an instance of Compilation");
11318
+ return compilationOptionsMap.get(compilation)?.[uid];
11319
+ })(getCompiler().__internal__get_compilation(), uid), {
11320
+ registerHtmlPluginBeforeAssetTagGenerationTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginBeforeAssetTagGeneration, function() {
11321
+ return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeAssetTagGeneration;
11322
+ }, function(queried) {
11323
+ return async function(data) {
11324
+ let { compilationId, uid } = data, res = await queried.promise({
11325
+ ...data,
11326
+ plugin: {
11327
+ options: getOptions(uid)
11328
+ }
11329
+ });
11330
+ return res.compilationId = compilationId, res.uid = uid, res;
11331
+ };
11332
+ }),
11333
+ registerHtmlPluginAlterAssetTagsTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginAlterAssetTags, function() {
11334
+ return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTags;
11335
+ }, function(queried) {
11336
+ return async function(data) {
11337
+ let { compilationId, uid } = data, res = await queried.promise({
11338
+ ...data,
11339
+ plugin: {
11340
+ options: getOptions(uid)
11341
+ }
11342
+ });
11343
+ return res.compilationId = compilationId, res.uid = uid, res;
11344
+ };
11345
+ }),
11346
+ registerHtmlPluginAlterAssetTagGroupsTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginAlterAssetTagGroups, function() {
11347
+ return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).alterAssetTagGroups;
11348
+ }, function(queried) {
11349
+ return async function(data) {
11350
+ let { compilationId, uid } = data, res = await queried.promise({
11351
+ ...data,
11352
+ plugin: {
11353
+ options: getOptions(uid)
11354
+ }
11355
+ });
11356
+ return res.compilationId = compilationId, res.uid = uid, res;
11357
+ };
11358
+ }),
11359
+ registerHtmlPluginAfterTemplateExecutionTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginAfterTemplateExecution, function() {
11360
+ return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterTemplateExecution;
11361
+ }, function(queried) {
11362
+ return async function(data) {
11363
+ let { compilationId, uid } = data, res = await queried.promise({
11364
+ ...data,
11365
+ plugin: {
11366
+ options: getOptions(uid)
11367
+ }
11368
+ });
11369
+ return res.compilationId = compilationId, res;
11370
+ };
11371
+ }),
11372
+ registerHtmlPluginBeforeEmitTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginBeforeEmit, function() {
11373
+ return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).beforeEmit;
11374
+ }, function(queried) {
11375
+ return async function(data) {
11376
+ let { compilationId, uid } = data, res = await queried.promise({
11377
+ ...data,
11378
+ plugin: {
11379
+ options: getOptions(uid)
11380
+ }
11381
+ });
11382
+ return res.compilationId = compilationId, res.uid = uid, res;
11383
+ };
11384
+ }),
11385
+ registerHtmlPluginAfterEmitTaps: createTap(binding_default().RegisterJsTapKind.HtmlPluginAfterEmit, function() {
11386
+ return HtmlRspackPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).afterEmit;
11387
+ }, function(queried) {
11388
+ return async function(data) {
11389
+ let { compilationId, uid } = data, res = await queried.promise({
11390
+ ...data,
11391
+ plugin: {
11392
+ options: getOptions(uid)
11393
+ }
11394
+ });
11395
+ return res.compilationId = compilationId, res.uid = uid, res;
11396
+ };
11397
+ })
11398
+ }),
11399
+ ...(getCompiler6 = getCompiler8, {
11400
+ registerRuntimePluginCreateScriptTaps: (createTap5 = createTap7)(binding_default().RegisterJsTapKind.RuntimePluginCreateScript, function() {
11401
+ return RuntimePlugin.getCompilationHooks(getCompiler6().__internal__get_compilation()).createScript;
11419
11402
  }, function(queried) {
11420
11403
  return function(data) {
11421
11404
  return queried.call(data.code, data.chunk);
11422
11405
  };
11423
11406
  }),
11424
- registerRuntimePluginLinkPreloadTaps: createTap4(binding_default().RegisterJsTapKind.RuntimePluginLinkPreload, function() {
11425
- return RuntimePlugin.getCompilationHooks(getCompiler5().__internal__get_compilation()).linkPreload;
11407
+ registerRuntimePluginLinkPreloadTaps: createTap5(binding_default().RegisterJsTapKind.RuntimePluginLinkPreload, function() {
11408
+ return RuntimePlugin.getCompilationHooks(getCompiler6().__internal__get_compilation()).linkPreload;
11426
11409
  }, function(queried) {
11427
11410
  return function(data) {
11428
11411
  return queried.call(data.code, data.chunk);
11429
11412
  };
11430
11413
  }),
11431
- registerRuntimePluginLinkPrefetchTaps: createTap4(binding_default().RegisterJsTapKind.RuntimePluginLinkPrefetch, function() {
11432
- return RuntimePlugin.getCompilationHooks(getCompiler5().__internal__get_compilation()).linkPrefetch;
11414
+ registerRuntimePluginLinkPrefetchTaps: createTap5(binding_default().RegisterJsTapKind.RuntimePluginLinkPrefetch, function() {
11415
+ return RuntimePlugin.getCompilationHooks(getCompiler6().__internal__get_compilation()).linkPrefetch;
11433
11416
  }, function(queried) {
11434
11417
  return function(data) {
11435
11418
  return queried.call(data.code, data.chunk);
11436
11419
  };
11437
11420
  })
11438
11421
  }),
11439
- ...(getCompiler6 = getCompiler7, {
11440
- registerRsdoctorPluginModuleGraphTaps: (createTap5 = createTap6)(binding_.RegisterJsTapKind.RsdoctorPluginModuleGraph, function() {
11441
- return RsdoctorPluginImpl.getCompilationHooks(getCompiler6().__internal__get_compilation()).moduleGraph;
11422
+ ...(getCompiler7 = getCompiler8, {
11423
+ registerRsdoctorPluginModuleGraphTaps: (createTap6 = createTap7)(binding_.RegisterJsTapKind.RsdoctorPluginModuleGraph, function() {
11424
+ return RsdoctorPluginImpl.getCompilationHooks(getCompiler7().__internal__get_compilation()).moduleGraph;
11442
11425
  }, function(queried) {
11443
11426
  return async function(data) {
11444
11427
  return await queried.promise(data);
11445
11428
  };
11446
11429
  }),
11447
- registerRsdoctorPluginChunkGraphTaps: createTap5(binding_.RegisterJsTapKind.RsdoctorPluginChunkGraph, function() {
11448
- return RsdoctorPluginImpl.getCompilationHooks(getCompiler6().__internal__get_compilation()).chunkGraph;
11430
+ registerRsdoctorPluginChunkGraphTaps: createTap6(binding_.RegisterJsTapKind.RsdoctorPluginChunkGraph, function() {
11431
+ return RsdoctorPluginImpl.getCompilationHooks(getCompiler7().__internal__get_compilation()).chunkGraph;
11449
11432
  }, function(queried) {
11450
11433
  return async function(data) {
11451
11434
  return await queried.promise(data);
11452
11435
  };
11453
11436
  }),
11454
- registerRsdoctorPluginModuleIdsTaps: createTap5(binding_.RegisterJsTapKind.RsdoctorPluginModuleIds, function() {
11455
- return RsdoctorPluginImpl.getCompilationHooks(getCompiler6().__internal__get_compilation()).moduleIds;
11437
+ registerRsdoctorPluginModuleIdsTaps: createTap6(binding_.RegisterJsTapKind.RsdoctorPluginModuleIds, function() {
11438
+ return RsdoctorPluginImpl.getCompilationHooks(getCompiler7().__internal__get_compilation()).moduleIds;
11456
11439
  }, function(queried) {
11457
11440
  return async function(data) {
11458
11441
  return await queried.promise(data);
11459
11442
  };
11460
11443
  }),
11461
- registerRsdoctorPluginModuleSourcesTaps: createTap5(binding_.RegisterJsTapKind.RsdoctorPluginModuleSources, function() {
11462
- return RsdoctorPluginImpl.getCompilationHooks(getCompiler6().__internal__get_compilation()).moduleSources;
11444
+ registerRsdoctorPluginModuleSourcesTaps: createTap6(binding_.RegisterJsTapKind.RsdoctorPluginModuleSources, function() {
11445
+ return RsdoctorPluginImpl.getCompilationHooks(getCompiler7().__internal__get_compilation()).moduleSources;
11463
11446
  }, function(queried) {
11464
11447
  return async function(data) {
11465
11448
  return await queried.promise(data);
11466
11449
  };
11467
11450
  }),
11468
- registerRsdoctorPluginAssetsTaps: createTap5(binding_.RegisterJsTapKind.RsdoctorPluginAssets, function() {
11469
- return RsdoctorPluginImpl.getCompilationHooks(getCompiler6().__internal__get_compilation()).assets;
11451
+ registerRsdoctorPluginAssetsTaps: createTap6(binding_.RegisterJsTapKind.RsdoctorPluginAssets, function() {
11452
+ return RsdoctorPluginImpl.getCompilationHooks(getCompiler7().__internal__get_compilation()).assets;
11470
11453
  }, function(queried) {
11471
11454
  return async function(data) {
11472
11455
  return await queried.promise(data);
@@ -11598,7 +11581,7 @@ Help:
11598
11581
  obj.children = this.stats.map((stat, idx)=>{
11599
11582
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
11600
11583
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
11601
- }), childOptions.version && (obj.rspackVersion = "1.5.9-canary-740cd963-20250929173807", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
11584
+ }), childOptions.version && (obj.rspackVersion = "1.5.9-canary-61eba72c-20251001174057", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
11602
11585
  let mapError = (j, obj)=>({
11603
11586
  ...obj,
11604
11587
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -11614,11 +11597,8 @@ Help:
11614
11597
  forToString: !0
11615
11598
  });
11616
11599
  return this.stats.map((stat, idx)=>{
11617
- let str = stat.toString(childOptions.children[idx]), compilationName = stat.compilation.name, name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root).replace(/\|/g, " ");
11618
- return str && name ? `${name}:\n${function(str, prefix) {
11619
- let rem = str.replace(/\n([^\n])/g, `\n $1`);
11620
- return " " + rem;
11621
- }(str, " ")}` : str;
11600
+ let rem, str = stat.toString(childOptions.children[idx]), compilationName = stat.compilation.name, name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root).replace(/\|/g, " ");
11601
+ return str ? name ? `${name}:\n${" " + (rem = str.replace(/\n([^\n])/g, `\n $1`))}` : str : str;
11622
11602
  }).filter(Boolean).join("\n\n");
11623
11603
  }
11624
11604
  }
@@ -11738,9 +11718,11 @@ Help:
11738
11718
  }, this.compilers = normalizedCompilers, this._options = {
11739
11719
  parallelism: options?.parallelism || 1 / 0
11740
11720
  }, this.dependencies = new WeakMap(), this.running = !1;
11741
- let compilerStats = this.compilers.map(()=>null), doneCompilers = 0;
11721
+ const compilerStats = this.compilers.map(()=>null);
11722
+ let doneCompilers = 0;
11742
11723
  for(let index = 0; index < this.compilers.length; index++){
11743
- let compiler = this.compilers[index], compilerIndex = index, compilerDone = !1;
11724
+ const compiler = this.compilers[index], compilerIndex = index;
11725
+ let compilerDone = !1;
11744
11726
  compiler.hooks.done.tap("MultiCompiler", (stats)=>{
11745
11727
  !compilerDone && (compilerDone = !0, doneCompilers++), compilerStats[compilerIndex] = stats, doneCompilers === this.compilers.length && this.hooks.done.call(new MultiStats(compilerStats));
11746
11728
  }), compiler.hooks.invalid.tap("MultiCompiler", ()=>{
@@ -12495,7 +12477,7 @@ Help:
12495
12477
  object.hash = context.getStatsCompilation(compilation).hash;
12496
12478
  },
12497
12479
  version: (object)=>{
12498
- object.version = "5.75.0", object.rspackVersion = "1.5.9-canary-740cd963-20250929173807";
12480
+ object.version = "5.75.0", object.rspackVersion = "1.5.9-canary-61eba72c-20251001174057";
12499
12481
  },
12500
12482
  env: (object, _compilation, _context, { _env })=>{
12501
12483
  object.env = _env;
@@ -13220,7 +13202,7 @@ Help:
13220
13202
  "chunkOrigin.moduleName": (moduleName, { bold })=>bold(moduleName),
13221
13203
  "chunkOrigin.loc": (loc)=>loc,
13222
13204
  "error.file": (file, { bold })=>bold(file),
13223
- "error.moduleName": (moduleName, { bold })=>moduleName.includes("!") ? `${bold(moduleName.replace(/^(\s|\S)*!/, ""))} (${moduleName})` : `${bold(moduleName)}`,
13205
+ "error.moduleName": (moduleName, { bold })=>moduleName.includes("!") ? `${bold(moduleName.replace(/^(\s|\S)*!/, ""))} (${moduleName})` : bold(moduleName),
13224
13206
  "error.loc": (loc, { green })=>green(loc),
13225
13207
  "error.message": (message, { bold, formatError })=>message.includes("\u001b[") ? message : bold(formatError(message)),
13226
13208
  "error.details": (details, { formatError })=>formatError(details),
@@ -13714,7 +13696,7 @@ Help:
13714
13696
  return time < times[3] ? `${time}${unit}` : time < times[2] ? bold(`${time}${unit}`) : time < times[1] ? green(`${time}${unit}`) : time < times[0] ? yellow(`${time}${unit}`) : red(`${time}${unit}`);
13715
13697
  }
13716
13698
  let timeStr = time.toString();
13717
- return time > 1000 && (timeStr = `${(time / 1000).toFixed(2)}`, unit = " s"), `${boldQuantity ? bold(timeStr) : timeStr}${unit}`;
13699
+ return time > 1000 && (timeStr = (time / 1000).toFixed(2), unit = " s"), `${boldQuantity ? bold(timeStr) : timeStr}${unit}`;
13718
13700
  },
13719
13701
  formatError: (msg, { green, yellow, red })=>{
13720
13702
  let message = msg;
@@ -15684,7 +15666,7 @@ Help:
15684
15666
  _provides;
15685
15667
  _enhanced;
15686
15668
  constructor(options){
15687
- let sharedOptions = parseOptions(options.shared, (item, key)=>{
15669
+ const sharedOptions = parseOptions(options.shared, (item, key)=>{
15688
15670
  var str;
15689
15671
  if ("string" != typeof item) throw Error("Unexpected array in shared");
15690
15672
  return item !== key && (str = item, VERSION_PATTERN_REGEXP.test(str)) ? {
@@ -15820,7 +15802,7 @@ Help:
15820
15802
  let _options = JSON.stringify(options || {});
15821
15803
  return binding_default().transform(source, _options);
15822
15804
  }
15823
- let exports_rspackVersion = "1.5.9-canary-740cd963-20250929173807", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
15805
+ let exports_rspackVersion = "1.5.9-canary-61eba72c-20251001174057", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
15824
15806
  getNormalizedRspackOptions: getNormalizedRspackOptions,
15825
15807
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
15826
15808
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
@@ -15867,22 +15849,20 @@ Help:
15867
15849
  this._options = _options;
15868
15850
  }
15869
15851
  apply(compiler) {
15870
- let { webpack } = compiler, paths = function(options) {
15871
- let runtimeToolsPath = options.implementation ?? require.resolve("@module-federation/runtime-tools"), bundlerRuntimePath = require.resolve("@module-federation/webpack-bundler-runtime", {
15872
- paths: [
15873
- runtimeToolsPath
15874
- ]
15875
- }), runtimePath = require.resolve("@module-federation/runtime", {
15876
- paths: [
15877
- runtimeToolsPath
15878
- ]
15879
- });
15880
- return {
15881
- runtimeTools: runtimeToolsPath,
15882
- bundlerRuntime: bundlerRuntimePath,
15883
- runtime: runtimePath
15884
- };
15885
- }(this._options);
15852
+ var options;
15853
+ let runtimeToolsPath, bundlerRuntimePath, runtimePath, { webpack } = compiler, paths = (runtimeToolsPath = (options = this._options).implementation ?? require.resolve("@module-federation/runtime-tools"), bundlerRuntimePath = require.resolve("@module-federation/webpack-bundler-runtime", {
15854
+ paths: [
15855
+ runtimeToolsPath
15856
+ ]
15857
+ }), runtimePath = require.resolve("@module-federation/runtime", {
15858
+ paths: [
15859
+ runtimeToolsPath
15860
+ ]
15861
+ }), {
15862
+ runtimeTools: runtimeToolsPath,
15863
+ bundlerRuntime: bundlerRuntimePath,
15864
+ runtime: runtimePath
15865
+ });
15886
15866
  compiler.options.resolve.alias = {
15887
15867
  "@module-federation/runtime-tools": paths.runtimeTools,
15888
15868
  "@module-federation/runtime": paths.runtime,