CompilerPlugin
CompilerPlugin extends PluginCommon<T, CompilerPluginRuntime>
new CompilerPlugin(options)
Parameter | Type | Optional |
---|---|---|
options | T | ❌ |
Properties
public id: any
public loadedAt: any
public name: any
public options: any
public type: 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 transform(params): Promise<MaybeFalsey<TransformedResult>>
Called when transformation is requested to this plugin
Parameter | Type | Optional | Description |
---|---|---|---|
params | PluginTransformParameters | ❌ | The parameters for the transformation |