CompilerPlugin
CompilerPlugin extends PluginCommon<T, CompilerPluginRuntime>
new CompilerPlugin(options)
Parameter | Type | Optional |
---|---|---|
options | T | ❌ |
Properties
public name: any
public options: any
Methods
public activate(ctx): Promise<void>
Called when this plugin is activated
Parameter | Type | Optional |
---|---|---|
ctx | CompilerPluginRuntime | ❌ |
public deactivate(ctx): Promise<void>
Called when this plugin is deactivated
Parameter | Type | Optional |
---|---|---|
ctx | CompilerPluginRuntime | ❌ |
public onBuildEnd(): Promise<void>
Called when a build is ended
public onBuildStart(): Promise<void>
Called when a build is started
public resolve(args): Promise<MaybeFalsey<ResolveResult>>
Called when a resolve is requested to this plugin
Parameter | Type | Optional | Description |
---|---|---|---|
args | OnResolveArgs | ❌ | The arguments for the resolve |
public transform(params): Promise<MaybeFalsey<TransformedResult>>
Called when transformation is requested to this plugin
Parameter | Type | Optional | Description |
---|---|---|---|
params | PluginTransformParameters | ❌ | The parameters for the transformation |