Hierarchy

  • Compiler

Constructors

Properties

cache: Cache
compilerPath: string
context: string
contextTimestamps: ReadonlyMap<string, null | FileSystemInfoEntry | "ignore">
fileTimestamps: ReadonlyMap<string, null | FileSystemInfoEntry | "ignore">
fsStartTime: number
hooks: Readonly<{
    additionalPass: AsyncSeriesHook<[], UnsetAdditionalOptions>;
    afterCompile: AsyncSeriesHook<[Compilation], UnsetAdditionalOptions>;
    afterDone: SyncHook<[Stats], void, UnsetAdditionalOptions>;
    afterEmit: AsyncSeriesHook<[Compilation], UnsetAdditionalOptions>;
    afterEnvironment: SyncHook<[], void, UnsetAdditionalOptions>;
    afterPlugins: SyncHook<[Compiler], void, UnsetAdditionalOptions>;
    afterResolvers: SyncHook<[Compiler], void, UnsetAdditionalOptions>;
    assetEmitted: AsyncSeriesHook<[string, AssetEmittedInfo], UnsetAdditionalOptions>;
    beforeCompile: AsyncSeriesHook<[CompilationParams], UnsetAdditionalOptions>;
    beforeRun: AsyncSeriesHook<[Compiler], UnsetAdditionalOptions>;
    compilation: SyncHook<[Compilation, CompilationParams], void, UnsetAdditionalOptions>;
    compile: SyncHook<[CompilationParams], void, UnsetAdditionalOptions>;
    contextModuleFactory: SyncHook<[ContextModuleFactory], void, UnsetAdditionalOptions>;
    done: AsyncSeriesHook<[Stats], UnsetAdditionalOptions>;
    emit: AsyncSeriesHook<[Compilation], UnsetAdditionalOptions>;
    emitRecords: AsyncSeriesHook<[], UnsetAdditionalOptions>;
    entryOption: SyncBailHook<[string, EntryNormalized], boolean, UnsetAdditionalOptions>;
    environment: SyncHook<[], void, UnsetAdditionalOptions>;
    failed: SyncHook<[Error], void, UnsetAdditionalOptions>;
    finishMake: AsyncParallelHook<[Compilation], UnsetAdditionalOptions>;
    infrastructureLog: SyncBailHook<[string, string, any[]], true, UnsetAdditionalOptions>;
    initialize: SyncHook<[], void, UnsetAdditionalOptions>;
    invalid: SyncHook<[null | string, number], void, UnsetAdditionalOptions>;
    make: AsyncParallelHook<[Compilation], UnsetAdditionalOptions>;
    normalModuleFactory: SyncHook<[NormalModuleFactory], void, UnsetAdditionalOptions>;
    readRecords: AsyncSeriesHook<[], UnsetAdditionalOptions>;
    run: AsyncSeriesHook<[Compiler], UnsetAdditionalOptions>;
    shouldEmit: SyncBailHook<[Compilation], boolean, UnsetAdditionalOptions>;
    shutdown: AsyncSeriesHook<[], UnsetAdditionalOptions>;
    thisCompilation: SyncHook<[Compilation, CompilationParams], void, UnsetAdditionalOptions>;
    watchClose: SyncHook<[], void, UnsetAdditionalOptions>;
    watchRun: AsyncSeriesHook<[Compiler], UnsetAdditionalOptions>;
}>

Type declaration

idle: boolean
immutablePaths: Set<string | RegExp>
infrastructureLogger: any
inputFileSystem: InputFileSystem
intermediateFileSystem: IntermediateFileSystem
managedPaths: Set<string | RegExp>
modifiedFiles: ReadonlySet<string>
moduleMemCaches?: Map<Module, {
    buildInfo: object;
    memCache: WeakTupleMap<any, any>;
    references: WeakMap<Dependency, Module>;
}>

Type declaration

name?: string
outputFileSystem: OutputFileSystem
outputPath: string
parentCompilation?: Compilation
records: object
recordsInputPath: null | string
recordsOutputPath: null | string
removedFiles: ReadonlySet<string>
requestShortener: RequestShortener
resolverFactory: ResolverFactory
root: Compiler
running: boolean
watchFileSystem: WatchFileSystem
watchMode: boolean
watching: Watching
webpack: typeof exports

Methods

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns Compiler

  • Parameters

    • Optional params: any

    Returns Compilation

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • name: string

    Returns CacheFacade

  • Parameters

    • name: string | (() => string)

    Returns WebpackLogger

  • Returns boolean

  • Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • callback: ((err?, entries?, compilation?) => any)
        • (err?, entries?, compilation?): any
        • Parameters

          • Optional err: null | Error
          • Optional entries: Chunk[]
          • Optional compilation: Compilation

          Returns any

    Returns void

Generated using TypeDoc