Interface: Plugin<A>
Defined in: plugin/index.ts:324
Extends
OutputPlugin.Partial<PluginHooks>
Type Parameters
A
A = any
Properties
api?
- Type:
optionalapi:A
Defined in: plugin/index.ts:326
augmentChunkHash?
- Type:
optionalaugmentChunkHash:ObjectHook<(this,chunk) =>string|void, { }>
Defined in: plugin/index.ts:184
Inherited from
FunctionPluginHooks.augmentChunkHash
banner?
- Type:
optionalbanner:ObjectHook<AddonHook, { }>
Inherited from
Plugin.banner
buildEnd?
- Type:
optionalbuildEnd:ObjectHook<(this, ...parameters) =>void|Promise<void>, {sequential?:boolean; }>
Defined in: plugin/index.ts:160
Inherited from
buildStart?
- Type:
optionalbuildStart:ObjectHook<(this, ...parameters) =>void|Promise<void>, {sequential?:boolean; }>
Defined in: plugin/index.ts:126
Inherited from
FunctionPluginHooks.buildStart
closeBundle?
- Type:
optionalcloseBundle:ObjectHook<(this, ...parameters) =>void|Promise<void>, {sequential?:boolean; }>
Defined in: plugin/index.ts:204
Inherited from
FunctionPluginHooks.closeBundle
closeWatcher?
- Type:
optionalcloseWatcher:ObjectHook<(this, ...parameters) =>void|Promise<void>, {sequential?:boolean; }>
Defined in: plugin/index.ts:213
Inherited from
FunctionPluginHooks.closeWatcher
footer?
- Type:
optionalfooter:ObjectHook<AddonHook, { }>
Inherited from
Plugin.footer
generateBundle?
- Type:
optionalgenerateBundle:ObjectHook<(this, ...parameters) =>void|Promise<void>, { }>
Defined in: plugin/index.ts:191
Inherited from
FunctionPluginHooks.generateBundle
intro?
- Type:
optionalintro:ObjectHook<AddonHook, { }>
Inherited from
Plugin.intro
load?
- Type:
optionalload:ObjectHook<(this, ...parameters) => MaybePromise<LoadResult> | Promise<MaybePromise<LoadResult>>, {filter?: TUnionWithTopLevelFilterExpressionArray<Pick<HookFilter, "id">> | undefined; }>
Defined in: plugin/index.ts:145
Inherited from
moduleParsed?
- Type:
optionalmoduleParsed:ObjectHook<(this, ...parameters) =>void|Promise<void>, {sequential?:boolean; }>
Defined in: plugin/index.ts:158
Inherited from
FunctionPluginHooks.moduleParsed
name
- Type: name:
string
Defined in: plugin/index.ts:319
Inherited from
OutputPlugin.name
onLog?
- Type:
optionalonLog:ObjectHook<(this,level,log) => boolean | NullValue, { }>
Defined in: plugin/index.ts:107
Inherited from
options?
- Type:
optionaloptions:ObjectHook<(this, ...parameters) => NullValue | InputOptions | Promise<NullValue | InputOptions>, { }>
Defined in: plugin/index.ts:113
Inherited from
outputOptions?
- Type:
optionaloutputOptions:ObjectHook<(this,options) => NullValue | OutputOptions, { }>
Defined in: plugin/index.ts:119
Inherited from
FunctionPluginHooks.outputOptions
outro?
- Type:
optionaloutro:ObjectHook<AddonHook, { }>
Inherited from
Plugin.outro
renderChunk?
- Type:
optionalrenderChunk:ObjectHook<(this, ...parameters) => string | NullValue | { code: string; map?: SourceMapInput | undefined; } | Promise<string | NullValue | { code: string; map?: SourceMapInput | undefined; }>, {filter?: TUnionWithTopLevelFilterExpressionArray<Pick<HookFilter, "code">> | undefined; }>
Defined in: plugin/index.ts:170
Inherited from
FunctionPluginHooks.renderChunk
renderError?
- Type:
optionalrenderError:ObjectHook<(this, ...parameters) =>void|Promise<void>, {sequential?:boolean; }>
Defined in: plugin/index.ts:189
Inherited from
FunctionPluginHooks.renderError
renderStart?
- Type:
optionalrenderStart:ObjectHook<(this, ...parameters) =>void|Promise<void>, {sequential?:boolean; }>
Defined in: plugin/index.ts:164
Inherited from
FunctionPluginHooks.renderStart
resolveDynamicImport?
- Type:
optionalresolveDynamicImport:ObjectHook<(this, ...parameters) => ResolveIdResult | Promise<ResolveIdResult>, { }>
Defined in: plugin/index.ts:139
Deprecated
This hook is only for rollup plugin compatibility. Please use resolveId instead.
Inherited from
FunctionPluginHooks.resolveDynamicImport
resolveId?
- Type:
optionalresolveId:ObjectHook<(this, ...parameters) => ResolveIdResult | Promise<ResolveIdResult>, {filter?: TUnionWithTopLevelFilterExpressionArray<{ id?: GeneralHookFilter<RegExp> | undefined; }> | undefined; }>
Defined in: plugin/index.ts:128
Inherited from
transform?
- Type:
optionaltransform:ObjectHook<(this, ...parameters) => TransformResult | Promise<TransformResult>, {filter?: TUnionWithTopLevelFilterExpressionArray<HookFilter> | undefined; }>
Defined in: plugin/index.ts:147
Inherited from
watchChange?
- Type:
optionalwatchChange:ObjectHook<(this, ...parameters) =>void|Promise<void>, {sequential?:boolean; }>
Defined in: plugin/index.ts:207
Inherited from
FunctionPluginHooks.watchChange
writeBundle?
- Type:
optionalwriteBundle:ObjectHook<(this, ...parameters) =>void|Promise<void>, {sequential?:boolean; }>
Defined in: plugin/index.ts:198