On this page

new MultiCompiler(compilers, options): MultiCompiler
Attributes
compilers:Compiler[] | Record<string, Compiler>

Creates an instance of MultiCompiler.

Attributes
compilers:Compiler[]
dependencies:WeakMap<Compiler, string[]>
hooks:Readonly<{ done: SyncHook<[MultiStats]>; infrastructureLog: MultiHook<SyncBailHook<[string, string, undefined | any[]], true | void>>; invalid: MultiHook<SyncHook<[null | string, number]>>; run: MultiHook<AsyncSeriesHook<[Compiler]>>; watchClose: SyncHook<[]>; watchRun: MultiHook<AsyncSeriesHook<[Compiler]>> }>
inputFileSystem:InputFileSystem
Sets input file system.
intermediateFileSystem:IntermediateFileSystem
Sets intermediate file system.
outputFileSystem:OutputFileSystem
Sets output file system.
outputPath:string
running:boolean
watchFileSystem:WatchFileSystem
Sets watch file system.
close(callback): void
Attributes
callback:(err: Error | null, result?: void) => void
Returns:void

Processes the provided error callback.


getInfrastructureLogger(name): WebpackLogger
Attributes
name:string | (() => string)

Gets infrastructure logger.


purgeInputFileSystem(): void
Returns:void

run(callback): void
Attributes

Processes the provided multi stat.


runWithDependencies(compilers, fn, callback): void
Stability: 0Deprecated: This method should have been private
Attributes
compilers:Compiler[]
fn:(compiler: Compiler, callback: CallbackWebpackFunction_2<MultiStats, void>) => void
Returns:void

Run with dependencies.


setDependencies(compiler, dependencies): void
Attributes
compiler:Compiler
dependencies:string[]
Returns:void

Updates dependencies using the provided compiler.


validateDependencies(callback): boolean
Attributes

Validate dependencies.


watch(watchOptions, handler): MultiWatching | undefined
Attributes

Returns a compiler watcher.