new Compiler(context, options?): Compiler
Attributes
Creates an instance of Compiler.
Attributes
cache:
CachecompilerPath:
stringcontext:
stringcontextTimestamps:
Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>fileTimestamps:
Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>fsStartTime:
numberidle:
booleaninfrastructureLogger:
(value: string, type: LogTypeEnum, args?: any[]) => voidinputFileSystem:
InputFileSystem | nullintermediateFileSystem:
IntermediateFileSystem | nullmodifiedFiles:
ReadonlySet<string>moduleMemCaches:
Map<Module, ModuleMemCachesItem>name:
stringoptions:
WebpackOptionsNormalizedoutputFileSystem:
OutputFileSystem | nulloutputPath:
stringparentCompilation:
Compilationplatform:
Readonly<PlatformTargetProperties>records:
RecordsremovedFiles:
ReadonlySet<string>requestShortener:
RequestShortenerresolverFactory:
ResolverFactoryroot:
Compilerrunning:
booleanwatchFileSystem:
WatchFileSystem | nullwatching:
WatchingwatchMode:
booleanwebpack:
typeof export=close(callback): void
Attributes
Processes the provided error callback.
compile(callback): void
Attributes
callback:
CallbackWebpackFunction_2<Compilation, void>signals when the compilation finishes
Returns:
voidProcesses the provided compilation.
createChildCompiler(compilation, compilerName, compilerIndex, outputOptions?, plugins?): Compiler
Attributes
compilation:
Compilationthe compilation
compilerName:
stringthe compiler's name
compilerIndex:
numberthe compiler's index
outputOptions:
Partial<OutputNormalized>the output options
plugins:
(false | "" | 0 | WebpackPluginInstance | ((this: Compiler, compiler: Compiler) => void) | null | undefined)[]the plugins to apply
Returns:
Compilera child compiler
Creates a child compiler.
createCompilation(params): Compilation
Attributes
params:
CompilationParamsthe compilation parameters
Returns:
Compilationcompilation
Creates a compilation.
createContextModuleFactory(): ContextModuleFactory
Returns:
ContextModuleFactorycreateNormalModuleFactory(): NormalModuleFactory
Returns:
NormalModuleFactoryemitAssets(compilation, callback): void
Attributes
Processes the provided compilation.
emitRecords(callback): void
Attributes
Processes the provided error callback.
getCache(name): CacheFacade
Attributes
name:
stringcache name
Returns:
CacheFacadethe cache facade instance
Returns the cache facade instance.
getInfrastructureLogger(name): WebpackLogger
Attributes
Returns:
WebpackLoggera logger with that name
Gets infrastructure logger.
isChild(): boolean
Returns:
booleanCompilation(params): Compilation
Attributes
params:
CompilationParamsthe compilation parameters
Returns:
Compilationthe created compilation
Returns the created compilation.
CompilationParams(): { contextModuleFactory: ContextModuleFactory; normalModuleFactory: NormalModuleFactory }
Returns:
{ contextModuleFactory: ContextModuleFactory; normalModuleFactory: NormalModuleFactory }purgeInputFileSystem(): void
Returns:
voidreadRecords(callback): void
Attributes
Processes the provided error callback.
M
run
run(callback): void
Attributes
callback:
CallbackWebpackFunction_2<Stats, void>signals when the call finishes
Returns:
voidProcesses the provided stat.
runAsChild(callback): void
Attributes
Processes the provided run as child callback.
validate(schema, value, options?, check?): void
Attributes
Schema validation function with optional pre-compiled check
watch(watchOptions, handler): Watching | undefined
Attributes
watchOptions:
WatchOptionsthe watcher's options
handler:
CallbackWebpackFunction_2<Stats, void>signals when the call finishes
Returns a compiler watcher.
additionalPass(): void
Returns:
voidafterCompile(compilation): void
Attributes
compilation:
CompilationReturns:
voidafterDone(stats): void
Attributes
afterEmit(compilation): void
Attributes
compilation:
CompilationReturns:
voidafterEnvironment(): void
Returns:
voidafterPlugins(compiler): void
Attributes
afterResolvers(compiler): void
Attributes
assetEmitted(string, assetEmittedInfo): void
Attributes
beforeCompile(compilationParams): void
Attributes
compilationParams:
CompilationParamsReturns:
voidbeforeRun(compiler): void
Attributes
compilation(compilation, compilationParams): void
Attributes
compile(compilationParams): void
Attributes
compilationParams:
CompilationParamsReturns:
voidcontextModuleFactory(contextModuleFactory): void
Attributes
contextModuleFactory:
ContextModuleFactoryReturns:
voidM
done
done(stats): void
Attributes
M
emit
emit(compilation): void
Attributes
compilation:
CompilationReturns:
voidemitRecords(): void
Returns:
voidentryOption(string, entryNormalized): boolean | void
Attributes
environment(): void
Returns:
voidfailed(error): void
Attributes
finishMake(compilation): void
Attributes
compilation:
CompilationReturns:
voidinfrastructureLog(string, string, arg2): true | void
Attributes
initialize(): void
Returns:
voidinvalid(arg0, number): void
Attributes
M
make
make(compilation): void
Attributes
compilation:
CompilationReturns:
voidnormalModuleFactory(normalModuleFactory): void
Attributes
normalModuleFactory:
NormalModuleFactoryReturns:
voidreadRecords(): void
Returns:
voidM
run
run(compiler): void
Attributes
shouldEmit(compilation): boolean | void
Attributes
compilation:
Compilationshutdown(): void
Returns:
voidthisCompilation(compilation, compilationParams): void
Attributes
validate(): void
Returns:
voidwatchClose(): void
Returns:
voidwatchRun(compiler): void
Attributes
Checks whether this object is sorted.
Attributes
Type:
"error" | "warn" | "info" | "log" | "debug" | "clear" | "profile" | "trace" | "group" | "groupCollapsed" | "groupEnd" | "profileEnd" | "time" | "status"Attributes