From 42c52bf7db1f7ab2eb7f2d82d12abd78045c317c Mon Sep 17 00:00:00 2001 From: Jiri Zbytovsky Date: Fri, 13 Dec 2024 17:35:32 +0100 Subject: [PATCH 1/2] fix(type): Add missing OptimizationSplitChunksNameFunction param --- packages/rspack/src/config/types.ts | 6 +++++- packages/rspack/src/config/zod.ts | 11 ++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/rspack/src/config/types.ts b/packages/rspack/src/config/types.ts index d2eed638882..65e385039a9 100644 --- a/packages/rspack/src/config/types.ts +++ b/packages/rspack/src/config/types.ts @@ -2078,7 +2078,11 @@ export type OptimizationRuntimeChunk = name?: string | ((value: { name: string }) => string); }; -export type OptimizationSplitChunksNameFunction = (module?: Module) => unknown; +export type OptimizationSplitChunksNameFunction = ( + module: Module, + chunks: Chunk[], + cacheGroupKey: string +) => string | undefined; type OptimizationSplitChunksName = | string diff --git a/packages/rspack/src/config/zod.ts b/packages/rspack/src/config/zod.ts index 10e9f808477..9962032dd9a 100644 --- a/packages/rspack/src/config/zod.ts +++ b/packages/rspack/src/config/zod.ts @@ -1177,11 +1177,12 @@ const optimizationRuntimeChunk = z }) ) satisfies z.ZodType; -const optimizationSplitChunksNameFunction = z.function().args( - z.instanceof(Module).optional() - // FIXME: z.array(z.instanceof(Chunk)).optional(), z.string() - // FIXME: Chunk[], cacheChunkKey -) satisfies z.ZodType; +const optimizationSplitChunksNameFunction = z + .function() + .args(z.instanceof(Module), z.array(z.instanceof(Chunk)), z.string()) + .returns( + z.string().optional() + ) satisfies z.ZodType; const optimizationSplitChunksName = z .string() From 8af01d95d5b4b4961e1367869a82f3b0d28bf419 Mon Sep 17 00:00:00 2001 From: Jiri Zbytovsky Date: Mon, 6 Jan 2025 10:36:19 +0100 Subject: [PATCH 2/2] docs: regenerate api extractor --- .../rspack-test-tools/etc/test-tools.api.md | 38 - packages/rspack/etc/core.api.md | 1514 ++++++++--------- 2 files changed, 730 insertions(+), 822 deletions(-) diff --git a/packages/rspack-test-tools/etc/test-tools.api.md b/packages/rspack-test-tools/etc/test-tools.api.md index 2810d89b642..12eef48b1c6 100644 --- a/packages/rspack-test-tools/etc/test-tools.api.md +++ b/packages/rspack-test-tools/etc/test-tools.api.md @@ -106,35 +106,6 @@ export class BuiltinProcessor extends SnapshotProcessor static defaultOptions(this: BuiltinProcessor, context: ITestContext): TCompilerOptions; } -// @public (undocumented) -export class CacheProcessor extends BasicProcessor { - constructor(_cacheOptions: ICacheProcessorOptions); - // (undocumented) - afterAll(context: ITestContext): Promise; - // (undocumented) - build(context: ITestContext): Promise; - // (undocumented) - protected _cacheOptions: ICacheProcessorOptions; - // (undocumented) - static defaultOptions(this: CacheProcessor, context: ITestContext): TCompilerOptions; - // (undocumented) - static findBundle(this: CacheProcessor, context: ITestContext): string[]; - // (undocumented) - static overrideOptions(this: CacheProcessor, context: ITestContext, options: TCompilerOptions): void; - // (undocumented) - run(env: ITestEnv, context: ITestContext): Promise; - // (undocumented) - protected runner: ITestRunner | null; - // (undocumented) - protected updateOptions: TUpdateOptions; -} - -// @public (undocumented) -export class CacheRunnerFactory extends BasicRunnerFactory { - // (undocumented) - protected createRunner(file: string, stats: TCompilerStatsCompilation, compilerOptions: TCompilerOptions, env: ITestEnv): ITestRunner; -} - // @public (undocumented) export function checkChunkModules(statsJson: any, chunkModulesMap: any, strict?: boolean): boolean; @@ -182,9 +153,6 @@ export class ConfigProcessor extends MultiTaskProcessor // @public (undocumented) export function createBuiltinCase(name: string, src: string, dist: string): void; -// @public (undocumented) -export function createCacheCase(name: string, src: string, dist: string, target: TCompilerOptions["target"]): void; - // @public (undocumented) export function createCompilerCase(name: string, src: string, dist: string, testConfig: string): void; @@ -602,12 +570,6 @@ export interface IBasicRunnerOptions { export interface IBuiltinProcessorOptions extends Omit, "runable"> { } -// @public (undocumented) -export interface ICacheProcessorOptions extends Omit, "runable"> { - // (undocumented) - target: TCompilerOptions["target"]; -} - // @public (undocumented) export interface ICompareOptions { // (undocumented) diff --git a/packages/rspack/etc/core.api.md b/packages/rspack/etc/core.api.md index 3b7e49c10aa..3b3f0b1675b 100644 --- a/packages/rspack/etc/core.api.md +++ b/packages/rspack/etc/core.api.md @@ -47,10 +47,10 @@ import type { JsDependency } from '@rspack/binding'; import type { JsExportsInfo } from '@rspack/binding'; import type { JsFactoryMeta } from '@rspack/binding'; import { JsHtmlPluginTag } from '@rspack/binding'; +import { JsLibraryOptions } from '@rspack/binding'; import { JsLoaderItem } from '@rspack/binding'; -import type { JsModule } from '@rspack/binding'; +import { JsModule } from '@rspack/binding'; import type { JsModuleGraph } from '@rspack/binding'; -import type { JsModuleGraphConnection } from '@rspack/binding'; import { JsRuntimeModule } from '@rspack/binding'; import type { JsStats } from '@rspack/binding'; import type { JsStatsCompilation } from '@rspack/binding'; @@ -153,9 +153,9 @@ interface AssetEmittedInfo { export type AssetGeneratorDataUrl = AssetGeneratorDataUrlOptions | AssetGeneratorDataUrlFunction; // @public (undocumented) -export type AssetGeneratorDataUrlFunction = (content: Buffer, context: { +export type AssetGeneratorDataUrlFunction = (options: { filename: string; - module: Module; + content: string; }) => string; // @public (undocumented) @@ -181,9 +181,6 @@ export type AssetInlineGeneratorOptions = { // @public export type AssetModuleFilename = Filename; -// @public -export type AssetModuleOutputPath = Filename; - // @public export type AssetParserDataUrl = AssetParserDataUrlOptions; @@ -201,7 +198,6 @@ export type AssetParserOptions = { export type AssetResourceGeneratorOptions = { emit?: boolean; filename?: Filename; - outputPath?: AssetModuleOutputPath; publicPath?: PublicPath; }; @@ -235,7 +231,7 @@ export const BannerPlugin: { new (args: BannerPluginArgument): { name: BuiltinPluginName; _args: [args: BannerPluginArgument]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -577,6 +573,11 @@ export class Compilation { // @internal __internal__getChunks(): Chunk[]; // @internal + __internal__getCustomModule(moduleIdentifier: string): { + buildInfo: Record; + buildMeta: Record; + }; + // @internal __internal__hasAsset(name: string): boolean; // @internal __internal__pushDiagnostic(diagnostic: ExternalObject<"Diagnostic">): void; @@ -592,8 +593,6 @@ export class Compilation { // @internal __internal_getInner(): binding.JsCompilation; // (undocumented) - addInclude(context: string, dependency: ReturnType, options: EntryOptions, callback: (err?: null | WebpackError_2, module?: Module) => void): void; - // (undocumented) addRuntimeModule(chunk: Chunk, runtimeModule: RuntimeModule): void; get assets(): Record; // (undocumented) @@ -1108,7 +1107,6 @@ export type Context = string; // @public (undocumented) type ContextInfo = { issuer: string; - issuerLayer?: string; }; // @public (undocumented) @@ -1172,7 +1170,7 @@ export const ContextReplacementPlugin: { new (resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any): { name: BuiltinPluginName; _args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -1183,7 +1181,7 @@ export const CopyRspackPlugin: { new (copy: CopyRspackPluginOptions): { name: BuiltinPluginName; _args: [copy: CopyRspackPluginOptions]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -1315,7 +1313,7 @@ export const DefinePlugin: { new (define: DefinePluginOptions): { name: BuiltinPluginName; _args: [define: DefinePluginOptions]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -1562,7 +1560,7 @@ const ElectronTargetPlugin: { new (context?: string | undefined): { name: BuiltinPluginName; _args: [context?: string | undefined]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -1573,7 +1571,7 @@ const EnableChunkLoadingPlugin: { new (type: string): { name: BuiltinPluginName; _args: [type: string]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -1606,7 +1604,7 @@ const EnableWasmLoadingPlugin: { new (type: string): { name: BuiltinPluginName; _args: [type: string]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -1636,12 +1634,6 @@ class EntryData { options: binding.JsEntryOptions; } -// @public (undocumented) -interface EntryDependency { - // (undocumented) - request: string; -} - // @public export type EntryDependOn = string | string[]; @@ -1699,12 +1691,15 @@ export type EntryOptions = Omit & { name?: string; }; -// @public (undocumented) -export const EntryPlugin: EntryPluginType; - -// @public (undocumented) -type EntryPluginType = typeof OriginEntryPlugin & { - createDependency(entry: string): EntryDependency; +// @public +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" | "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" | "additionalPass" | undefined; + raw(compiler: Compiler_2): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; }; // @public (undocumented) @@ -1866,7 +1861,7 @@ export const EvalDevToolModulePlugin: { new (options: EvalDevToolModulePluginOptions): { name: BuiltinPluginName; _args: [options: EvalDevToolModulePluginOptions]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -1879,7 +1874,7 @@ export const EvalSourceMapDevToolPlugin: { new (options: SourceMapDevToolPluginOptions): { name: BuiltinPluginName; _args: [options: SourceMapDevToolPluginOptions]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -1934,7 +1929,7 @@ export type ExperimentCacheOptions = boolean | { unmanagedPaths?: Array; managedPaths?: Array; }; - storage?: { + storage: { type: "filesystem"; directory?: string; }; @@ -2030,7 +2025,7 @@ export type ExposesObject = { }; // @public -export type ExternalItem = string | RegExp | ExternalItemObjectUnknown | ((data: ExternalItemFunctionData) => ExternalItemValue) | ((data: ExternalItemFunctionData, callback: (err?: Error, result?: ExternalItemValue, type?: ExternalsType) => void) => void) | ((data: ExternalItemFunctionData) => Promise); +export type ExternalItem = string | RegExp | ExternalItemObjectUnknown | ((data: ExternalItemFunctionData, callback: (err?: Error, result?: ExternalItemValue, type?: ExternalsType) => void) => void) | ((data: ExternalItemFunctionData) => Promise); // @public export type ExternalItemFunctionData = { @@ -2127,7 +2122,7 @@ const FetchCompileAsyncWasmPlugin: { new (): { name: BuiltinPluginName; _args: []; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -2183,6 +2178,12 @@ type GetChildLogger = (name: string | (() => string)) => Logger; // @public (undocumented) export const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized; +// @public (undocumented) +export function getRawChunkLoading(chunkLoading: ChunkLoading): string; + +// @public (undocumented) +export function getRawLibrary(library: LibraryOptions): JsLibraryOptions; + // @public (undocumented) export const getRawOptions: (options: RspackOptionsNormalized, compiler: Compiler) => RawOptions; @@ -2324,7 +2325,7 @@ const HtmlRspackPluginImpl: { new (c?: HtmlRspackPluginOptions | undefined): { name: BuiltinPluginName; _args: [c?: HtmlRspackPluginOptions | undefined]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler): BuiltinPlugin; apply(compiler: Compiler): void; }; @@ -2387,7 +2388,7 @@ export const IgnorePlugin: { new (options: IgnorePluginOptions): { name: BuiltinPluginName; _args: [options: IgnorePluginOptions]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -2416,20 +2417,12 @@ export type ImportFunctionName = string; // @public export type ImportMetaName = string; -// @public (undocumented) -interface ImportModuleOptions { - baseUri?: string; - layer?: string; - publicPath?: PublicPath; -} - // @public export type Incremental = { make?: boolean; inferAsyncModules?: boolean; providedExports?: boolean; dependenciesDiagnostics?: boolean; - sideEffects?: boolean; buildChunkGraph?: boolean; moduleIds?: boolean; chunkIds?: boolean; @@ -2745,11 +2738,6 @@ type JsonObject_2 = { [Key in string]?: JsonValue_2 | undefined; }; -// @public (undocumented) -export type JsonParserOptions = { - exportsDepth?: number; -}; - // @public (undocumented) type JsonPrimitive = string | number | boolean | null; @@ -3246,7 +3234,7 @@ export const LightningCssMinimizerRspackPlugin: { new (options?: LightningCssMinimizerRspackPluginOptions | undefined): { name: BuiltinPluginName; _args: [options?: LightningCssMinimizerRspackPluginOptions | undefined]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -3283,7 +3271,7 @@ const LimitChunkCountPlugin: { new (options: LimitChunkCountOptions): { name: BuiltinPluginName; _args: [options: LimitChunkCountOptions]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -3359,9 +3347,12 @@ export interface LoaderContext { getResolve(options: Resolve): ((context: string, request: string, callback: ResolveCallback) => void) | ((context: string, request: string) => Promise); // (undocumented) hot?: boolean; - importModule(request: string, options: ImportModuleOptions | undefined, callback: (err?: null | Error, exports?: T) => any): void; // (undocumented) - importModule(request: string, options?: ImportModuleOptions): Promise; + importModule(request: string, options: { + layer?: string; + publicPath?: PublicPath; + baseUri?: string; + }, callback: (err?: Error, res?: any) => void): void; // (undocumented) loaderIndex: number; loaders: LoaderObject[]; @@ -3648,15 +3639,15 @@ export type Mode = "development" | "production" | "none"; // @public (undocumented) export class Module { - constructor(module: JsModule); + constructor(module: JsModule, compilation?: Compilation); // (undocumented) - static __from_binding(binding: JsModule): Module; + static __from_binding(binding: JsModule, compilation?: Compilation): Module; // (undocumented) static __to_binding(module: Module): JsModule; // (undocumented) readonly blocks: DependenciesBlock[]; - buildInfo: Record; - buildMeta: Record; + readonly buildInfo: Record; + readonly buildMeta: Record; // (undocumented) readonly context?: string; // (undocumented) @@ -3761,29 +3752,11 @@ class ModuleGraph { // (undocumented) static __from_binding(binding: JsModuleGraph): ModuleGraph; // (undocumented) - getConnection(dependency: Dependency): ModuleGraphConnection | null; - // (undocumented) getExportsInfo(module: Module): ExportsInfo; // (undocumented) getIssuer(module: Module): Module | null; // (undocumented) getModule(dependency: Dependency): Module | null; - // (undocumented) - getOutgoingConnections(module: Module): ModuleGraphConnection[]; - // (undocumented) - getResolvedModule(dependency: Dependency): Module | null; -} - -// @public (undocumented) -class ModuleGraphConnection { - // (undocumented) - static __from_binding(binding: JsModuleGraphConnection): ModuleGraphConnection; - // (undocumented) - static __to_binding(data: ModuleGraphConnection): JsModuleGraphConnection; - // (undocumented) - readonly dependency: Dependency; - // (undocumented) - readonly module: Module | null; } // @public (undocumented) @@ -3959,7 +3932,7 @@ const NodeTargetPlugin: { new (): { name: BuiltinPluginName; _args: []; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -3982,7 +3955,7 @@ export const NoEmitOnErrorsPlugin: { new (): { name: BuiltinPluginName; _args: []; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -4128,7 +4101,6 @@ export type Optimization = { mangleExports?: "size" | "deterministic" | boolean; nodeEnv?: string | false; emitOnErrors?: boolean; - avoidEntryIife?: boolean; }; // @public @@ -4150,7 +4122,7 @@ export type OptimizationSplitChunksCacheGroup = { test?: string | RegExp | ((module: Module) => unknown); priority?: number; enforce?: boolean; - filename?: Filename; + filename?: string; reuseExistingChunk?: boolean; type?: string | RegExp; idHint?: string; @@ -4163,7 +4135,7 @@ type OptimizationSplitChunksChunks = "initial" | "async" | "all" | RegExp | ((ch type OptimizationSplitChunksName = string | false | OptimizationSplitChunksNameFunction; // @public (undocumented) -export type OptimizationSplitChunksNameFunction = (module?: Module) => unknown; +export type OptimizationSplitChunksNameFunction = (module?: Module, chunks?: Chunk[]) => unknown; // @public export type OptimizationSplitChunksOptions = { @@ -4207,17 +4179,6 @@ interface OptimizerConfig { simplify?: boolean; } -// @public -const OriginEntryPlugin: { - new (context: string, entry: string, options?: string | EntryOptions | undefined): { - name: BuiltinPluginName; - _args: [context: string, entry: string, options?: string | EntryOptions | undefined]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined; - raw(compiler: Compiler_2): BuiltinPlugin; - apply(compiler: Compiler_2): void; - }; -}; - // @public (undocumented) export type Output = { path?: Path; @@ -4482,7 +4443,6 @@ export type ParserOptionsByModuleTypeKnown = { "javascript/auto"?: JavascriptParserOptions; "javascript/dynamic"?: JavascriptParserOptions; "javascript/esm"?: JavascriptParserOptions; - json?: JsonParserOptions; }; // @public @@ -4604,7 +4564,7 @@ export const ProgressPlugin: { new (progress?: ProgressPluginArgument): { name: BuiltinPluginName; _args: [progress?: ProgressPluginArgument]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -4618,7 +4578,7 @@ export const ProvidePlugin: { new (provide: ProvidePluginOptions): { name: BuiltinPluginName; _args: [provide: ProvidePluginOptions]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -4923,7 +4883,7 @@ const RemoveDuplicateModulesPlugin: { new (): { name: BuiltinPluginName; _args: []; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -5216,6 +5176,8 @@ declare namespace rspackExports { LightningcssFeatureOptions, experiments, getRawResolve, + getRawLibrary, + getRawChunkLoading, LoaderContext, LoaderDefinition, LoaderDefinitionFunction, @@ -5331,7 +5293,6 @@ declare namespace rspackExports { CssAutoParserOptions, CssModuleParserOptions, JavascriptParserOptions, - JsonParserOptions, ParserOptionsByModuleTypeKnown, ParserOptionsByModuleTypeUnknown, ParserOptionsByModuleType, @@ -5339,7 +5300,6 @@ declare namespace rspackExports { AssetGeneratorDataUrlFunction, AssetGeneratorDataUrl, AssetInlineGeneratorOptions, - AssetModuleOutputPath, AssetResourceGeneratorOptions, AssetGeneratorOptions, CssGeneratorExportsConvention, @@ -5533,7 +5493,6 @@ export const rspackOptions: z.ZodObject<{ layer: z.ZodOptional>; }, "strict", z.ZodTypeAny, { import: string | string[]; - layer?: string | null | undefined; runtime?: string | false | undefined; chunkLoading?: string | false | undefined; asyncChunks?: boolean | undefined; @@ -5557,11 +5516,11 @@ export const rspackOptions: z.ZodObject<{ export?: string | string[] | undefined; umdNamedDefine?: boolean | undefined; } | undefined; + layer?: string | null | undefined; wasmLoading?: string | false | undefined; dependOn?: string | string[] | undefined; }, { import: string | string[]; - layer?: string | null | undefined; runtime?: string | false | undefined; chunkLoading?: string | false | undefined; asyncChunks?: boolean | undefined; @@ -5585,6 +5544,7 @@ export const rspackOptions: z.ZodObject<{ export?: string | string[] | undefined; umdNamedDefine?: boolean | undefined; } | undefined; + layer?: string | null | undefined; wasmLoading?: string | false | undefined; dependOn?: string | string[] | undefined; }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray]>]>, z.ZodFunction, z.ZodUnion<[z.ZodUnion<[z.ZodRecord]>, z.ZodObject<{ @@ -5667,7 +5627,6 @@ export const rspackOptions: z.ZodObject<{ layer: z.ZodOptional>; }, "strict", z.ZodTypeAny, { import: string | string[]; - layer?: string | null | undefined; runtime?: string | false | undefined; chunkLoading?: string | false | undefined; asyncChunks?: boolean | undefined; @@ -5691,11 +5650,11 @@ export const rspackOptions: z.ZodObject<{ export?: string | string[] | undefined; umdNamedDefine?: boolean | undefined; } | undefined; + layer?: string | null | undefined; wasmLoading?: string | false | undefined; dependOn?: string | string[] | undefined; }, { import: string | string[]; - layer?: string | null | undefined; runtime?: string | false | undefined; chunkLoading?: string | false | undefined; asyncChunks?: boolean | undefined; @@ -5719,6 +5678,7 @@ export const rspackOptions: z.ZodObject<{ export?: string | string[] | undefined; umdNamedDefine?: boolean | undefined; } | undefined; + layer?: string | null | undefined; wasmLoading?: string | false | undefined; dependOn?: string | string[] | undefined; }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray]>]>, z.ZodPromise]>, z.ZodObject<{ @@ -5801,7 +5761,6 @@ export const rspackOptions: z.ZodObject<{ layer: z.ZodOptional>; }, "strict", z.ZodTypeAny, { import: string | string[]; - layer?: string | null | undefined; runtime?: string | false | undefined; chunkLoading?: string | false | undefined; asyncChunks?: boolean | undefined; @@ -5825,11 +5784,11 @@ export const rspackOptions: z.ZodObject<{ export?: string | string[] | undefined; umdNamedDefine?: boolean | undefined; } | undefined; + layer?: string | null | undefined; wasmLoading?: string | false | undefined; dependOn?: string | string[] | undefined; }, { import: string | string[]; - layer?: string | null | undefined; runtime?: string | false | undefined; chunkLoading?: string | false | undefined; asyncChunks?: boolean | undefined; @@ -5853,6 +5812,7 @@ export const rspackOptions: z.ZodObject<{ export?: string | string[] | undefined; umdNamedDefine?: boolean | undefined; } | undefined; + layer?: string | null | undefined; wasmLoading?: string | false | undefined; dependOn?: string | string[] | undefined; }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray]>]>>]>>]>>; @@ -6065,6 +6025,7 @@ export const rspackOptions: z.ZodObject<{ compareBeforeEmit: z.ZodOptional; }, "strict", z.ZodTypeAny, { module?: boolean | undefined; + path?: string | undefined; chunkLoading?: string | false | undefined; asyncChunks?: boolean | undefined; publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; @@ -6099,20 +6060,35 @@ export const rspackOptions: z.ZodObject<{ root?: string | undefined; } | undefined; umdNamedDefine?: boolean | undefined; - path?: string | undefined; + crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; + environment?: { + module?: boolean | undefined; + document?: boolean | undefined; + nodePrefixForCoreModules?: boolean | undefined; + globalThis?: boolean | undefined; + bigIntLiteral?: boolean | undefined; + const?: boolean | undefined; + arrowFunction?: boolean | undefined; + forOf?: boolean | undefined; + destructuring?: boolean | undefined; + dynamicImport?: boolean | undefined; + dynamicImportInWorker?: boolean | undefined; + optionalChaining?: boolean | undefined; + templateLiteral?: boolean | undefined; + asyncFunction?: boolean | undefined; + } | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + uniqueName?: string | undefined; pathinfo?: boolean | "verbose" | undefined; clean?: boolean | { keep?: string | undefined; } | undefined; - chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; hotUpdateMainFilename?: string | undefined; hotUpdateChunkFilename?: string | undefined; hotUpdateGlobal?: string | undefined; assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - uniqueName?: string | undefined; chunkLoadingGlobal?: string | undefined; enabledLibraryTypes?: string[] | undefined; strictModuleErrorHandling?: boolean | undefined; @@ -6140,22 +6116,6 @@ export const rspackOptions: z.ZodObject<{ devtoolNamespace?: string | undefined; devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; - environment?: { - module?: boolean | undefined; - document?: boolean | undefined; - nodePrefixForCoreModules?: boolean | undefined; - globalThis?: boolean | undefined; - bigIntLiteral?: boolean | undefined; - const?: boolean | undefined; - arrowFunction?: boolean | undefined; - forOf?: boolean | undefined; - destructuring?: boolean | undefined; - dynamicImport?: boolean | undefined; - dynamicImportInWorker?: boolean | undefined; - optionalChaining?: boolean | undefined; - templateLiteral?: boolean | undefined; - asyncFunction?: boolean | undefined; - } | undefined; charset?: boolean | undefined; chunkLoadTimeout?: number | undefined; compareBeforeEmit?: boolean | undefined; @@ -6164,6 +6124,7 @@ export const rspackOptions: z.ZodObject<{ strictModuleExceptionHandling?: boolean | undefined; }, { module?: boolean | undefined; + path?: string | undefined; chunkLoading?: string | false | undefined; asyncChunks?: boolean | undefined; publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; @@ -6198,20 +6159,35 @@ export const rspackOptions: z.ZodObject<{ root?: string | undefined; } | undefined; umdNamedDefine?: boolean | undefined; - path?: string | undefined; + crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; + environment?: { + module?: boolean | undefined; + document?: boolean | undefined; + nodePrefixForCoreModules?: boolean | undefined; + globalThis?: boolean | undefined; + bigIntLiteral?: boolean | undefined; + const?: boolean | undefined; + arrowFunction?: boolean | undefined; + forOf?: boolean | undefined; + destructuring?: boolean | undefined; + dynamicImport?: boolean | undefined; + dynamicImportInWorker?: boolean | undefined; + optionalChaining?: boolean | undefined; + templateLiteral?: boolean | undefined; + asyncFunction?: boolean | undefined; + } | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + uniqueName?: string | undefined; pathinfo?: boolean | "verbose" | undefined; clean?: boolean | { keep?: string | undefined; } | undefined; - chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; hotUpdateMainFilename?: string | undefined; hotUpdateChunkFilename?: string | undefined; hotUpdateGlobal?: string | undefined; assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - uniqueName?: string | undefined; chunkLoadingGlobal?: string | undefined; enabledLibraryTypes?: string[] | undefined; strictModuleErrorHandling?: boolean | undefined; @@ -6239,22 +6215,6 @@ export const rspackOptions: z.ZodObject<{ devtoolNamespace?: string | undefined; devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; - environment?: { - module?: boolean | undefined; - document?: boolean | undefined; - nodePrefixForCoreModules?: boolean | undefined; - globalThis?: boolean | undefined; - bigIntLiteral?: boolean | undefined; - const?: boolean | undefined; - arrowFunction?: boolean | undefined; - forOf?: boolean | undefined; - destructuring?: boolean | undefined; - dynamicImport?: boolean | undefined; - dynamicImportInWorker?: boolean | undefined; - optionalChaining?: boolean | undefined; - templateLiteral?: boolean | undefined; - asyncFunction?: boolean | undefined; - } | undefined; charset?: boolean | undefined; chunkLoadTimeout?: number | undefined; compareBeforeEmit?: boolean | undefined; @@ -6288,18 +6248,22 @@ export const rspackOptions: z.ZodObject<{ unmanagedPaths?: (string | RegExp)[] | undefined; managedPaths?: (string | RegExp)[] | undefined; }>>; - storage: z.ZodOptional; directory: z.ZodOptional; - }, "strip", z.ZodTypeAny, { + }, "strict", z.ZodTypeAny, { type: "filesystem"; directory?: string | undefined; }, { type: "filesystem"; directory?: string | undefined; - }>>; + }>; }, "strip", z.ZodTypeAny, { type: "persistent"; + storage: { + type: "filesystem"; + directory?: string | undefined; + }; version?: string | undefined; snapshot?: { immutablePaths?: (string | RegExp)[] | undefined; @@ -6307,12 +6271,12 @@ export const rspackOptions: z.ZodObject<{ managedPaths?: (string | RegExp)[] | undefined; } | undefined; buildDependencies?: string[] | undefined; - storage?: { - type: "filesystem"; - directory?: string | undefined; - } | undefined; }, { type: "persistent"; + storage: { + type: "filesystem"; + directory?: string | undefined; + }; version?: string | undefined; snapshot?: { immutablePaths?: (string | RegExp)[] | undefined; @@ -6320,10 +6284,6 @@ export const rspackOptions: z.ZodObject<{ managedPaths?: (string | RegExp)[] | undefined; } | undefined; buildDependencies?: string[] | undefined; - storage?: { - type: "filesystem"; - directory?: string | undefined; - } | undefined; }>]>]>; lazyCompilation: z.ZodUnion<[z.ZodOptional, z.ZodObject<{ backend: z.ZodOptional; providedExports: z.ZodOptional; dependenciesDiagnostics: z.ZodOptional; - sideEffects: z.ZodOptional; buildChunkGraph: z.ZodOptional; moduleIds: z.ZodOptional; chunkIds: z.ZodOptional; @@ -6450,7 +6409,6 @@ export const rspackOptions: z.ZodObject<{ make?: boolean | undefined; inferAsyncModules?: boolean | undefined; dependenciesDiagnostics?: boolean | undefined; - sideEffects?: boolean | undefined; buildChunkGraph?: boolean | undefined; moduleIds?: boolean | undefined; chunkIds?: boolean | undefined; @@ -6466,7 +6424,6 @@ export const rspackOptions: z.ZodObject<{ make?: boolean | undefined; inferAsyncModules?: boolean | undefined; dependenciesDiagnostics?: boolean | undefined; - sideEffects?: boolean | undefined; buildChunkGraph?: boolean | undefined; moduleIds?: boolean | undefined; chunkIds?: boolean | undefined; @@ -6512,6 +6469,10 @@ export const rspackOptions: z.ZodObject<{ type: "memory"; } | { type: "persistent"; + storage: { + type: "filesystem"; + directory?: string | undefined; + }; version?: string | undefined; snapshot?: { immutablePaths?: (string | RegExp)[] | undefined; @@ -6519,32 +6480,7 @@ export const rspackOptions: z.ZodObject<{ managedPaths?: (string | RegExp)[] | undefined; } | undefined; buildDependencies?: string[] | undefined; - storage?: { - type: "filesystem"; - directory?: string | undefined; - } | undefined; - } | undefined; - lazyCompilation?: boolean | { - entries?: boolean | undefined; - test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined; - imports?: boolean | undefined; - backend?: { - client?: string | undefined; - listen?: number | { - path?: string | undefined; - port?: number | undefined; - host?: string | undefined; - backlog?: number | undefined; - exclusive?: boolean | undefined; - readableAll?: boolean | undefined; - writableAll?: boolean | undefined; - ipv6Only?: boolean | undefined; - } | undefined; - protocol?: "http" | "https" | undefined; - } | undefined; } | undefined; - asyncWebAssembly?: boolean | undefined; - outputModule?: boolean | undefined; topLevelAwait?: boolean | undefined; layers?: boolean | undefined; incremental?: boolean | { @@ -6552,7 +6488,6 @@ export const rspackOptions: z.ZodObject<{ make?: boolean | undefined; inferAsyncModules?: boolean | undefined; dependenciesDiagnostics?: boolean | undefined; - sideEffects?: boolean | undefined; buildChunkGraph?: boolean | undefined; moduleIds?: boolean | undefined; chunkIds?: boolean | undefined; @@ -6564,7 +6499,6 @@ export const rspackOptions: z.ZodObject<{ chunksRender?: boolean | undefined; emitAssets?: boolean | undefined; } | undefined; - futureDefaults?: boolean | undefined; rspackFuture?: { bundlerInfo?: { version?: string | undefined; @@ -6572,24 +6506,9 @@ export const rspackOptions: z.ZodObject<{ bundler?: string | undefined; } | undefined; } | undefined; - }, { - css?: boolean | undefined; - cache?: boolean | { - type: "memory"; - } | { - type: "persistent"; - version?: string | undefined; - snapshot?: { - immutablePaths?: (string | RegExp)[] | undefined; - unmanagedPaths?: (string | RegExp)[] | undefined; - managedPaths?: (string | RegExp)[] | undefined; - } | undefined; - buildDependencies?: string[] | undefined; - storage?: { - type: "filesystem"; - directory?: string | undefined; - } | undefined; - } | undefined; + asyncWebAssembly?: boolean | undefined; + outputModule?: boolean | undefined; + futureDefaults?: boolean | undefined; lazyCompilation?: boolean | { entries?: boolean | undefined; test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined; @@ -6609,8 +6528,24 @@ export const rspackOptions: z.ZodObject<{ protocol?: "http" | "https" | undefined; } | undefined; } | undefined; - asyncWebAssembly?: boolean | undefined; - outputModule?: boolean | undefined; + }, { + css?: boolean | undefined; + cache?: boolean | { + type: "memory"; + } | { + type: "persistent"; + storage: { + type: "filesystem"; + directory?: string | undefined; + }; + version?: string | undefined; + snapshot?: { + immutablePaths?: (string | RegExp)[] | undefined; + unmanagedPaths?: (string | RegExp)[] | undefined; + managedPaths?: (string | RegExp)[] | undefined; + } | undefined; + buildDependencies?: string[] | undefined; + } | undefined; topLevelAwait?: boolean | undefined; layers?: boolean | undefined; incremental?: boolean | { @@ -6618,7 +6553,6 @@ export const rspackOptions: z.ZodObject<{ make?: boolean | undefined; inferAsyncModules?: boolean | undefined; dependenciesDiagnostics?: boolean | undefined; - sideEffects?: boolean | undefined; buildChunkGraph?: boolean | undefined; moduleIds?: boolean | undefined; chunkIds?: boolean | undefined; @@ -6630,7 +6564,6 @@ export const rspackOptions: z.ZodObject<{ chunksRender?: boolean | undefined; emitAssets?: boolean | undefined; } | undefined; - futureDefaults?: boolean | undefined; rspackFuture?: { bundlerInfo?: { version?: string | undefined; @@ -6638,8 +6571,30 @@ export const rspackOptions: z.ZodObject<{ bundler?: string | undefined; } | undefined; } | undefined; + asyncWebAssembly?: boolean | undefined; + outputModule?: boolean | undefined; + futureDefaults?: boolean | undefined; + lazyCompilation?: boolean | { + entries?: boolean | undefined; + test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined; + imports?: boolean | undefined; + backend?: { + client?: string | undefined; + listen?: number | { + path?: string | undefined; + port?: number | undefined; + host?: string | undefined; + backlog?: number | undefined; + exclusive?: boolean | undefined; + readableAll?: boolean | undefined; + writableAll?: boolean | undefined; + ipv6Only?: boolean | undefined; + } | undefined; + protocol?: "http" | "https" | undefined; + } | undefined; + } | undefined; }>>; - externals: z.ZodOptional]>, z.ZodRecord, z.ZodArray]>, ZodRspackCrossChecker]>>]>, z.ZodFunction, z.ZodFunction>, z.ZodOptional, z.ZodArray]>, ZodRspackCrossChecker]>>, z.ZodOptional>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction], z.ZodUnknown>, z.ZodPromise, z.ZodArray]>, ZodRspackCrossChecker]>>>]>, z.ZodFunction], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray]>, ZodRspackCrossChecker]>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType]>, z.ZodRecord, z.ZodArray]>, ZodRspackCrossChecker]>>]>, z.ZodFunction, z.ZodFunction>, z.ZodOptional, z.ZodArray]>, ZodRspackCrossChecker]>>, z.ZodOptional>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction], z.ZodUnknown>, z.ZodPromise, z.ZodArray]>, ZodRspackCrossChecker]>>>]>, z.ZodFunction], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray]>, ZodRspackCrossChecker]>>]>]>>; + externals: z.ZodOptional]>, z.ZodRecord, z.ZodArray]>, ZodRspackCrossChecker]>>]>, z.ZodFunction, z.ZodFunction>, z.ZodOptional, z.ZodArray]>, ZodRspackCrossChecker]>>, z.ZodOptional>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction], z.ZodUnknown>, z.ZodPromise, z.ZodArray]>, ZodRspackCrossChecker]>>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType]>, z.ZodRecord, z.ZodArray]>, ZodRspackCrossChecker]>>]>, z.ZodFunction, z.ZodFunction>, z.ZodOptional, z.ZodArray]>, ZodRspackCrossChecker]>>, z.ZodOptional>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction], z.ZodUnknown>, z.ZodPromise, z.ZodArray]>, ZodRspackCrossChecker]>>>]>]>>; externalsType: z.ZodOptional>; externalsPresets: z.ZodOptional; @@ -6807,27 +6762,27 @@ export const rspackOptions: z.ZodObject<{ errorsSpace: z.ZodOptional; warningsSpace: z.ZodOptional; }, "strict", z.ZodTypeAny, { - modules?: boolean | undefined; - chunks?: boolean | undefined; - ids?: boolean | undefined; - runtime?: boolean | undefined; - hash?: boolean | undefined; all?: boolean | undefined; version?: boolean | undefined; + runtime?: boolean | undefined; publicPath?: boolean | undefined; preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined; assets?: boolean | undefined; - entrypoints?: boolean | "auto" | undefined; + chunks?: boolean | undefined; + modules?: boolean | undefined; + entrypoints?: boolean | "auto" | undefined; chunkGroups?: boolean | undefined; warnings?: boolean | undefined; warningsCount?: boolean | undefined; errors?: boolean | undefined; errorsCount?: boolean | undefined; colors?: boolean | undefined; + hash?: boolean | undefined; reasons?: boolean | undefined; outputPath?: boolean | undefined; chunkModules?: boolean | undefined; chunkRelations?: boolean | undefined; + ids?: boolean | undefined; timings?: boolean | undefined; builtAt?: boolean | undefined; moduleAssets?: boolean | undefined; @@ -6884,16 +6839,14 @@ export const rspackOptions: z.ZodObject<{ errorsSpace?: number | undefined; warningsSpace?: number | undefined; }, { - modules?: boolean | undefined; - chunks?: boolean | undefined; - ids?: boolean | undefined; - runtime?: boolean | undefined; - hash?: boolean | undefined; all?: boolean | undefined; version?: boolean | undefined; + runtime?: boolean | undefined; publicPath?: boolean | undefined; preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined; assets?: boolean | undefined; + chunks?: boolean | undefined; + modules?: boolean | undefined; entrypoints?: boolean | "auto" | undefined; chunkGroups?: boolean | undefined; warnings?: boolean | undefined; @@ -6901,10 +6854,12 @@ export const rspackOptions: z.ZodObject<{ errors?: boolean | undefined; errorsCount?: boolean | undefined; colors?: boolean | undefined; + hash?: boolean | undefined; reasons?: boolean | undefined; outputPath?: boolean | undefined; chunkModules?: boolean | undefined; chunkRelations?: boolean | undefined; + ids?: boolean | undefined; timings?: boolean | undefined; builtAt?: boolean | undefined; moduleAssets?: boolean | undefined; @@ -6997,15 +6952,15 @@ export const rspackOptions: z.ZodObject<{ test: z.ZodOptional]>, z.ZodFunction], z.ZodUnknown>, z.ZodUnknown>]>>; priority: z.ZodOptional; enforce: z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + filename: z.ZodOptional; reuseExistingChunk: z.ZodOptional; type: z.ZodOptional]>>; idHint: z.ZodOptional; }, "strict", z.ZodTypeAny, { + name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; type?: string | RegExp | undefined; + filename?: string | undefined; chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; - name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; maxSize?: number | Record | undefined; @@ -7022,10 +6977,10 @@ export const rspackOptions: z.ZodObject<{ reuseExistingChunk?: boolean | undefined; idHint?: string | undefined; }, { + name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; type?: string | RegExp | undefined; + filename?: string | undefined; chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; - name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; maxSize?: number | Record | undefined; @@ -7066,15 +7021,15 @@ export const rspackOptions: z.ZodObject<{ }>>; hidePathInfo: z.ZodOptional; }, "strict", z.ZodTypeAny, { - chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; + chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; cacheGroups?: Record unknown) | undefined; type?: string | RegExp | undefined; + filename?: string | undefined; chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; - name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; maxSize?: number | Record | undefined; @@ -7109,15 +7064,15 @@ export const rspackOptions: z.ZodObject<{ maxInitialRequests?: number | undefined; automaticNameDelimiter?: string | undefined; }, { - chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; + chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; cacheGroups?: Record unknown) | undefined; type?: string | RegExp | undefined; + filename?: string | undefined; chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; - name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; maxSize?: number | Record | undefined; @@ -7180,26 +7135,19 @@ export const rspackOptions: z.ZodObject<{ mangleExports: z.ZodOptional, z.ZodBoolean]>>; nodeEnv: z.ZodOptional]>>; emitOnErrors: z.ZodOptional; - avoidEntryIife: z.ZodOptional; }, "strict", z.ZodTypeAny, { usedExports?: boolean | "global" | undefined; providedExports?: boolean | undefined; - sideEffects?: boolean | "flag" | undefined; - moduleIds?: "named" | "natural" | "deterministic" | undefined; - chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined; - minimize?: boolean | undefined; - minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; - mergeDuplicateChunks?: boolean | undefined; splitChunks?: false | { - chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; + chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; cacheGroups?: Record unknown) | undefined; type?: string | RegExp | undefined; + filename?: string | undefined; chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; - name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; maxSize?: number | Record | undefined; @@ -7234,39 +7182,38 @@ export const rspackOptions: z.ZodObject<{ maxInitialRequests?: number | undefined; automaticNameDelimiter?: string | undefined; } | undefined; + moduleIds?: "named" | "natural" | "deterministic" | undefined; + chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined; + removeAvailableModules?: boolean | undefined; + minimize?: boolean | undefined; + minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; + mergeDuplicateChunks?: boolean | undefined; runtimeChunk?: boolean | "single" | "multiple" | { name?: string | ((args_0: { name: string; }, ...args: unknown[]) => string) | undefined; } | undefined; - removeAvailableModules?: boolean | undefined; removeEmptyChunks?: boolean | undefined; realContentHash?: boolean | undefined; + sideEffects?: boolean | "flag" | undefined; concatenateModules?: boolean | undefined; innerGraph?: boolean | undefined; - mangleExports?: boolean | "size" | "deterministic" | undefined; + mangleExports?: boolean | "deterministic" | "size" | undefined; nodeEnv?: string | false | undefined; emitOnErrors?: boolean | undefined; - avoidEntryIife?: boolean | undefined; }, { usedExports?: boolean | "global" | undefined; providedExports?: boolean | undefined; - sideEffects?: boolean | "flag" | undefined; - moduleIds?: "named" | "natural" | "deterministic" | undefined; - chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined; - minimize?: boolean | undefined; - minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; - mergeDuplicateChunks?: boolean | undefined; splitChunks?: false | { - chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; + chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; cacheGroups?: Record unknown) | undefined; type?: string | RegExp | undefined; + filename?: string | undefined; chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; - name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; maxSize?: number | Record | undefined; @@ -7301,20 +7248,25 @@ export const rspackOptions: z.ZodObject<{ maxInitialRequests?: number | undefined; automaticNameDelimiter?: string | undefined; } | undefined; + moduleIds?: "named" | "natural" | "deterministic" | undefined; + chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined; + removeAvailableModules?: boolean | undefined; + minimize?: boolean | undefined; + minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; + mergeDuplicateChunks?: boolean | undefined; runtimeChunk?: boolean | "single" | "multiple" | { name?: string | ((args_0: { name: string; }, ...args: unknown[]) => string) | undefined; } | undefined; - removeAvailableModules?: boolean | undefined; removeEmptyChunks?: boolean | undefined; realContentHash?: boolean | undefined; + sideEffects?: boolean | "flag" | undefined; concatenateModules?: boolean | undefined; innerGraph?: boolean | undefined; - mangleExports?: boolean | "size" | "deterministic" | undefined; + mangleExports?: boolean | "deterministic" | "size" | undefined; nodeEnv?: string | false | undefined; emitOnErrors?: boolean | undefined; - avoidEntryIife?: boolean | undefined; }>>; resolve: z.ZodOptional>; resolveLoader: z.ZodOptional>; @@ -7816,14 +7768,14 @@ export const rspackOptions: z.ZodObject<{ }, { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - }>, z.ZodFunction, z.ZodTypeDef, Buffer>, z.ZodObject<{ + }>, z.ZodFunction; }, "strict", z.ZodTypeAny, { - module: Module; + content: string; filename: string; }, { - module: Module; + content: string; filename: string; }>], z.ZodUnknown>, z.ZodString>]>>; }, { @@ -7836,8 +7788,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; emit?: boolean | undefined; @@ -7847,8 +7799,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; emit?: boolean | undefined; @@ -7863,30 +7815,30 @@ export const rspackOptions: z.ZodObject<{ }, { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - }>, z.ZodFunction, z.ZodTypeDef, Buffer>, z.ZodObject<{ + }>, z.ZodFunction; }, "strict", z.ZodTypeAny, { - module: Module; + content: string; filename: string; }, { - module: Module; + content: string; filename: string; }>], z.ZodUnknown>, z.ZodString>]>>; }, "strict", z.ZodTypeAny, { dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; }, { dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; }>>; @@ -7956,8 +7908,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; emit?: boolean | undefined; @@ -7978,8 +7930,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; } | undefined; @@ -7999,8 +7951,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; emit?: boolean | undefined; @@ -8021,8 +7973,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; } | undefined; @@ -8147,8 +8099,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; emit?: boolean | undefined; @@ -8169,8 +8121,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; } | undefined; @@ -8295,8 +8247,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; emit?: boolean | undefined; @@ -8317,8 +8269,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; } | undefined; @@ -8350,9 +8302,6 @@ export const rspackOptions: z.ZodObject<{ maxEntrypointSize?: number | undefined; }>, z.ZodLiteral]>>; }, "strict", z.ZodTypeAny, { - dependencies?: string[] | undefined; - context?: string | undefined; - name?: string | undefined; module?: { defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined; rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined; @@ -8467,8 +8416,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; emit?: boolean | undefined; @@ -8489,8 +8438,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; } | undefined; @@ -8502,6 +8451,7 @@ export const rspackOptions: z.ZodObject<{ } | undefined; noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined; } | undefined; + name?: string | undefined; profile?: boolean | undefined; cache?: boolean | undefined; amd?: false | Record | undefined; @@ -8510,12 +8460,8 @@ export const rspackOptions: z.ZodObject<{ __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined; __filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined; } | undefined; - performance?: false | { - maxAssetSize?: number | undefined; - assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined; - hints?: false | "error" | "warning" | undefined; - maxEntrypointSize?: number | undefined; - } | undefined; + devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined; + context?: string | undefined; mode?: "development" | "production" | "none" | undefined; experiments?: { css?: boolean | undefined; @@ -8523,6 +8469,10 @@ export const rspackOptions: z.ZodObject<{ type: "memory"; } | { type: "persistent"; + storage: { + type: "filesystem"; + directory?: string | undefined; + }; version?: string | undefined; snapshot?: { immutablePaths?: (string | RegExp)[] | undefined; @@ -8530,32 +8480,7 @@ export const rspackOptions: z.ZodObject<{ managedPaths?: (string | RegExp)[] | undefined; } | undefined; buildDependencies?: string[] | undefined; - storage?: { - type: "filesystem"; - directory?: string | undefined; - } | undefined; - } | undefined; - lazyCompilation?: boolean | { - entries?: boolean | undefined; - test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined; - imports?: boolean | undefined; - backend?: { - client?: string | undefined; - listen?: number | { - path?: string | undefined; - port?: number | undefined; - host?: string | undefined; - backlog?: number | undefined; - exclusive?: boolean | undefined; - readableAll?: boolean | undefined; - writableAll?: boolean | undefined; - ipv6Only?: boolean | undefined; - } | undefined; - protocol?: "http" | "https" | undefined; - } | undefined; } | undefined; - asyncWebAssembly?: boolean | undefined; - outputModule?: boolean | undefined; topLevelAwait?: boolean | undefined; layers?: boolean | undefined; incremental?: boolean | { @@ -8563,7 +8488,6 @@ export const rspackOptions: z.ZodObject<{ make?: boolean | undefined; inferAsyncModules?: boolean | undefined; dependenciesDiagnostics?: boolean | undefined; - sideEffects?: boolean | undefined; buildChunkGraph?: boolean | undefined; moduleIds?: boolean | undefined; chunkIds?: boolean | undefined; @@ -8575,7 +8499,6 @@ export const rspackOptions: z.ZodObject<{ chunksRender?: boolean | undefined; emitAssets?: boolean | undefined; } | undefined; - futureDefaults?: boolean | undefined; rspackFuture?: { bundlerInfo?: { version?: string | undefined; @@ -8583,186 +8506,49 @@ export const rspackOptions: z.ZodObject<{ bundler?: string | undefined; } | undefined; } | undefined; + asyncWebAssembly?: boolean | undefined; + outputModule?: boolean | undefined; + futureDefaults?: boolean | undefined; + lazyCompilation?: boolean | { + entries?: boolean | undefined; + test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined; + imports?: boolean | undefined; + backend?: { + client?: string | undefined; + listen?: number | { + path?: string | undefined; + port?: number | undefined; + host?: string | undefined; + backlog?: number | undefined; + exclusive?: boolean | undefined; + readableAll?: boolean | undefined; + writableAll?: boolean | undefined; + ipv6Only?: boolean | undefined; + } | undefined; + protocol?: "http" | "https" | undefined; + } | undefined; + } | undefined; } | undefined; - devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined; - resolve?: t.ResolveOptions | undefined; - stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | { - modules?: boolean | undefined; - chunks?: boolean | undefined; - ids?: boolean | undefined; - runtime?: boolean | undefined; - hash?: boolean | undefined; - all?: boolean | undefined; - version?: boolean | undefined; - publicPath?: boolean | undefined; - preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined; - assets?: boolean | undefined; - entrypoints?: boolean | "auto" | undefined; - chunkGroups?: boolean | undefined; - warnings?: boolean | undefined; - warningsCount?: boolean | undefined; - errors?: boolean | undefined; - errorsCount?: boolean | undefined; - colors?: boolean | undefined; - reasons?: boolean | undefined; - outputPath?: boolean | undefined; - chunkModules?: boolean | undefined; - chunkRelations?: boolean | undefined; - timings?: boolean | undefined; - builtAt?: boolean | undefined; - moduleAssets?: boolean | undefined; - nestedModules?: boolean | undefined; - source?: boolean | undefined; - logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined; - loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined; - loggingTrace?: boolean | undefined; - runtimeModules?: boolean | undefined; - children?: boolean | undefined; - usedExports?: boolean | undefined; - providedExports?: boolean | undefined; - optimizationBailout?: boolean | undefined; - groupModulesByType?: boolean | undefined; - groupModulesByCacheStatus?: boolean | undefined; - groupModulesByLayer?: boolean | undefined; - groupModulesByAttributes?: boolean | undefined; - groupModulesByPath?: boolean | undefined; - groupModulesByExtension?: boolean | undefined; - modulesSpace?: number | undefined; - chunkModulesSpace?: number | undefined; - nestedModulesSpace?: number | undefined; - relatedAssets?: boolean | undefined; - groupAssetsByEmitStatus?: boolean | undefined; - groupAssetsByInfo?: boolean | undefined; - groupAssetsByPath?: boolean | undefined; - groupAssetsByExtension?: boolean | undefined; - groupAssetsByChunk?: boolean | undefined; - assetsSpace?: number | undefined; - orphanModules?: boolean | undefined; - excludeModules?: string | boolean | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean))[] | undefined; - excludeAssets?: string | RegExp | ((args_0: string, args_1: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any) => boolean))[] | undefined; - modulesSort?: string | undefined; - chunkModulesSort?: string | undefined; - nestedModulesSort?: string | undefined; - chunksSort?: string | undefined; - assetsSort?: string | undefined; - performance?: boolean | undefined; - env?: boolean | undefined; - chunkGroupAuxiliary?: boolean | undefined; - chunkGroupChildren?: boolean | undefined; - chunkGroupMaxAssets?: number | undefined; - dependentModules?: boolean | undefined; - chunkOrigins?: boolean | undefined; - depth?: boolean | undefined; - reasonsSpace?: number | undefined; - groupReasonsByOrigin?: boolean | undefined; - errorDetails?: boolean | undefined; - errorStack?: boolean | undefined; - moduleTrace?: boolean | undefined; - cachedModules?: boolean | undefined; - cachedAssets?: boolean | undefined; - cached?: boolean | undefined; - errorsSpace?: number | undefined; - warningsSpace?: number | undefined; + performance?: false | { + maxAssetSize?: number | undefined; + assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined; + hints?: false | "error" | "warning" | undefined; + maxEntrypointSize?: number | undefined; } | undefined; - loader?: Record | undefined; - externals?: string | RegExp | Record | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined; target?: false | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined; - entry?: string | string[] | Record string) | undefined; - baseUri?: string | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - library?: { - type: string; - name?: string | string[] | { - commonjs?: string | undefined; - amd?: string | undefined; - root?: string | string[] | undefined; - } | undefined; - amdContainer?: string | undefined; - auxiliaryComment?: string | { - commonjs?: string | undefined; - commonjs2?: string | undefined; - amd?: string | undefined; - root?: string | undefined; - } | undefined; - export?: string | string[] | undefined; - umdNamedDefine?: boolean | undefined; - } | undefined; - wasmLoading?: string | false | undefined; - dependOn?: string | string[] | undefined; - }> | ((...args: unknown[]) => string | string[] | Record string) | undefined; - baseUri?: string | undefined; filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - library?: { - type: string; - name?: string | string[] | { - commonjs?: string | undefined; - amd?: string | undefined; - root?: string | string[] | undefined; - } | undefined; - amdContainer?: string | undefined; - auxiliaryComment?: string | { - commonjs?: string | undefined; - commonjs2?: string | undefined; - amd?: string | undefined; - root?: string | undefined; - } | undefined; - export?: string | string[] | undefined; - umdNamedDefine?: boolean | undefined; - } | undefined; - wasmLoading?: string | false | undefined; - dependOn?: string | string[] | undefined; - }> | Promise string) | undefined; - baseUri?: string | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - library?: { - type: string; - name?: string | string[] | { - commonjs?: string | undefined; - amd?: string | undefined; - root?: string | string[] | undefined; - } | undefined; - amdContainer?: string | undefined; - auxiliaryComment?: string | { - commonjs?: string | undefined; - commonjs2?: string | undefined; - amd?: string | undefined; - root?: string | undefined; - } | undefined; - export?: string | string[] | undefined; - umdNamedDefine?: boolean | undefined; - } | undefined; - wasmLoading?: string | false | undefined; - dependOn?: string | string[] | undefined; - }>>) | undefined; - output?: { - module?: boolean | undefined; - chunkLoading?: string | false | undefined; - asyncChunks?: boolean | undefined; - publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - library?: string | string[] | { - commonjs?: string | undefined; - amd?: string | undefined; - root?: string | string[] | undefined; - } | { + library?: string | string[] | { + commonjs?: string | undefined; + amd?: string | undefined; + root?: string | string[] | undefined; + } | { type: string; name?: string | string[] | { commonjs?: string | undefined; @@ -8788,20 +8574,35 @@ export const rspackOptions: z.ZodObject<{ root?: string | undefined; } | undefined; umdNamedDefine?: boolean | undefined; - path?: string | undefined; + crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; + environment?: { + module?: boolean | undefined; + document?: boolean | undefined; + nodePrefixForCoreModules?: boolean | undefined; + globalThis?: boolean | undefined; + bigIntLiteral?: boolean | undefined; + const?: boolean | undefined; + arrowFunction?: boolean | undefined; + forOf?: boolean | undefined; + destructuring?: boolean | undefined; + dynamicImport?: boolean | undefined; + dynamicImportInWorker?: boolean | undefined; + optionalChaining?: boolean | undefined; + templateLiteral?: boolean | undefined; + asyncFunction?: boolean | undefined; + } | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + uniqueName?: string | undefined; pathinfo?: boolean | "verbose" | undefined; clean?: boolean | { keep?: string | undefined; } | undefined; - chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; hotUpdateMainFilename?: string | undefined; hotUpdateChunkFilename?: string | undefined; hotUpdateGlobal?: string | undefined; assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - uniqueName?: string | undefined; chunkLoadingGlobal?: string | undefined; enabledLibraryTypes?: string[] | undefined; strictModuleErrorHandling?: boolean | undefined; @@ -8829,22 +8630,6 @@ export const rspackOptions: z.ZodObject<{ devtoolNamespace?: string | undefined; devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; - environment?: { - module?: boolean | undefined; - document?: boolean | undefined; - nodePrefixForCoreModules?: boolean | undefined; - globalThis?: boolean | undefined; - bigIntLiteral?: boolean | undefined; - const?: boolean | undefined; - arrowFunction?: boolean | undefined; - forOf?: boolean | undefined; - destructuring?: boolean | undefined; - dynamicImport?: boolean | undefined; - dynamicImportInWorker?: boolean | undefined; - optionalChaining?: boolean | undefined; - templateLiteral?: boolean | undefined; - asyncFunction?: boolean | undefined; - } | undefined; charset?: boolean | undefined; chunkLoadTimeout?: number | undefined; compareBeforeEmit?: boolean | undefined; @@ -8852,46 +8637,19 @@ export const rspackOptions: z.ZodObject<{ libraryTarget?: string | undefined; strictModuleExceptionHandling?: boolean | undefined; } | undefined; - resolveLoader?: t.ResolveOptions | undefined; - externalsType?: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined; - externalsPresets?: { - web?: boolean | undefined; - node?: boolean | undefined; - nwjs?: boolean | undefined; - electron?: boolean | undefined; - electronMain?: boolean | undefined; - electronPreload?: boolean | undefined; - electronRenderer?: boolean | undefined; - webAsync?: boolean | undefined; - } | undefined; - infrastructureLogging?: { - debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined; - colors?: boolean | undefined; - stream?: NodeJS.WritableStream | undefined; - appendOnly?: boolean | undefined; - console?: Console | undefined; - level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined; - } | undefined; - snapshot?: {} | undefined; optimization?: { usedExports?: boolean | "global" | undefined; providedExports?: boolean | undefined; - sideEffects?: boolean | "flag" | undefined; - moduleIds?: "named" | "natural" | "deterministic" | undefined; - chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined; - minimize?: boolean | undefined; - minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; - mergeDuplicateChunks?: boolean | undefined; splitChunks?: false | { - chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; + chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; cacheGroups?: Record unknown) | undefined; type?: string | RegExp | undefined; + filename?: string | undefined; chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; - name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; usedExports?: boolean | undefined; defaultSizeTypes?: string[] | undefined; maxSize?: number | Record | undefined; @@ -8926,20 +8684,212 @@ export const rspackOptions: z.ZodObject<{ maxInitialRequests?: number | undefined; automaticNameDelimiter?: string | undefined; } | undefined; + moduleIds?: "named" | "natural" | "deterministic" | undefined; + chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined; + removeAvailableModules?: boolean | undefined; + minimize?: boolean | undefined; + minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; + mergeDuplicateChunks?: boolean | undefined; runtimeChunk?: boolean | "single" | "multiple" | { name?: string | ((args_0: { name: string; }, ...args: unknown[]) => string) | undefined; } | undefined; - removeAvailableModules?: boolean | undefined; removeEmptyChunks?: boolean | undefined; realContentHash?: boolean | undefined; + sideEffects?: boolean | "flag" | undefined; concatenateModules?: boolean | undefined; innerGraph?: boolean | undefined; - mangleExports?: boolean | "size" | "deterministic" | undefined; + mangleExports?: boolean | "deterministic" | "size" | undefined; nodeEnv?: string | false | undefined; emitOnErrors?: boolean | undefined; - avoidEntryIife?: boolean | undefined; + } | undefined; + snapshot?: {} | undefined; + stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | { + all?: boolean | undefined; + version?: boolean | undefined; + runtime?: boolean | undefined; + publicPath?: boolean | undefined; + preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined; + assets?: boolean | undefined; + chunks?: boolean | undefined; + modules?: boolean | undefined; + entrypoints?: boolean | "auto" | undefined; + chunkGroups?: boolean | undefined; + warnings?: boolean | undefined; + warningsCount?: boolean | undefined; + errors?: boolean | undefined; + errorsCount?: boolean | undefined; + colors?: boolean | undefined; + hash?: boolean | undefined; + reasons?: boolean | undefined; + outputPath?: boolean | undefined; + chunkModules?: boolean | undefined; + chunkRelations?: boolean | undefined; + ids?: boolean | undefined; + timings?: boolean | undefined; + builtAt?: boolean | undefined; + moduleAssets?: boolean | undefined; + nestedModules?: boolean | undefined; + source?: boolean | undefined; + logging?: boolean | "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined; + loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined; + loggingTrace?: boolean | undefined; + runtimeModules?: boolean | undefined; + children?: boolean | undefined; + usedExports?: boolean | undefined; + providedExports?: boolean | undefined; + optimizationBailout?: boolean | undefined; + groupModulesByType?: boolean | undefined; + groupModulesByCacheStatus?: boolean | undefined; + groupModulesByLayer?: boolean | undefined; + groupModulesByAttributes?: boolean | undefined; + groupModulesByPath?: boolean | undefined; + groupModulesByExtension?: boolean | undefined; + modulesSpace?: number | undefined; + chunkModulesSpace?: number | undefined; + nestedModulesSpace?: number | undefined; + relatedAssets?: boolean | undefined; + groupAssetsByEmitStatus?: boolean | undefined; + groupAssetsByInfo?: boolean | undefined; + groupAssetsByPath?: boolean | undefined; + groupAssetsByExtension?: boolean | undefined; + groupAssetsByChunk?: boolean | undefined; + assetsSpace?: number | undefined; + orphanModules?: boolean | undefined; + excludeModules?: string | boolean | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean))[] | undefined; + excludeAssets?: string | RegExp | ((args_0: string, args_1: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any) => boolean))[] | undefined; + modulesSort?: string | undefined; + chunkModulesSort?: string | undefined; + nestedModulesSort?: string | undefined; + chunksSort?: string | undefined; + assetsSort?: string | undefined; + performance?: boolean | undefined; + env?: boolean | undefined; + chunkGroupAuxiliary?: boolean | undefined; + chunkGroupChildren?: boolean | undefined; + chunkGroupMaxAssets?: number | undefined; + dependentModules?: boolean | undefined; + chunkOrigins?: boolean | undefined; + depth?: boolean | undefined; + reasonsSpace?: number | undefined; + groupReasonsByOrigin?: boolean | undefined; + errorDetails?: boolean | undefined; + errorStack?: boolean | undefined; + moduleTrace?: boolean | undefined; + cachedModules?: boolean | undefined; + cachedAssets?: boolean | undefined; + cached?: boolean | undefined; + errorsSpace?: number | undefined; + warningsSpace?: number | undefined; + } | undefined; + loader?: Record | undefined; + externals?: string | RegExp | Record | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise) | (string | RegExp | Record | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise))[] | undefined; + entry?: string | string[] | Record string) | undefined; + baseUri?: string | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + library?: { + type: string; + name?: string | string[] | { + commonjs?: string | undefined; + amd?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + commonjs?: string | undefined; + commonjs2?: string | undefined; + amd?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + layer?: string | null | undefined; + wasmLoading?: string | false | undefined; + dependOn?: string | string[] | undefined; + }> | ((...args: unknown[]) => string | string[] | Record string) | undefined; + baseUri?: string | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + library?: { + type: string; + name?: string | string[] | { + commonjs?: string | undefined; + amd?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + commonjs?: string | undefined; + commonjs2?: string | undefined; + amd?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + layer?: string | null | undefined; + wasmLoading?: string | false | undefined; + dependOn?: string | string[] | undefined; + }> | Promise string) | undefined; + baseUri?: string | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + library?: { + type: string; + name?: string | string[] | { + commonjs?: string | undefined; + amd?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + commonjs?: string | undefined; + commonjs2?: string | undefined; + amd?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + layer?: string | null | undefined; + wasmLoading?: string | false | undefined; + dependOn?: string | string[] | undefined; + }>>) | undefined; + dependencies?: string[] | undefined; + resolveLoader?: t.ResolveOptions | undefined; + externalsType?: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined; + externalsPresets?: { + web?: boolean | undefined; + node?: boolean | undefined; + nwjs?: boolean | undefined; + electron?: boolean | undefined; + electronMain?: boolean | undefined; + electronPreload?: boolean | undefined; + electronRenderer?: boolean | undefined; + webAsync?: boolean | undefined; + } | undefined; + infrastructureLogging?: { + debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined; + colors?: boolean | undefined; + stream?: NodeJS.WritableStream | undefined; + appendOnly?: boolean | undefined; + console?: Console | undefined; + level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined; } | undefined; plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; watch?: boolean | undefined; @@ -8954,9 +8904,6 @@ export const rspackOptions: z.ZodObject<{ ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined; bail?: boolean | undefined; }, { - dependencies?: string[] | undefined; - context?: string | undefined; - name?: string | undefined; module?: { defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined; rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined; @@ -9071,8 +9018,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; emit?: boolean | undefined; @@ -9093,8 +9040,8 @@ export const rspackOptions: z.ZodObject<{ dataUrl?: { encoding?: false | "base64" | undefined; mimetype?: string | undefined; - } | ((args_0: Buffer, args_1: { - module: Module; + } | ((args_0: { + content: string; filename: string; }, ...args: unknown[]) => string) | undefined; } | undefined; @@ -9106,6 +9053,7 @@ export const rspackOptions: z.ZodObject<{ } | undefined; noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined; } | undefined; + name?: string | undefined; profile?: boolean | undefined; cache?: boolean | undefined; amd?: false | Record | undefined; @@ -9114,12 +9062,8 @@ export const rspackOptions: z.ZodObject<{ __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined; __filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined; } | undefined; - performance?: false | { - maxAssetSize?: number | undefined; - assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined; - hints?: false | "error" | "warning" | undefined; - maxEntrypointSize?: number | undefined; - } | undefined; + devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined; + context?: string | undefined; mode?: "development" | "production" | "none" | undefined; experiments?: { css?: boolean | undefined; @@ -9127,6 +9071,10 @@ export const rspackOptions: z.ZodObject<{ type: "memory"; } | { type: "persistent"; + storage: { + type: "filesystem"; + directory?: string | undefined; + }; version?: string | undefined; snapshot?: { immutablePaths?: (string | RegExp)[] | undefined; @@ -9134,11 +9082,35 @@ export const rspackOptions: z.ZodObject<{ managedPaths?: (string | RegExp)[] | undefined; } | undefined; buildDependencies?: string[] | undefined; - storage?: { - type: "filesystem"; - directory?: string | undefined; + } | undefined; + topLevelAwait?: boolean | undefined; + layers?: boolean | undefined; + incremental?: boolean | { + providedExports?: boolean | undefined; + make?: boolean | undefined; + inferAsyncModules?: boolean | undefined; + dependenciesDiagnostics?: boolean | undefined; + buildChunkGraph?: boolean | undefined; + moduleIds?: boolean | undefined; + chunkIds?: boolean | undefined; + modulesHashes?: boolean | undefined; + modulesCodegen?: boolean | undefined; + modulesRuntimeRequirements?: boolean | undefined; + chunksRuntimeRequirements?: boolean | undefined; + chunksHashes?: boolean | undefined; + chunksRender?: boolean | undefined; + emitAssets?: boolean | undefined; + } | undefined; + rspackFuture?: { + bundlerInfo?: { + version?: string | undefined; + force?: boolean | ("version" | "uniqueId")[] | undefined; + bundler?: string | undefined; } | undefined; } | undefined; + asyncWebAssembly?: boolean | undefined; + outputModule?: boolean | undefined; + futureDefaults?: boolean | undefined; lazyCompilation?: boolean | { entries?: boolean | undefined; test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined; @@ -9158,49 +9130,192 @@ export const rspackOptions: z.ZodObject<{ protocol?: "http" | "https" | undefined; } | undefined; } | undefined; - asyncWebAssembly?: boolean | undefined; - outputModule?: boolean | undefined; - topLevelAwait?: boolean | undefined; - layers?: boolean | undefined; - incremental?: boolean | { - providedExports?: boolean | undefined; - make?: boolean | undefined; - inferAsyncModules?: boolean | undefined; - dependenciesDiagnostics?: boolean | undefined; - sideEffects?: boolean | undefined; - buildChunkGraph?: boolean | undefined; - moduleIds?: boolean | undefined; - chunkIds?: boolean | undefined; - modulesHashes?: boolean | undefined; - modulesCodegen?: boolean | undefined; - modulesRuntimeRequirements?: boolean | undefined; - chunksRuntimeRequirements?: boolean | undefined; - chunksHashes?: boolean | undefined; - chunksRender?: boolean | undefined; - emitAssets?: boolean | undefined; - } | undefined; - futureDefaults?: boolean | undefined; - rspackFuture?: { - bundlerInfo?: { - version?: string | undefined; - force?: boolean | ("version" | "uniqueId")[] | undefined; - bundler?: string | undefined; - } | undefined; + } | undefined; + performance?: false | { + maxAssetSize?: number | undefined; + assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined; + hints?: false | "error" | "warning" | undefined; + maxEntrypointSize?: number | undefined; + } | undefined; + target?: false | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined; + resolve?: t.ResolveOptions | undefined; + output?: { + module?: boolean | undefined; + path?: string | undefined; + chunkLoading?: string | false | undefined; + asyncChunks?: boolean | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + library?: string | string[] | { + commonjs?: string | undefined; + amd?: string | undefined; + root?: string | string[] | undefined; + } | { + type: string; + name?: string | string[] | { + commonjs?: string | undefined; + amd?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + commonjs?: string | undefined; + commonjs2?: string | undefined; + amd?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + wasmLoading?: string | false | undefined; + cssHeadDataCompression?: boolean | undefined; + auxiliaryComment?: string | { + commonjs?: string | undefined; + commonjs2?: string | undefined; + amd?: string | undefined; + root?: string | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; + environment?: { + module?: boolean | undefined; + document?: boolean | undefined; + nodePrefixForCoreModules?: boolean | undefined; + globalThis?: boolean | undefined; + bigIntLiteral?: boolean | undefined; + const?: boolean | undefined; + arrowFunction?: boolean | undefined; + forOf?: boolean | undefined; + destructuring?: boolean | undefined; + dynamicImport?: boolean | undefined; + dynamicImportInWorker?: boolean | undefined; + optionalChaining?: boolean | undefined; + templateLiteral?: boolean | undefined; + asyncFunction?: boolean | undefined; + } | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + uniqueName?: string | undefined; + pathinfo?: boolean | "verbose" | undefined; + clean?: boolean | { + keep?: string | undefined; + } | undefined; + cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + hotUpdateMainFilename?: string | undefined; + hotUpdateChunkFilename?: string | undefined; + hotUpdateGlobal?: string | undefined; + assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; + chunkLoadingGlobal?: string | undefined; + enabledLibraryTypes?: string[] | undefined; + strictModuleErrorHandling?: boolean | undefined; + globalObject?: string | undefined; + importFunctionName?: string | undefined; + importMetaName?: string | undefined; + iife?: boolean | undefined; + enabledWasmLoadingTypes?: string[] | undefined; + webassemblyModuleFilename?: string | undefined; + chunkFormat?: string | false | undefined; + enabledChunkLoadingTypes?: string[] | undefined; + trustedTypes?: string | true | { + policyName?: string | undefined; + onPolicyCreationFailure?: "continue" | "stop" | undefined; + } | undefined; + sourceMapFilename?: string | undefined; + hashDigest?: string | undefined; + hashDigestLength?: number | undefined; + hashFunction?: "md4" | "xxhash64" | undefined; + hashSalt?: string | undefined; + workerChunkLoading?: string | false | undefined; + workerWasmLoading?: string | false | undefined; + workerPublicPath?: string | undefined; + scriptType?: false | "module" | "text/javascript" | undefined; + devtoolNamespace?: string | undefined; + devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + charset?: boolean | undefined; + chunkLoadTimeout?: number | undefined; + compareBeforeEmit?: boolean | undefined; + libraryExport?: string | string[] | undefined; + libraryTarget?: string | undefined; + strictModuleExceptionHandling?: boolean | undefined; + } | undefined; + optimization?: { + usedExports?: boolean | "global" | undefined; + providedExports?: boolean | undefined; + splitChunks?: false | { + name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; + chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; + usedExports?: boolean | undefined; + defaultSizeTypes?: string[] | undefined; + cacheGroups?: Record unknown) | undefined; + type?: string | RegExp | undefined; + filename?: string | undefined; + chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; + usedExports?: boolean | undefined; + defaultSizeTypes?: string[] | undefined; + maxSize?: number | Record | undefined; + priority?: number | undefined; + minSize?: number | Record | undefined; + maxAsyncSize?: number | Record | undefined; + maxInitialSize?: number | Record | undefined; + minChunks?: number | undefined; + maxAsyncRequests?: number | undefined; + maxInitialRequests?: number | undefined; + automaticNameDelimiter?: string | undefined; + test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined; + enforce?: boolean | undefined; + reuseExistingChunk?: boolean | undefined; + idHint?: string | undefined; + }> | undefined; + maxSize?: number | Record | undefined; + fallbackCacheGroup?: { + chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; + maxSize?: number | undefined; + minSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + } | undefined; + minSize?: number | Record | undefined; + maxAsyncSize?: number | Record | undefined; + maxInitialSize?: number | Record | undefined; + hidePathInfo?: boolean | undefined; + minChunks?: number | undefined; + maxAsyncRequests?: number | undefined; + maxInitialRequests?: number | undefined; + automaticNameDelimiter?: string | undefined; + } | undefined; + moduleIds?: "named" | "natural" | "deterministic" | undefined; + chunkIds?: "named" | "natural" | "deterministic" | "size" | "total-size" | undefined; + removeAvailableModules?: boolean | undefined; + minimize?: boolean | undefined; + minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; + mergeDuplicateChunks?: boolean | undefined; + runtimeChunk?: boolean | "single" | "multiple" | { + name?: string | ((args_0: { + name: string; + }, ...args: unknown[]) => string) | undefined; } | undefined; + removeEmptyChunks?: boolean | undefined; + realContentHash?: boolean | undefined; + sideEffects?: boolean | "flag" | undefined; + concatenateModules?: boolean | undefined; + innerGraph?: boolean | undefined; + mangleExports?: boolean | "deterministic" | "size" | undefined; + nodeEnv?: string | false | undefined; + emitOnErrors?: boolean | undefined; } | undefined; - devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined; - resolve?: t.ResolveOptions | undefined; + snapshot?: {} | undefined; stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | { - modules?: boolean | undefined; - chunks?: boolean | undefined; - ids?: boolean | undefined; - runtime?: boolean | undefined; - hash?: boolean | undefined; all?: boolean | undefined; version?: boolean | undefined; + runtime?: boolean | undefined; publicPath?: boolean | undefined; preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined; assets?: boolean | undefined; + chunks?: boolean | undefined; + modules?: boolean | undefined; entrypoints?: boolean | "auto" | undefined; chunkGroups?: boolean | undefined; warnings?: boolean | undefined; @@ -9208,10 +9323,12 @@ export const rspackOptions: z.ZodObject<{ errors?: boolean | undefined; errorsCount?: boolean | undefined; colors?: boolean | undefined; + hash?: boolean | undefined; reasons?: boolean | undefined; outputPath?: boolean | undefined; chunkModules?: boolean | undefined; chunkRelations?: boolean | undefined; + ids?: boolean | undefined; timings?: boolean | undefined; builtAt?: boolean | undefined; moduleAssets?: boolean | undefined; @@ -9269,11 +9386,9 @@ export const rspackOptions: z.ZodObject<{ warningsSpace?: number | undefined; } | undefined; loader?: Record | undefined; - externals?: string | RegExp | Record | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined; - target?: false | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined; + externals?: string | RegExp | Record | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise) | (string | RegExp | Record | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise))[] | undefined; entry?: string | string[] | Record | ((...args: unknown[]) => string | string[] | Record | Promise>) | undefined; - output?: { - module?: boolean | undefined; - chunkLoading?: string | false | undefined; - asyncChunks?: boolean | undefined; - publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - library?: string | string[] | { - commonjs?: string | undefined; - amd?: string | undefined; - root?: string | string[] | undefined; - } | { - type: string; - name?: string | string[] | { - commonjs?: string | undefined; - amd?: string | undefined; - root?: string | string[] | undefined; - } | undefined; - amdContainer?: string | undefined; - auxiliaryComment?: string | { - commonjs?: string | undefined; - commonjs2?: string | undefined; - amd?: string | undefined; - root?: string | undefined; - } | undefined; - export?: string | string[] | undefined; - umdNamedDefine?: boolean | undefined; - } | undefined; - wasmLoading?: string | false | undefined; - cssHeadDataCompression?: boolean | undefined; - auxiliaryComment?: string | { - commonjs?: string | undefined; - commonjs2?: string | undefined; - amd?: string | undefined; - root?: string | undefined; - } | undefined; - umdNamedDefine?: boolean | undefined; - path?: string | undefined; - pathinfo?: boolean | "verbose" | undefined; - clean?: boolean | { - keep?: string | undefined; - } | undefined; - chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; - cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - hotUpdateMainFilename?: string | undefined; - hotUpdateChunkFilename?: string | undefined; - hotUpdateGlobal?: string | undefined; - assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - uniqueName?: string | undefined; - chunkLoadingGlobal?: string | undefined; - enabledLibraryTypes?: string[] | undefined; - strictModuleErrorHandling?: boolean | undefined; - globalObject?: string | undefined; - importFunctionName?: string | undefined; - importMetaName?: string | undefined; - iife?: boolean | undefined; - enabledWasmLoadingTypes?: string[] | undefined; - webassemblyModuleFilename?: string | undefined; - chunkFormat?: string | false | undefined; - enabledChunkLoadingTypes?: string[] | undefined; - trustedTypes?: string | true | { - policyName?: string | undefined; - onPolicyCreationFailure?: "continue" | "stop" | undefined; - } | undefined; - sourceMapFilename?: string | undefined; - hashDigest?: string | undefined; - hashDigestLength?: number | undefined; - hashFunction?: "md4" | "xxhash64" | undefined; - hashSalt?: string | undefined; - workerChunkLoading?: string | false | undefined; - workerWasmLoading?: string | false | undefined; - workerPublicPath?: string | undefined; - scriptType?: false | "module" | "text/javascript" | undefined; - devtoolNamespace?: string | undefined; - devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; - devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; - environment?: { - module?: boolean | undefined; - document?: boolean | undefined; - nodePrefixForCoreModules?: boolean | undefined; - globalThis?: boolean | undefined; - bigIntLiteral?: boolean | undefined; - const?: boolean | undefined; - arrowFunction?: boolean | undefined; - forOf?: boolean | undefined; - destructuring?: boolean | undefined; - dynamicImport?: boolean | undefined; - dynamicImportInWorker?: boolean | undefined; - optionalChaining?: boolean | undefined; - templateLiteral?: boolean | undefined; - asyncFunction?: boolean | undefined; - } | undefined; - charset?: boolean | undefined; - chunkLoadTimeout?: number | undefined; - compareBeforeEmit?: boolean | undefined; - libraryExport?: string | string[] | undefined; - libraryTarget?: string | undefined; - strictModuleExceptionHandling?: boolean | undefined; - } | undefined; + dependencies?: string[] | undefined; resolveLoader?: t.ResolveOptions | undefined; externalsType?: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined; externalsPresets?: { @@ -9476,75 +9493,6 @@ export const rspackOptions: z.ZodObject<{ console?: Console | undefined; level?: "error" | "warn" | "info" | "log" | "none" | "verbose" | undefined; } | undefined; - snapshot?: {} | undefined; - optimization?: { - usedExports?: boolean | "global" | undefined; - providedExports?: boolean | undefined; - sideEffects?: boolean | "flag" | undefined; - moduleIds?: "named" | "natural" | "deterministic" | undefined; - chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined; - minimize?: boolean | undefined; - minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; - mergeDuplicateChunks?: boolean | undefined; - splitChunks?: false | { - chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; - name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; - usedExports?: boolean | undefined; - defaultSizeTypes?: string[] | undefined; - cacheGroups?: Record boolean) | undefined; - name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined; - filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined; - usedExports?: boolean | undefined; - defaultSizeTypes?: string[] | undefined; - maxSize?: number | Record | undefined; - priority?: number | undefined; - minSize?: number | Record | undefined; - maxAsyncSize?: number | Record | undefined; - maxInitialSize?: number | Record | undefined; - minChunks?: number | undefined; - maxAsyncRequests?: number | undefined; - maxInitialRequests?: number | undefined; - automaticNameDelimiter?: string | undefined; - test?: string | RegExp | ((args_0: Module, ...args: unknown[]) => unknown) | undefined; - enforce?: boolean | undefined; - reuseExistingChunk?: boolean | undefined; - idHint?: string | undefined; - }> | undefined; - maxSize?: number | Record | undefined; - fallbackCacheGroup?: { - chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined; - maxSize?: number | undefined; - minSize?: number | undefined; - maxAsyncSize?: number | undefined; - maxInitialSize?: number | undefined; - automaticNameDelimiter?: string | undefined; - } | undefined; - minSize?: number | Record | undefined; - maxAsyncSize?: number | Record | undefined; - maxInitialSize?: number | Record | undefined; - hidePathInfo?: boolean | undefined; - minChunks?: number | undefined; - maxAsyncRequests?: number | undefined; - maxInitialRequests?: number | undefined; - automaticNameDelimiter?: string | undefined; - } | undefined; - runtimeChunk?: boolean | "single" | "multiple" | { - name?: string | ((args_0: { - name: string; - }, ...args: unknown[]) => string) | undefined; - } | undefined; - removeAvailableModules?: boolean | undefined; - removeEmptyChunks?: boolean | undefined; - realContentHash?: boolean | undefined; - concatenateModules?: boolean | undefined; - innerGraph?: boolean | undefined; - mangleExports?: boolean | "size" | "deterministic" | undefined; - nodeEnv?: string | false | undefined; - emitOnErrors?: boolean | undefined; - avoidEntryIife?: boolean | undefined; - } | undefined; plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined; watch?: boolean | undefined; watchOptions?: { @@ -9730,7 +9678,7 @@ const RuntimeChunkPlugin: { new (options: RawRuntimeChunkOptions): { name: BuiltinPluginName; _args: [options: RawRuntimeChunkOptions]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -10027,7 +9975,7 @@ export const SourceMapDevToolPlugin: { new (options: SourceMapDevToolPluginOptions): { name: BuiltinPluginName; _args: [options: SourceMapDevToolPluginOptions]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -10331,7 +10279,7 @@ export const SwcJsMinimizerRspackPlugin: { new (options?: SwcJsMinimizerRspackPluginOptions | undefined): { name: BuiltinPluginName; _args: [options?: SwcJsMinimizerRspackPluginOptions | undefined]; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; }; @@ -10489,7 +10437,6 @@ declare namespace t { CssAutoParserOptions, CssModuleParserOptions, JavascriptParserOptions, - JsonParserOptions, ParserOptionsByModuleTypeKnown, ParserOptionsByModuleTypeUnknown, ParserOptionsByModuleType, @@ -10497,7 +10444,6 @@ declare namespace t { AssetGeneratorDataUrlFunction, AssetGeneratorDataUrl, AssetInlineGeneratorOptions, - AssetModuleOutputPath, AssetResourceGeneratorOptions, AssetGeneratorOptions, CssGeneratorExportsConvention, @@ -11061,7 +11007,7 @@ export const WarnCaseSensitiveModulesPlugin: { new (): { name: BuiltinPluginName; _args: []; - affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | 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" | "additionalPass" | undefined; raw(compiler: Compiler_2): BuiltinPlugin; apply(compiler: Compiler_2): void; };