Classcore/pluginv0.6.0
abstract class Plugin<
Opts extends PluginOptions = {},
TCore extends CoreBase = CoreBase
>
implements Initializeable, HmrAwareMember visibility
Filter class members by access level.
Plugin(host: CoreBase, spec?: PluginLifecycleSpec)Showing members with Protected visibility and higher.
Opts
Where this plugin may attach, checked only at compile time.
Opts extends PluginOptions = {}TCore
The Core each transport binds this.core to.
protected core: TCoreprotected readonly logger: LoggerRuns in StartupPhase.Configuration by default. Move it to a different phase with the PluginLifecycleSpec.
public async onHmr(_event: HmrUpdateEvent): Promise<void>