RoadmapShopEvents
Skip to main content

Home > @rushstack/heft > CompileSubstageHooks

CompileSubstageHooks class

Signature:

export declare class CompileSubstageHooks extends BuildSubstageHooksBase 

Extends: BuildSubstageHooksBase

Properties

PropertyModifiersTypeDescription
afterCompilereadonlyAsyncParallelHookThe afterCompile event is fired exactly once, after the "compile" stage completes its first operation. The "bundle" stage will not begin until all event handlers have resolved their promises. The behavior of this event is the same in watch mode and non-watch mode.
afterRecompilereadonlyAsyncParallelHookThe afterRecompile event is only used in watch mode. It fires whenever the compiler's outputs have been rebuilt. The initial compilation fires the afterCompile event only, and then all subsequent iterations fire the afterRecompile event only. Heft does not wait for the afterRecompile promises to resolve.