environmentCalled while preparing the compiler environment, right after initializing the plugins in the configuration file.
SyncHook<[]>afterEnvironmentCalled right after the environment hook, when the compiler environment setup is complete.
SyncHook<[]>entryOptionCalled after the entry configuration from Rspack options has been processed.
SyncBailHook<[string, EntryNormalized]>afterPluginsCalled after setting up initial set of internal plugins.
SyncHook<[Compiler]>Compiler: current compiler instanceafterResolversTriggered after resolver setup is complete.
SyncHook<[Compiler]>Compiler: current compiler instanceinitializeCalled when a compiler object is initialized.
SyncHook<[]>beforeRunAdds a hook right before running the compiler.
AsyncSeriesHook<[Compiler]>Compiler: current compiler instancerunCalled ad the beginning of a build execution.
AsyncSeriesHook<[Compiler]>Compiler: current compiler instancewatchRunExecutes a plugin during watch mode after a new compilation is triggered but before the compilation is actually started.
AsyncSeriesHook<[Compiler]>Compiler: current compiler instancebeforeCompileExecutes a plugin after compilation parameters are created.
AsyncSeriesHook<[]>compileCalled right after beforeCompile, before a new compilation is created.
SyncHook<[]>thisCompilationCalled while initializing the compilation, right before calling the compilation hook.
SyncHook<[Compilation]>Compilation: created compilation objectcompilationRuns a plugin after a compilation has been created.
SyncHook<[Compilation]>Compilation: created compilation objectmakeCalled before the make phase.
In the make phase, Rspack will build the module graph starting from the entry, and use the loader to handle each module.
AsyncParallelHook<[Compilation]>Compilation: current compilation objectafterCompileCalled after the make phase and before the seal phase.
In the seal phase, Rspack will create chunk graph from the module graph and then generate the assets.
AsyncSeriesHook<[Compilation]>Compilation: current compilation objectshouldEmitCalled before emitting assets. Should return a boolean telling whether to emit.
SyncBailHook<[Compilation]>Compilation: current compilation objectemitCalled right before emitting assets to output dir.
AsyncSeriesHook<[Compilation]>Compilation: current compilation objectafterEmitCalled after emitting assets to output directory.
AsyncSeriesHook<[Compilation]>Compilation: current compilation objectdoneCalled when the compilation has completed.
AsyncSeriesHook<Stats>Stats: generated stats objectafterDoneCalled after done hook.
SyncHook<Stats>Stats: generated stats objectfailedCalled if the compilation fails.
SyncHook<[Error]>watchCloseCalled when a watching compilation has stopped.
SyncHook<[]>shutdownCalled when the compiler is closing.
AsyncSeriesHook<[]>