diff --git a/packages/rspack/etc/api.md b/packages/rspack/etc/api.md
index ca571629106..d4d909fe896 100644
--- a/packages/rspack/etc/api.md
+++ b/packages/rspack/etc/api.md
@@ -6,11 +6,12 @@
///
+import { AsyncParallelHook } from '@rspack/lite-tapable';
+import { AsyncSeriesBailHook } from '@rspack/lite-tapable';
import * as binding from '@rspack/binding';
import { BuiltinPlugin } from '@rspack/binding';
import { BuiltinPluginName } from '@rspack/binding';
-import Cache_2 = require('./lib/Cache');
-import CacheFacade = require('./lib/CacheFacade');
+import { CacheFacade as CacheFacade_2 } from './lib/CacheFacade';
import type { Callback } from '@rspack/lite-tapable';
import { cleanupGlobalTrace } from '@rspack/binding';
import { Compiler as Compiler_2 } from '../Compiler';
@@ -21,6 +22,7 @@ import { ExternalObject } from '@rspack/binding';
import fs from 'graceful-fs';
import { fs as fs_2 } from 'fs';
import { HookMap } from '@rspack/lite-tapable';
+import { inspect } from 'node:util';
import type { JsAssetInfo } from '@rspack/binding';
import { JsChunk } from '@rspack/binding';
import { JsChunkGroup } from '@rspack/binding';
@@ -35,7 +37,6 @@ import { JsRuntimeModule } from '@rspack/binding';
import type { JsStats } from '@rspack/binding';
import type { JsStatsError } from '@rspack/binding';
import type { JsStatsWarning } from '@rspack/binding';
-import { libCacheFacade } from './lib/CacheFacade';
import * as liteTapable from '@rspack/lite-tapable';
import { Logger as Logger_2 } from './logging/Logger';
import { RawCopyPattern } from '@rspack/binding';
@@ -52,6 +53,7 @@ import { registerGlobalTrace } from '@rspack/binding';
import { RspackOptionsNormalized as RspackOptionsNormalized_2 } from '.';
import sources = require('../compiled/webpack-sources');
import { SyncBailHook } from '@rspack/lite-tapable';
+import { SyncHook } from '@rspack/lite-tapable';
import { SyncWaterfallHook } from '@rspack/lite-tapable';
import type * as webpackDevServer from 'webpack-dev-server';
@@ -194,8 +196,9 @@ const assetGeneratorOptions: z.ZodObject, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>;
publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>;
}>, "strict", z.ZodTypeAny, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
dataUrl?: {
mimetype?: string | undefined;
encoding?: false | "base64" | undefined;
@@ -203,10 +206,10 @@ const assetGeneratorOptions: z.ZodObject string) | undefined;
- emit?: boolean | undefined;
}, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
dataUrl?: {
mimetype?: string | undefined;
encoding?: false | "base64" | undefined;
@@ -214,7 +217,6 @@ const assetGeneratorOptions: z.ZodObject string) | undefined;
- emit?: boolean | undefined;
}>;
// @public (undocumented)
@@ -323,12 +325,12 @@ const assetResourceGeneratorOptions: z.ZodObject<{
filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>;
publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>;
}, "strict", z.ZodTypeAny, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
}, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
}>;
@@ -371,43 +373,43 @@ const bail: z.ZodBoolean;
// @public (undocumented)
export const BannerPlugin: {
new (args: string | ((args_0: {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}, ...args_1: unknown[]) => string) | {
banner: string | ((args_0: {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}, ...args_1: unknown[]) => string);
- test?: string | RegExp | (string | RegExp)[] | undefined;
+ entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
- entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
+ test?: string | RegExp | (string | RegExp)[] | undefined;
}): {
name: BuiltinPluginName;
_args: [args: string | ((args_0: {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}, ...args_1: unknown[]) => string) | {
banner: string | ((args_0: {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}, ...args_1: unknown[]) => string);
- test?: string | RegExp | (string | RegExp)[] | undefined;
+ entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
- entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
+ test?: string | RegExp | (string | RegExp)[] | undefined;
}];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -422,26 +424,26 @@ const bannerPluginArgument: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodFunction;
filename: z.ZodString;
}, "strip", z.ZodTypeAny, {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}, {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}>], z.ZodUnknown>, z.ZodString>]>, z.ZodObject<{
banner: z.ZodUnion<[z.ZodString, z.ZodFunction;
filename: z.ZodString;
}, "strip", z.ZodTypeAny, {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}, {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}>], z.ZodUnknown>, z.ZodString>]>;
entryOnly: z.ZodOptional;
exclude: z.ZodOptional]>, z.ZodArray]>, "many">]>>;
@@ -452,32 +454,44 @@ const bannerPluginArgument: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodFunction]>, z.ZodArray]>, "many">]>>;
}, "strict", z.ZodTypeAny, {
banner: string | ((args_0: {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}, ...args_1: unknown[]) => string);
- test?: string | RegExp | (string | RegExp)[] | undefined;
+ entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
- entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
+ test?: string | RegExp | (string | RegExp)[] | undefined;
}, {
banner: string | ((args_0: {
+ filename: string;
hash: string;
chunk: JsChunk;
- filename: string;
}, ...args_1: unknown[]) => string);
- test?: string | RegExp | (string | RegExp)[] | undefined;
+ entryOnly?: boolean | undefined;
exclude?: string | RegExp | (string | RegExp)[] | undefined;
include?: string | RegExp | (string | RegExp)[] | undefined;
- entryOnly?: boolean | undefined;
raw?: boolean | undefined;
footer?: boolean | undefined;
stage?: number | undefined;
+ test?: string | RegExp | (string | RegExp)[] | undefined;
}>]>;
+// @public (undocumented)
+abstract class BaseCache {
+ // (undocumented)
+ abstract get(callback: CallbackCache): void;
+ // (undocumented)
+ abstract getPromise(): Promise;
+ // (undocumented)
+ abstract store(data: T, callback: CallbackCache): void;
+ // (undocumented)
+ abstract storePromise(data: T): Promise;
+}
+
// @public (undocumented)
interface BaseModuleConfig {
// (undocumented)
@@ -658,15 +672,17 @@ const baseRuleSetRule: z.ZodObject<{
sideEffects: z.ZodOptional;
enforce: z.ZodOptional, z.ZodLiteral<"post">]>>;
}, "strict", z.ZodTypeAny, {
+ options?: string | Record | undefined;
type?: string | undefined;
+ exclude?: RuleSetCondition | undefined;
+ include?: RuleSetCondition | undefined;
+ test?: RuleSetCondition | undefined;
layer?: string | undefined;
+ enforce?: "pre" | "post" | undefined;
+ sideEffects?: boolean | undefined;
issuer?: RuleSetCondition | undefined;
- options?: string | Record | undefined;
resource?: RuleSetCondition | undefined;
loader?: string | undefined;
- test?: RuleSetCondition | undefined;
- exclude?: RuleSetCondition | undefined;
- include?: RuleSetCondition | undefined;
issuerLayer?: RuleSetCondition | undefined;
dependency?: RuleSetCondition | undefined;
resourceFragment?: RuleSetCondition | undefined;
@@ -691,18 +707,18 @@ const baseRuleSetRule: z.ZodObject<{
parser?: Record | undefined;
generator?: Record | undefined;
resolve?: ResolveOptions | undefined;
- sideEffects?: boolean | undefined;
- enforce?: "pre" | "post" | undefined;
}, {
+ options?: string | Record | undefined;
type?: string | undefined;
+ exclude?: RuleSetCondition | undefined;
+ include?: RuleSetCondition | undefined;
+ test?: RuleSetCondition | undefined;
layer?: string | undefined;
+ enforce?: "pre" | "post" | undefined;
+ sideEffects?: boolean | undefined;
issuer?: RuleSetCondition | undefined;
- options?: string | Record | undefined;
resource?: RuleSetCondition | undefined;
loader?: string | undefined;
- test?: RuleSetCondition | undefined;
- exclude?: RuleSetCondition | undefined;
- include?: RuleSetCondition | undefined;
issuerLayer?: RuleSetCondition | undefined;
dependency?: RuleSetCondition | undefined;
resourceFragment?: RuleSetCondition | undefined;
@@ -727,8 +743,6 @@ const baseRuleSetRule: z.ZodObject<{
parser?: Record | undefined;
generator?: Record | undefined;
resolve?: ResolveOptions | undefined;
- sideEffects?: boolean | undefined;
- enforce?: "pre" | "post" | undefined;
}>;
// @public (undocumented)
@@ -737,6 +751,70 @@ export type BaseUri = z.infer;
// @public (undocumented)
const baseUri: z.ZodString;
+// @public (undocumented)
+class Cache_2 {
+ constructor();
+ // (undocumented)
+ beginIdle(): void;
+ // (undocumented)
+ endIdle(callback: CallbackCache): void;
+ // (undocumented)
+ get(identifier: string, etag: Etag | null, callback: CallbackCache): void;
+ // (undocumented)
+ hooks: {
+ get: AsyncSeriesBailHook<[string, Etag | null, GotHandler[]], any>;
+ store: AsyncParallelHook<[string, Etag | null, any]>;
+ storeBuildDependencies: AsyncParallelHook<[Iterable]>;
+ beginIdle: SyncHook<[]>;
+ endIdle: AsyncParallelHook<[]>;
+ shutdown: AsyncParallelHook<[]>;
+ };
+ // (undocumented)
+ shutdown(callback: CallbackCache): void;
+ // (undocumented)
+ static STAGE_DEFAULT: number;
+ // (undocumented)
+ static STAGE_DISK: number;
+ // (undocumented)
+ static STAGE_MEMORY: number;
+ // (undocumented)
+ static STAGE_NETWORK: number;
+ // (undocumented)
+ store(identifier: string, etag: Etag | null, data: T, callback: CallbackCache): void;
+ storeBuildDependencies(dependencies: Iterable, callback: CallbackCache): void;
+}
+
+// @public (undocumented)
+class CacheFacade {
+ constructor(cache: Cache_2, name: string, hashFunction: string | HashConstructor);
+ // (undocumented)
+ _cache: Cache_2;
+ // (undocumented)
+ get(identifier: string, etag: Etag | null, callback: CallbackCache): void;
+ // (undocumented)
+ getChildCache(name: string): CacheFacade;
+ // (undocumented)
+ getItemCache(identifier: string, etag: Etag | null): ItemCacheFacade;
+ // (undocumented)
+ getLazyHashedEtag(obj: HashableObject): Etag;
+ // (undocumented)
+ getPromise(identifier: string, etag: Etag | null): Promise;
+ // (undocumented)
+ _hashFunction: string | HashConstructor;
+ // (undocumented)
+ mergeEtags(a: Etag, b: Etag): Etag;
+ // (undocumented)
+ _name: string;
+ // (undocumented)
+ provide(identifier: string, etag: Etag | null, computer: (callback: CallbackNormalErrorCache) => void, callback: CallbackNormalErrorCache): void;
+ // (undocumented)
+ providePromise(identifier: string, etag: Etag | null, computer: () => Promise | T): Promise<{} | T | null>;
+ // (undocumented)
+ store(identifier: string, etag: Etag | null, data: T, callback: CallbackCache): void;
+ // (undocumented)
+ storePromise(identifier: string, etag: Etag | null, data: T): Promise;
+}
+
// @public (undocumented)
type CacheHookMap = Map[]>;
@@ -746,6 +824,12 @@ export type CacheOptions = z.infer;
// @public (undocumented)
const cacheOptions: z.ZodBoolean;
+// @public (undocumented)
+type CallbackCache = (err?: WebpackError_2 | null, result?: T) => void;
+
+// @public (undocumented)
+type CallbackNormalErrorCache = (err?: WebpackError_2 | null, result?: T) => void;
+
// @public (undocumented)
type CallFn = (...args: any[]) => any;
@@ -985,7 +1069,7 @@ export class Compilation {
getAssetPathWithInfo(filename: Filename, data?: PathData): binding.PathWithInfo;
getAssets(): ReadonlyArray;
// (undocumented)
- getCache(name: string): libCacheFacade;
+ getCache(name: string): CacheFacade_2;
// (undocumented)
getLogger(name: string | (() => string)): Logger;
// (undocumented)
@@ -1251,15 +1335,6 @@ export class Compiler {
webpack: typeof rspack;
}
-// @public (undocumented)
-type Compiler_3 = any;
-
-// @public (undocumented)
-type Compiler_4 = Compiler_2;
-
-// @public (undocumented)
-type Compiler_5 = any;
-
// @public (undocumented)
type Config = {
getNormalizedRspackOptions: typeof getNormalizedRspackOptions;
@@ -1400,7 +1475,7 @@ class ContainerReferencePlugin extends RspackBuiltinPlugin {
name: BuiltinPluginName;
// (undocumented)
_options: {
- remoteType: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs";
+ remoteType: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs";
remotes: [string, {
external: string[];
shareScope: string;
@@ -1464,7 +1539,7 @@ export const CopyRspackPlugin: {
new (copy: CopyRspackPluginOptions): {
name: BuiltinPluginName;
_args: [copy: CopyRspackPluginOptions];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -1678,7 +1753,7 @@ export const DefinePlugin: {
new (define: DefinePluginOptions): {
name: BuiltinPluginName;
_args: [define: DefinePluginOptions];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -1693,6 +1768,9 @@ export type Dependencies = z.infer;
// @public (undocumented)
const dependencies: z.ZodArray;
+// @public (undocumented)
+type DependencyLocation = any;
+
// @public (undocumented)
export interface DevServer extends webpackDevServer.Configuration {
}
@@ -1792,7 +1870,7 @@ export const DynamicEntryPlugin: {
new (context: string, entry: EntryDynamicNormalized): {
name: BuiltinPluginName;
_args: [context: string, entry: EntryDynamicNormalized];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -1812,7 +1890,7 @@ const ElectronTargetPlugin: {
new (context?: string | undefined): {
name: BuiltinPluginName;
_args: [context?: string | undefined];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -1823,7 +1901,7 @@ const EnableChunkLoadingPlugin: {
new (type: any): {
name: BuiltinPluginName;
_args: [type: any];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -1865,7 +1943,7 @@ const EnableWasmLoadingPlugin: {
new (type: any): {
name: BuiltinPluginName;
_args: [type: any];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -1955,14 +2033,14 @@ const entry: z.ZodUnion<[z.ZodUnion<[z.ZodRecord>;
}, "strict", z.ZodTypeAny, {
import: string | string[];
- runtime?: string | false | undefined;
- layer?: string | null | undefined;
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -1983,14 +2061,14 @@ const entry: z.ZodUnion<[z.ZodUnion<[z.ZodRecord string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2089,14 +2167,14 @@ const entry: z.ZodUnion<[z.ZodUnion<[z.ZodRecord>;
}, "strict", z.ZodTypeAny, {
import: string | string[];
- runtime?: string | false | undefined;
- layer?: string | null | undefined;
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2117,14 +2195,14 @@ const entry: z.ZodUnion<[z.ZodUnion<[z.ZodRecord string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2223,14 +2301,14 @@ const entry: z.ZodUnion<[z.ZodUnion<[z.ZodRecord>;
}, "strict", z.ZodTypeAny, {
import: string | string[];
- runtime?: string | false | undefined;
- layer?: string | null | undefined;
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2251,14 +2329,14 @@ const entry: z.ZodUnion<[z.ZodUnion<[z.ZodRecord string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2375,14 +2453,14 @@ const entryDescription: z.ZodObject<{
layer: z.ZodOptional>;
}, "strict", z.ZodTypeAny, {
import: string | string[];
- runtime?: string | false | undefined;
- layer?: string | null | undefined;
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2403,14 +2481,14 @@ const entryDescription: z.ZodObject<{
dependOn?: string | string[] | undefined;
}, {
import: string | string[];
- runtime?: string | false | undefined;
- layer?: string | null | undefined;
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2557,14 +2635,14 @@ const entryObject: z.ZodRecord>;
}, "strict", z.ZodTypeAny, {
import: string | string[];
- runtime?: string | false | undefined;
- layer?: string | null | undefined;
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2585,14 +2663,14 @@ const entryObject: z.ZodRecord string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2642,7 +2720,7 @@ export const EntryPlugin: {
new (context: string, entry: string, options?: string | EntryOptions | undefined): {
name: BuiltinPluginName;
_args: [context: string, entry: string, options?: string | EntryOptions | undefined];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -2747,14 +2825,14 @@ const entryStatic: z.ZodUnion<[z.ZodRecord>;
}, "strict", z.ZodTypeAny, {
import: string | string[];
- runtime?: string | false | undefined;
- layer?: string | null | undefined;
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2775,14 +2853,14 @@ const entryStatic: z.ZodUnion<[z.ZodRecord string) | undefined;
publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ layer?: string | null | undefined;
+ runtime?: string | false | undefined;
baseUri?: string | undefined;
chunkLoading?: string | false | undefined;
asyncChunks?: boolean | undefined;
wasmLoading?: string | false | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
library?: {
type: string;
name?: string | string[] | {
@@ -2866,14 +2944,14 @@ const environment: z.ZodObject<{
templateLiteral?: boolean | undefined;
}>;
-// @public
+// @public (undocumented)
export class EnvironmentPlugin {
- constructor(...keys: any[]);
- apply(compiler: Compiler_3): void;
+ constructor(...keys: string[] | [Record | string]);
+ apply(compiler: Compiler): void;
// (undocumented)
- defaultValues: any;
+ defaultValues: Record;
// (undocumented)
- keys: any[];
+ keys: string[];
}
// @public (undocumented)
@@ -2887,12 +2965,18 @@ interface Es6Config extends BaseModuleConfig {
type: "es6";
}
+// @public (undocumented)
+interface Etag {
+ // (undocumented)
+ toString(): string;
+}
+
// @public (undocumented)
export const EvalDevToolModulePlugin: {
new (options: EvalDevToolModulePluginOptions): {
name: BuiltinPluginName;
_args: [options: EvalDevToolModulePluginOptions];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -2905,7 +2989,7 @@ export const EvalSourceMapDevToolPlugin: {
new (options: SourceMapDevToolPluginOptions): {
name: BuiltinPluginName;
_args: [options: SourceMapDevToolPluginOptions];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -3287,7 +3371,7 @@ export const ExternalsPlugin: {
contextInfo?: {
issuer: string;
} | undefined;
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
context?: string | undefined;
dependencyType?: string | undefined;
request?: string | undefined;
@@ -3301,7 +3385,7 @@ export const ExternalsPlugin: {
contextInfo?: {
issuer: string;
} | undefined;
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
context?: string | undefined;
dependencyType?: string | undefined;
request?: string | undefined;
@@ -3317,7 +3401,7 @@ export const ExternalsPlugin: {
contextInfo?: {
issuer: string;
} | undefined;
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
context?: string | undefined;
dependencyType?: string | undefined;
request?: string | undefined;
@@ -3331,7 +3415,7 @@ export const ExternalsPlugin: {
contextInfo?: {
issuer: string;
} | undefined;
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "module" | "global" | "system" | "promise" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
context?: string | undefined;
dependencyType?: string | undefined;
request?: string | undefined;
@@ -3339,7 +3423,7 @@ export const ExternalsPlugin: {
issuer: string;
} | undefined;
}, ...args_1: unknown[]) => Promise>))[]];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -3410,7 +3494,7 @@ const FetchCompileAsyncWasmPlugin: {
new (): {
name: BuiltinPluginName;
_args: [];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -3486,8 +3570,9 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>;
publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>;
}>, "strict", z.ZodTypeAny, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
dataUrl?: {
mimetype?: string | undefined;
encoding?: false | "base64" | undefined;
@@ -3495,10 +3580,10 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
filename: string;
content: string;
}, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
}, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
dataUrl?: {
mimetype?: string | undefined;
encoding?: false | "base64" | undefined;
@@ -3506,7 +3591,6 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
filename: string;
content: string;
}, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
}>>;
"asset/inline": z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>;
publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>;
}, "strict", z.ZodTypeAny, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
}, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
}>>;
css: z.ZodOptional string) | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- dataUrl?: {
- mimetype?: string | undefined;
- encoding?: false | "base64" | undefined;
- } | ((args_0: {
- filename: string;
- content: string;
- }, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
- } | undefined;
"css/auto"?: {
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
@@ -3629,6 +3701,18 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
localIdentName?: string | undefined;
} | undefined;
+ asset?: {
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
+ dataUrl?: {
+ mimetype?: string | undefined;
+ encoding?: false | "base64" | undefined;
+ } | ((args_0: {
+ filename: string;
+ content: string;
+ }, ...args_1: unknown[]) => string) | undefined;
+ } | undefined;
"asset/inline"?: {
dataUrl?: {
mimetype?: string | undefined;
@@ -3639,8 +3723,8 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
}, ...args_1: unknown[]) => string) | undefined;
} | undefined;
"asset/resource"?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
} | undefined;
}, {
@@ -3648,18 +3732,6 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
} | undefined;
- asset?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- dataUrl?: {
- mimetype?: string | undefined;
- encoding?: false | "base64" | undefined;
- } | ((args_0: {
- filename: string;
- content: string;
- }, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
- } | undefined;
"css/auto"?: {
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
@@ -3672,18 +3744,30 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
localIdentName?: string | undefined;
} | undefined;
- "asset/inline"?: {
- dataUrl?: {
- mimetype?: string | undefined;
- encoding?: false | "base64" | undefined;
+ asset?: {
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
+ dataUrl?: {
+ mimetype?: string | undefined;
+ encoding?: false | "base64" | undefined;
+ } | ((args_0: {
+ filename: string;
+ content: string;
+ }, ...args_1: unknown[]) => string) | undefined;
+ } | undefined;
+ "asset/inline"?: {
+ dataUrl?: {
+ mimetype?: string | undefined;
+ encoding?: false | "base64" | undefined;
} | ((args_0: {
filename: string;
content: string;
}, ...args_1: unknown[]) => string) | undefined;
} | undefined;
"asset/resource"?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
} | undefined;
}>, z.ZodRecord>]>;
@@ -3718,8 +3802,9 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{
filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>;
publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>;
}>, "strict", z.ZodTypeAny, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
dataUrl?: {
mimetype?: string | undefined;
encoding?: false | "base64" | undefined;
@@ -3727,10 +3812,10 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{
filename: string;
content: string;
}, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
}, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
dataUrl?: {
mimetype?: string | undefined;
encoding?: false | "base64" | undefined;
@@ -3738,7 +3823,6 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{
filename: string;
content: string;
}, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
}>>;
"asset/inline": z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>;
publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>;
}, "strict", z.ZodTypeAny, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
}, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
}>>;
css: z.ZodOptional string) | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- dataUrl?: {
- mimetype?: string | undefined;
- encoding?: false | "base64" | undefined;
- } | ((args_0: {
- filename: string;
- content: string;
- }, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
- } | undefined;
"css/auto"?: {
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
@@ -3861,6 +3933,18 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
localIdentName?: string | undefined;
} | undefined;
+ asset?: {
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
+ dataUrl?: {
+ mimetype?: string | undefined;
+ encoding?: false | "base64" | undefined;
+ } | ((args_0: {
+ filename: string;
+ content: string;
+ }, ...args_1: unknown[]) => string) | undefined;
+ } | undefined;
"asset/inline"?: {
dataUrl?: {
mimetype?: string | undefined;
@@ -3871,8 +3955,8 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{
}, ...args_1: unknown[]) => string) | undefined;
} | undefined;
"asset/resource"?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
} | undefined;
}, {
@@ -3880,18 +3964,6 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
} | undefined;
- asset?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- dataUrl?: {
- mimetype?: string | undefined;
- encoding?: false | "base64" | undefined;
- } | ((args_0: {
- filename: string;
- content: string;
- }, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
- } | undefined;
"css/auto"?: {
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
@@ -3904,6 +3976,18 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
localIdentName?: string | undefined;
} | undefined;
+ asset?: {
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
+ dataUrl?: {
+ mimetype?: string | undefined;
+ encoding?: false | "base64" | undefined;
+ } | ((args_0: {
+ filename: string;
+ content: string;
+ }, ...args_1: unknown[]) => string) | undefined;
+ } | undefined;
"asset/inline"?: {
dataUrl?: {
mimetype?: string | undefined;
@@ -3914,8 +3998,8 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{
}, ...args_1: unknown[]) => string) | undefined;
} | undefined;
"asset/resource"?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
} | undefined;
}>;
@@ -3957,6 +4041,9 @@ interface GlobalPassOption {
vars?: Record;
}
+// @public (undocumented)
+type GotHandler = (result: any | null, callback: (error: Error) => void) => void;
+
// @public (undocumented)
type GroupConfig = {
getKeys: (arg0: any) => string[] | undefined;
@@ -3986,6 +4073,15 @@ class Hash_2 {
update(data: string | Buffer, inputEncoding?: string): this;
}
+// @public (undocumented)
+interface HashableObject {
+ // (undocumented)
+ updateHash(hash: Hash_2): void;
+}
+
+// @public (undocumented)
+type HashConstructor = typeof Hash_2;
+
// @public (undocumented)
export type HashDigest = z.infer;
@@ -4060,9 +4156,9 @@ const hotUpdateMainFilename: z.ZodString;
// @public (undocumented)
export const HtmlRspackPlugin: {
new (c?: {
- chunks?: string[] | undefined;
- publicPath?: string | undefined;
filename?: string | undefined;
+ publicPath?: string | undefined;
+ chunks?: string[] | undefined;
template?: string | undefined;
templateContent?: string | undefined;
templateParameters?: Record | undefined;
@@ -4077,9 +4173,9 @@ export const HtmlRspackPlugin: {
} | undefined): {
name: BuiltinPluginName;
_args: [c?: {
- chunks?: string[] | undefined;
- publicPath?: string | undefined;
filename?: string | undefined;
+ publicPath?: string | undefined;
+ chunks?: string[] | undefined;
template?: string | undefined;
templateContent?: string | undefined;
templateParameters?: Record | undefined;
@@ -4092,7 +4188,7 @@ export const HtmlRspackPlugin: {
favicon?: string | undefined;
meta?: Record> | undefined;
} | undefined];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -4118,9 +4214,9 @@ const htmlRspackPluginOptions: z.ZodObject<{
favicon: z.ZodOptional;
meta: z.ZodOptional]>>>;
}, "strict", z.ZodTypeAny, {
- chunks?: string[] | undefined;
- publicPath?: string | undefined;
filename?: string | undefined;
+ publicPath?: string | undefined;
+ chunks?: string[] | undefined;
template?: string | undefined;
templateContent?: string | undefined;
templateParameters?: Record | undefined;
@@ -4133,9 +4229,9 @@ const htmlRspackPluginOptions: z.ZodObject<{
favicon?: string | undefined;
meta?: Record> | undefined;
}, {
- chunks?: string[] | undefined;
- publicPath?: string | undefined;
filename?: string | undefined;
+ publicPath?: string | undefined;
+ chunks?: string[] | undefined;
template?: string | undefined;
templateContent?: string | undefined;
templateParameters?: Record | undefined;
@@ -4174,7 +4270,7 @@ export const IgnorePlugin: {
new (options: IgnorePluginOptions): {
name: BuiltinPluginName;
_args: [options: IgnorePluginOptions];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -4221,18 +4317,18 @@ const infrastructureLogging: z.ZodObject<{
level: z.ZodOptional>;
stream: z.ZodOptional>;
}, "strict", z.ZodTypeAny, {
- colors?: boolean | undefined;
debug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
+ colors?: boolean | undefined;
appendOnly?: boolean | undefined;
console?: Console | undefined;
- level?: "info" | "none" | "verbose" | "error" | "warn" | "log" | undefined;
+ level?: "log" | "info" | "verbose" | "none" | "error" | "warn" | undefined;
stream?: NodeJS.WritableStream | undefined;
}, {
- colors?: boolean | undefined;
debug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
+ colors?: boolean | undefined;
appendOnly?: boolean | undefined;
console?: Console | undefined;
- level?: "info" | "none" | "verbose" | "error" | "warn" | "log" | undefined;
+ level?: "log" | "info" | "verbose" | "none" | "error" | "warn" | undefined;
stream?: NodeJS.WritableStream | undefined;
}>;
@@ -4290,6 +4386,29 @@ interface IStats {
uid: number | bigint;
}
+// @public (undocumented)
+class ItemCacheFacade implements BaseCache {
+ constructor(cache: Cache_2, name: string, etag: Etag | null);
+ // (undocumented)
+ _cache: Cache_2;
+ // (undocumented)
+ _etag: Etag | null;
+ // (undocumented)
+ get(callback: CallbackCache): void;
+ // (undocumented)
+ getPromise(): Promise;
+ // (undocumented)
+ _name: string;
+ // (undocumented)
+ provide(computer: (callback: CallbackNormalErrorCache) => void, callback: CallbackNormalErrorCache): void;
+ // (undocumented)
+ providePromise(computer: () => Promise | T): Promise;
+ // (undocumented)
+ store(data: T, callback: CallbackCache): void;
+ // (undocumented)
+ storePromise(data: T): Promise;
+}
+
// @public (undocumented)
interface JavaScript {
// (undocumented)
@@ -4878,7 +4997,7 @@ export const LightningCssMinimizerRspackPlugin: {
new (options?: LightningCssMinimizerRspackPluginOptions | undefined): {
name: BuiltinPluginName;
_args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -4903,7 +5022,7 @@ const LimitChunkCountPlugin: {
new (options: LimitChunkCountOptions): {
name: BuiltinPluginName;
_args: [options: LimitChunkCountOptions];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -5065,23 +5184,23 @@ class LoaderObject {
type?: "module" | "commonjs";
}
-// @public
+// @public (undocumented)
export class LoaderOptionsPlugin {
constructor(options?: LoaderOptionsPluginOptions);
- apply(compiler: Compiler_4): void;
+ apply(compiler: Compiler): void;
// (undocumented)
- options: any;
+ options: MatchObject;
}
// @public (undocumented)
type LoaderOptionsPluginOptions = any;
-// @public
+// @public (undocumented)
export class LoaderTargetPlugin {
- constructor(target: string);
- apply(compiler: Compiler_5): void;
+ constructor(target: Target);
+ apply(compiler: Compiler): void;
// (undocumented)
- target: string;
+ readonly target: Target;
}
// @public (undocumented)
@@ -5178,7 +5297,7 @@ type LogTypeEnum = (typeof LogType)[keyof typeof LogType];
// @public (undocumented)
type MapOptions = { columns?: boolean; module?: boolean };
-// @public (undocumented)
+// @public
type Matcher = string | RegExp | (string | RegExp)[];
// @public (undocumented)
@@ -5302,6 +5421,7 @@ declare namespace ModuleFilenameHelpers {
export {
asRegExp,
matchPart,
+ MatchObject,
matchObject
}
}
@@ -5526,20 +5646,6 @@ const moduleOptions: z.ZodObject<{
overrideStrict?: "strict" | "non-strict" | undefined;
}>>;
}, "strict", z.ZodTypeAny, {
- css?: {
- namedExports?: boolean | undefined;
- } | undefined;
- asset?: {
- dataUrlCondition?: {
- maxSize?: number | undefined;
- } | undefined;
- } | undefined;
- "css/auto"?: {
- namedExports?: boolean | undefined;
- } | undefined;
- "css/module"?: {
- namedExports?: boolean | undefined;
- } | undefined;
javascript?: {
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
dynamicImportPreload?: number | boolean | undefined;
@@ -5555,6 +5661,20 @@ const moduleOptions: z.ZodObject<{
worker?: boolean | string[] | undefined;
overrideStrict?: "strict" | "non-strict" | undefined;
} | undefined;
+ css?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ "css/auto"?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ "css/module"?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ asset?: {
+ dataUrlCondition?: {
+ maxSize?: number | undefined;
+ } | undefined;
+ } | undefined;
"javascript/auto"?: {
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
dynamicImportPreload?: number | boolean | undefined;
@@ -5601,20 +5721,6 @@ const moduleOptions: z.ZodObject<{
overrideStrict?: "strict" | "non-strict" | undefined;
} | undefined;
}, {
- css?: {
- namedExports?: boolean | undefined;
- } | undefined;
- asset?: {
- dataUrlCondition?: {
- maxSize?: number | undefined;
- } | undefined;
- } | undefined;
- "css/auto"?: {
- namedExports?: boolean | undefined;
- } | undefined;
- "css/module"?: {
- namedExports?: boolean | undefined;
- } | undefined;
javascript?: {
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
dynamicImportPreload?: number | boolean | undefined;
@@ -5630,6 +5736,20 @@ const moduleOptions: z.ZodObject<{
worker?: boolean | string[] | undefined;
overrideStrict?: "strict" | "non-strict" | undefined;
} | undefined;
+ css?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ "css/auto"?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ "css/module"?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ asset?: {
+ dataUrlCondition?: {
+ maxSize?: number | undefined;
+ } | undefined;
+ } | undefined;
"javascript/auto"?: {
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
dynamicImportPreload?: number | boolean | undefined;
@@ -5702,8 +5822,9 @@ const moduleOptions: z.ZodObject<{
filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>;
publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>;
}>, "strict", z.ZodTypeAny, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
dataUrl?: {
mimetype?: string | undefined;
encoding?: false | "base64" | undefined;
@@ -5711,10 +5832,10 @@ const moduleOptions: z.ZodObject<{
filename: string;
content: string;
}, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
}, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
dataUrl?: {
mimetype?: string | undefined;
encoding?: false | "base64" | undefined;
@@ -5722,7 +5843,6 @@ const moduleOptions: z.ZodObject<{
filename: string;
content: string;
}, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
}>>;
"asset/inline": z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>;
publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>;
}, "strict", z.ZodTypeAny, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
}, {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
}>>;
css: z.ZodOptional string) | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- dataUrl?: {
- mimetype?: string | undefined;
- encoding?: false | "base64" | undefined;
- } | ((args_0: {
- filename: string;
- content: string;
- }, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
- } | undefined;
"css/auto"?: {
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
@@ -5845,6 +5953,18 @@ const moduleOptions: z.ZodObject<{
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
localIdentName?: string | undefined;
} | undefined;
+ asset?: {
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
+ dataUrl?: {
+ mimetype?: string | undefined;
+ encoding?: false | "base64" | undefined;
+ } | ((args_0: {
+ filename: string;
+ content: string;
+ }, ...args_1: unknown[]) => string) | undefined;
+ } | undefined;
"asset/inline"?: {
dataUrl?: {
mimetype?: string | undefined;
@@ -5855,8 +5975,8 @@ const moduleOptions: z.ZodObject<{
}, ...args_1: unknown[]) => string) | undefined;
} | undefined;
"asset/resource"?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
} | undefined;
}, {
@@ -5864,18 +5984,6 @@ const moduleOptions: z.ZodObject<{
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
} | undefined;
- asset?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- dataUrl?: {
- mimetype?: string | undefined;
- encoding?: false | "base64" | undefined;
- } | ((args_0: {
- filename: string;
- content: string;
- }, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
- } | undefined;
"css/auto"?: {
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
@@ -5888,6 +5996,18 @@ const moduleOptions: z.ZodObject<{
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
localIdentName?: string | undefined;
} | undefined;
+ asset?: {
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
+ dataUrl?: {
+ mimetype?: string | undefined;
+ encoding?: false | "base64" | undefined;
+ } | ((args_0: {
+ filename: string;
+ content: string;
+ }, ...args_1: unknown[]) => string) | undefined;
+ } | undefined;
"asset/inline"?: {
dataUrl?: {
mimetype?: string | undefined;
@@ -5898,28 +6018,14 @@ const moduleOptions: z.ZodObject<{
}, ...args_1: unknown[]) => string) | undefined;
} | undefined;
"asset/resource"?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
} | undefined;
}>, z.ZodRecord>]>>;
noParse: z.ZodOptional]>, z.ZodFunction, z.ZodBoolean>]>, z.ZodArray]>, z.ZodFunction, z.ZodBoolean>]>, "many">]>>;
}, "strict", z.ZodTypeAny, {
parser?: {
- css?: {
- namedExports?: boolean | undefined;
- } | undefined;
- asset?: {
- dataUrlCondition?: {
- maxSize?: number | undefined;
- } | undefined;
- } | undefined;
- "css/auto"?: {
- namedExports?: boolean | undefined;
- } | undefined;
- "css/module"?: {
- namedExports?: boolean | undefined;
- } | undefined;
javascript?: {
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
dynamicImportPreload?: number | boolean | undefined;
@@ -5935,6 +6041,20 @@ const moduleOptions: z.ZodObject<{
worker?: boolean | string[] | undefined;
overrideStrict?: "strict" | "non-strict" | undefined;
} | undefined;
+ css?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ "css/auto"?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ "css/module"?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ asset?: {
+ dataUrlCondition?: {
+ maxSize?: number | undefined;
+ } | undefined;
+ } | undefined;
"javascript/auto"?: {
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
dynamicImportPreload?: number | boolean | undefined;
@@ -5986,18 +6106,6 @@ const moduleOptions: z.ZodObject<{
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
} | undefined;
- asset?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- dataUrl?: {
- mimetype?: string | undefined;
- encoding?: false | "base64" | undefined;
- } | ((args_0: {
- filename: string;
- content: string;
- }, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
- } | undefined;
"css/auto"?: {
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
@@ -6010,6 +6118,18 @@ const moduleOptions: z.ZodObject<{
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
localIdentName?: string | undefined;
} | undefined;
+ asset?: {
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
+ dataUrl?: {
+ mimetype?: string | undefined;
+ encoding?: false | "base64" | undefined;
+ } | ((args_0: {
+ filename: string;
+ content: string;
+ }, ...args_1: unknown[]) => string) | undefined;
+ } | undefined;
"asset/inline"?: {
dataUrl?: {
mimetype?: string | undefined;
@@ -6020,30 +6140,16 @@ const moduleOptions: z.ZodObject<{
}, ...args_1: unknown[]) => string) | undefined;
} | undefined;
"asset/resource"?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
} | undefined;
} | undefined;
- rules?: (false | "" | 0 | RuleSetRule | "..." | null | undefined)[] | undefined;
- defaultRules?: (false | "" | 0 | RuleSetRule | "..." | null | undefined)[] | undefined;
+ rules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined;
+ defaultRules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined;
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
}, {
parser?: {
- css?: {
- namedExports?: boolean | undefined;
- } | undefined;
- asset?: {
- dataUrlCondition?: {
- maxSize?: number | undefined;
- } | undefined;
- } | undefined;
- "css/auto"?: {
- namedExports?: boolean | undefined;
- } | undefined;
- "css/module"?: {
- namedExports?: boolean | undefined;
- } | undefined;
javascript?: {
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
dynamicImportPreload?: number | boolean | undefined;
@@ -6059,6 +6165,20 @@ const moduleOptions: z.ZodObject<{
worker?: boolean | string[] | undefined;
overrideStrict?: "strict" | "non-strict" | undefined;
} | undefined;
+ css?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ "css/auto"?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ "css/module"?: {
+ namedExports?: boolean | undefined;
+ } | undefined;
+ asset?: {
+ dataUrlCondition?: {
+ maxSize?: number | undefined;
+ } | undefined;
+ } | undefined;
"javascript/auto"?: {
dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined;
dynamicImportPreload?: number | boolean | undefined;
@@ -6110,18 +6230,6 @@ const moduleOptions: z.ZodObject<{
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
} | undefined;
- asset?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
- dataUrl?: {
- mimetype?: string | undefined;
- encoding?: false | "base64" | undefined;
- } | ((args_0: {
- filename: string;
- content: string;
- }, ...args_1: unknown[]) => string) | undefined;
- emit?: boolean | undefined;
- } | undefined;
"css/auto"?: {
exportsOnly?: boolean | undefined;
esModule?: boolean | undefined;
@@ -6134,6 +6242,18 @@ const moduleOptions: z.ZodObject<{
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
localIdentName?: string | undefined;
} | undefined;
+ asset?: {
+ filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ emit?: boolean | undefined;
+ dataUrl?: {
+ mimetype?: string | undefined;
+ encoding?: false | "base64" | undefined;
+ } | ((args_0: {
+ filename: string;
+ content: string;
+ }, ...args_1: unknown[]) => string) | undefined;
+ } | undefined;
"asset/inline"?: {
dataUrl?: {
mimetype?: string | undefined;
@@ -6144,13 +6264,13 @@ const moduleOptions: z.ZodObject<{
}, ...args_1: unknown[]) => string) | undefined;
} | undefined;
"asset/resource"?: {
- publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
+ publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
emit?: boolean | undefined;
} | undefined;
} | undefined;
- rules?: (false | "" | 0 | RuleSetRule | "..." | null | undefined)[] | undefined;
- defaultRules?: (false | "" | 0 | RuleSetRule | "..." | null | undefined)[] | undefined;
+ rules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined;
+ defaultRules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined;
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
}>;
@@ -6347,7 +6467,7 @@ const NodeTargetPlugin: {
new (): {
name: BuiltinPluginName;
_args: [];
- affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
raw(compiler: Compiler_2): BuiltinPlugin;
apply(compiler: Compiler_2): void;
};
@@ -6418,7 +6538,6 @@ export class NormalModuleFactory {
// @public (undocumented)
export class NormalModuleReplacementPlugin {
constructor(resourceRegExp: RegExp, newResource: string | ModuleReplacer);
- // (undocumented)
apply(compiler: Compiler): void;
// (undocumented)
readonly newResource: string | ModuleReplacer;
@@ -6464,36 +6583,36 @@ const optimization: z.ZodObject<{
type: z.ZodOptional]>>;
idHint: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
- type?: string | RegExp | undefined;
- name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
}, {
- type?: string | RegExp | undefined;
- name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6508,16 +6627,16 @@ const optimization: z.ZodObject<{
maxInitialSize: z.ZodOptional;
automaticNameDelimiter: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
minSize?: number | undefined;
+ maxSize?: number | undefined;
maxAsyncSize?: number | undefined;
maxInitialSize?: number | undefined;
automaticNameDelimiter?: string | undefined;
}, {
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
minSize?: number | undefined;
+ maxSize?: number | undefined;
maxAsyncSize?: number | undefined;
maxInitialSize?: number | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6525,28 +6644,28 @@ const optimization: z.ZodObject<{
hidePathInfo: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | Record | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
cacheGroups?: Record unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6554,9 +6673,9 @@ const optimization: z.ZodObject<{
maxAsyncRequests?: number | undefined;
maxInitialRequests?: number | undefined;
fallbackCacheGroup?: {
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
minSize?: number | undefined;
+ maxSize?: number | undefined;
maxAsyncSize?: number | undefined;
maxInitialSize?: number | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6564,28 +6683,28 @@ const optimization: z.ZodObject<{
hidePathInfo?: boolean | undefined;
}, {
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | Record | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
cacheGroups?: Record unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6593,9 +6712,9 @@ const optimization: z.ZodObject<{
maxAsyncRequests?: number | undefined;
maxInitialRequests?: number | undefined;
fallbackCacheGroup?: {
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
minSize?: number | undefined;
+ maxSize?: number | undefined;
maxAsyncSize?: number | undefined;
maxInitialSize?: number | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6630,38 +6749,35 @@ const optimization: z.ZodObject<{
mangleExports: z.ZodOptional, z.ZodBoolean]>>;
nodeEnv: z.ZodOptional]>>;
}, "strict", z.ZodTypeAny, {
- usedExports?: boolean | "global" | undefined;
- providedExports?: boolean | undefined;
- sideEffects?: boolean | "flag" | undefined;
moduleIds?: "named" | "natural" | "deterministic" | undefined;
chunkIds?: "named" | "natural" | "deterministic" | undefined;
minimize?: boolean | undefined;
- minimizer?: (false | "" | 0 | "..." | RspackPluginInstance | RspackPluginFunction | null | undefined)[] | undefined;
+ minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
mergeDuplicateChunks?: boolean | undefined;
splitChunks?: false | {
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | Record | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
cacheGroups?: Record unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6669,9 +6785,9 @@ const optimization: z.ZodObject<{
maxAsyncRequests?: number | undefined;
maxInitialRequests?: number | undefined;
fallbackCacheGroup?: {
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
minSize?: number | undefined;
+ maxSize?: number | undefined;
maxAsyncSize?: number | undefined;
maxInitialSize?: number | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6686,43 +6802,43 @@ const optimization: z.ZodObject<{
removeAvailableModules?: boolean | undefined;
removeEmptyChunks?: boolean | undefined;
realContentHash?: boolean | undefined;
+ sideEffects?: boolean | "flag" | undefined;
+ providedExports?: boolean | undefined;
concatenateModules?: boolean | undefined;
innerGraph?: boolean | undefined;
- mangleExports?: boolean | "size" | "deterministic" | undefined;
+ usedExports?: boolean | "global" | undefined;
+ mangleExports?: boolean | "deterministic" | "size" | undefined;
nodeEnv?: string | false | undefined;
}, {
- usedExports?: boolean | "global" | undefined;
- providedExports?: boolean | undefined;
- sideEffects?: boolean | "flag" | undefined;
moduleIds?: "named" | "natural" | "deterministic" | undefined;
chunkIds?: "named" | "natural" | "deterministic" | undefined;
minimize?: boolean | undefined;
- minimizer?: (false | "" | 0 | "..." | RspackPluginInstance | RspackPluginFunction | null | undefined)[] | undefined;
+ minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
mergeDuplicateChunks?: boolean | undefined;
splitChunks?: false | {
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | Record | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
cacheGroups?: Record unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6730,9 +6846,9 @@ const optimization: z.ZodObject<{
maxAsyncRequests?: number | undefined;
maxInitialRequests?: number | undefined;
fallbackCacheGroup?: {
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
minSize?: number | undefined;
+ maxSize?: number | undefined;
maxAsyncSize?: number | undefined;
maxInitialSize?: number | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6747,9 +6863,12 @@ const optimization: z.ZodObject<{
removeAvailableModules?: boolean | undefined;
removeEmptyChunks?: boolean | undefined;
realContentHash?: boolean | undefined;
+ sideEffects?: boolean | "flag" | undefined;
+ providedExports?: boolean | undefined;
concatenateModules?: boolean | undefined;
innerGraph?: boolean | undefined;
- mangleExports?: boolean | "size" | "deterministic" | undefined;
+ usedExports?: boolean | "global" | undefined;
+ mangleExports?: boolean | "deterministic" | "size" | undefined;
nodeEnv?: string | false | undefined;
}>;
@@ -6804,36 +6923,36 @@ const optimizationSplitChunksCacheGroup: z.ZodObject<{
type: z.ZodOptional]>>;
idHint: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
- type?: string | RegExp | undefined;
- name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
}, {
- type?: string | RegExp | undefined;
- name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6877,36 +6996,36 @@ const optimizationSplitChunksOptions: z.ZodObject<{
type: z.ZodOptional]>>;
idHint: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
- type?: string | RegExp | undefined;
- name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
}, {
- type?: string | RegExp | undefined;
- name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6921,16 +7040,16 @@ const optimizationSplitChunksOptions: z.ZodObject<{
maxInitialSize: z.ZodOptional;
automaticNameDelimiter: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
minSize?: number | undefined;
+ maxSize?: number | undefined;
maxAsyncSize?: number | undefined;
maxInitialSize?: number | undefined;
automaticNameDelimiter?: string | undefined;
}, {
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
minSize?: number | undefined;
+ maxSize?: number | undefined;
maxAsyncSize?: number | undefined;
maxInitialSize?: number | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6938,28 +7057,28 @@ const optimizationSplitChunksOptions: z.ZodObject<{
hidePathInfo: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | Record | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
cacheGroups?: Record unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
filename?: string | undefined;
+ name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
+ type?: string | RegExp | undefined;
test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined;
- enforce?: boolean | undefined;
- maxSize?: number | Record | undefined;
priority?: number | undefined;
+ enforce?: boolean | undefined;
reuseExistingChunk?: boolean | undefined;
idHint?: string | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
defaultSizeTypes?: string[] | undefined;
minChunks?: number | undefined;
minSize?: number | Record | undefined;
+ maxSize?: number | Record | undefined;
maxAsyncSize?: number | Record | undefined;
maxInitialSize?: number | Record | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6967,9 +7086,9 @@ const optimizationSplitChunksOptions: z.ZodObject<{
maxAsyncRequests?: number | undefined;
maxInitialRequests?: number | undefined;
fallbackCacheGroup?: {
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | undefined;
+ chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
minSize?: number | undefined;
+ maxSize?: number | undefined;
maxAsyncSize?: number | undefined;
maxInitialSize?: number | undefined;
automaticNameDelimiter?: string | undefined;
@@ -6977,28 +7096,28 @@ const optimizationSplitChunksOptions: z.ZodObject<{
hidePathInfo?: boolean | undefined;
}, {
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
- chunks?: RegExp | "initial" | "all" | "async" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
- maxSize?: number | Record