Skip to content

Interface: Plugin<A>

Defined in: plugin/index.ts:324

Extends

  • OutputPlugin.Partial<PluginHooks>

Type Parameters

A

A = any

Properties

api?

  • Type: optional api: A
Defined in: plugin/index.ts:326

augmentChunkHash?

  • Type: optional augmentChunkHash: ObjectHook<(this, chunk) => string | void, { }>
Defined in: plugin/index.ts:184

Inherited from

FunctionPluginHooks.augmentChunkHash


Inherited from

Plugin.banner


buildEnd?

  • Type: optional buildEnd: ObjectHook<(this, ...parameters) => void | Promise<void>, { sequential?: boolean; }>
Defined in: plugin/index.ts:160

Inherited from

FunctionPluginHooks.buildEnd


buildStart?

  • Type: optional buildStart: ObjectHook<(this, ...parameters) => void | Promise<void>, { sequential?: boolean; }>
Defined in: plugin/index.ts:126

Inherited from

FunctionPluginHooks.buildStart


closeBundle?

  • Type: optional closeBundle: ObjectHook<(this, ...parameters) => void | Promise<void>, { sequential?: boolean; }>
Defined in: plugin/index.ts:204

Inherited from

FunctionPluginHooks.closeBundle


closeWatcher?

  • Type: optional closeWatcher: ObjectHook<(this, ...parameters) => void | Promise<void>, { sequential?: boolean; }>
Defined in: plugin/index.ts:213

Inherited from

FunctionPluginHooks.closeWatcher


Inherited from

Plugin.footer


generateBundle?

  • Type: optional generateBundle: ObjectHook<(this, ...parameters) => void | Promise<void>, { }>
Defined in: plugin/index.ts:191

Inherited from

FunctionPluginHooks.generateBundle


intro?

Inherited from

Plugin.intro


load?

  • Type: optional load: ObjectHook<(this, ...parameters) => MaybePromise<LoadResult> | Promise<MaybePromise<LoadResult>>, { filter?: TUnionWithTopLevelFilterExpressionArray<Pick<HookFilter, "id">> | undefined; }>
Defined in: plugin/index.ts:145

Inherited from

FunctionPluginHooks.load


moduleParsed?

  • Type: optional moduleParsed: 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: optional onLog: ObjectHook<(this, level, log) => boolean | NullValue, { }>
Defined in: plugin/index.ts:107

Inherited from

FunctionPluginHooks.onLog


options?

  • Type: optional options: ObjectHook<(this, ...parameters) => NullValue | InputOptions | Promise<NullValue | InputOptions>, { }>
Defined in: plugin/index.ts:113

Inherited from

FunctionPluginHooks.options


outputOptions?

  • Type: optional outputOptions: ObjectHook<(this, options) => NullValue | OutputOptions, { }>
Defined in: plugin/index.ts:119

Inherited from

FunctionPluginHooks.outputOptions


outro?

Inherited from

Plugin.outro


renderChunk?

  • Type: optional renderChunk: 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: optional renderError: ObjectHook<(this, ...parameters) => void | Promise<void>, { sequential?: boolean; }>
Defined in: plugin/index.ts:189

Inherited from

FunctionPluginHooks.renderError


renderStart?

  • Type: optional renderStart: ObjectHook<(this, ...parameters) => void | Promise<void>, { sequential?: boolean; }>
Defined in: plugin/index.ts:164

Inherited from

FunctionPluginHooks.renderStart


resolveDynamicImport?

  • Type: optional resolveDynamicImport: 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: optional resolveId: ObjectHook<(this, ...parameters) => ResolveIdResult | Promise<ResolveIdResult>, { filter?: TUnionWithTopLevelFilterExpressionArray<{ id?: GeneralHookFilter<RegExp> | undefined; }> | undefined; }>
Defined in: plugin/index.ts:128

Inherited from

FunctionPluginHooks.resolveId


transform?

  • Type: optional transform: ObjectHook<(this, ...parameters) => TransformResult | Promise<TransformResult>, { filter?: TUnionWithTopLevelFilterExpressionArray<HookFilter> | undefined; }>
Defined in: plugin/index.ts:147

Inherited from

FunctionPluginHooks.transform


watchChange?

  • Type: optional watchChange: ObjectHook<(this, ...parameters) => void | Promise<void>, { sequential?: boolean; }>
Defined in: plugin/index.ts:207

Inherited from

FunctionPluginHooks.watchChange


writeBundle?

  • Type: optional writeBundle: ObjectHook<(this, ...parameters) => void | Promise<void>, { sequential?: boolean; }>
Defined in: plugin/index.ts:198

Inherited from

FunctionPluginHooks.writeBundle

Released under the MIT License.