Skip to content

Interface: Plugin<A>

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1151

Extends

  • OutputPlugin.Partial<PluginHooks>

Type Parameters

A

A = any

Properties

api?

ts
optional api: A;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1152


augmentChunkHash?

ts
optional augmentChunkHash: ObjectHook<(this, chunk) => string | void, {
}>;

Inherited from

Plugin.augmentChunkHash


ts
optional banner: ObjectHook<AddonHook, {
}>;

Inherited from

Plugin.banner


buildEnd?

ts
optional buildEnd: ObjectHook<(this, ...parameters) => void | Promise<void>, {
  sequential?: boolean;
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1096

Inherited from

FunctionPluginHooks.buildEnd


buildStart?

ts
optional buildStart: ObjectHook<(this, ...parameters) => void | Promise<void>, {
  sequential?: boolean;
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1082

Inherited from

FunctionPluginHooks.buildStart


closeBundle?

ts
optional closeBundle: ObjectHook<(this, ...parameters) => void | Promise<void>, {
  sequential?: boolean;
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1106

Inherited from

FunctionPluginHooks.closeBundle


closeWatcher?

ts
optional closeWatcher: ObjectHook<(this, ...parameters) => void | Promise<void>, {
  sequential?: boolean;
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1110

Inherited from

FunctionPluginHooks.closeWatcher


ts
optional footer: ObjectHook<AddonHook, {
}>;

Inherited from

Plugin.footer


generateBundle?

ts
optional generateBundle: ObjectHook<(this, ...parameters) => void | Promise<void>, {
}>;

Inherited from

Plugin.generateBundle


intro?

ts
optional intro: ObjectHook<AddonHook, {
}>;

Inherited from

Plugin.intro


load?

ts
optional load: ObjectHook<(this, ...parameters) => MaybePromise<LoadResult> | Promise<MaybePromise<LoadResult>>, {
  filter?: TUnionWithTopLevelFilterExpressionArray<Pick<HookFilter, "id">> | undefined;
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1089

Inherited from

FunctionPluginHooks.load


moduleParsed?

ts
optional moduleParsed: ObjectHook<(this, ...parameters) => void | Promise<void>, {
  sequential?: boolean;
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1095

Inherited from

FunctionPluginHooks.moduleParsed


name

ts
name: string

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1149

Inherited from

ts
OutputPlugin.name

onLog?

ts
optional onLog: ObjectHook<(this, level, log) => boolean | NullValue<void>, {
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1079

Inherited from

FunctionPluginHooks.onLog


options?

ts
optional options: ObjectHook<(this, ...parameters) => InputOptions | NullValue<void> | Promise<InputOptions | NullValue<void>>, {
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1080

Inherited from

FunctionPluginHooks.options


outputOptions?

ts
optional outputOptions: ObjectHook<(this, options) => OutputOptions | NullValue<void>, {
}>;

Inherited from

Plugin.outputOptions


outro?

ts
optional outro: ObjectHook<AddonHook, {
}>;

Inherited from

Plugin.outro


renderChunk?

ts
optional renderChunk: ObjectHook<(this, ...parameters) => string | NullValue<void> | { code: string; map?: SourceMapInput | undefined; } | Promise<string | NullValue<void> | { code: string; map?: SourceMapInput | undefined; }>, {
  filter?: TUnionWithTopLevelFilterExpressionArray<Pick<HookFilter, "code">> | undefined;
}>;

Inherited from

Plugin.renderChunk


renderError?

ts
optional renderError: ObjectHook<(this, ...parameters) => void | Promise<void>, {
  sequential?: boolean;
}>;

Inherited from

Plugin.renderError


renderStart?

ts
optional renderStart: ObjectHook<(this, ...parameters) => void | Promise<void>, {
  sequential?: boolean;
}>;

Inherited from

Plugin.renderStart


resolveDynamicImport?

ts
optional resolveDynamicImport: ObjectHook<(this, ...parameters) => ResolveIdResult | Promise<ResolveIdResult>, {
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1088

Deprecated

This hook is only for rollup plugin compatibility. Please use resolveId instead.

Inherited from

FunctionPluginHooks.resolveDynamicImport


resolveId?

ts
optional resolveId: ObjectHook<(this, ...parameters) => ResolveIdResult | Promise<ResolveIdResult>, {
  filter?: TUnionWithTopLevelFilterExpressionArray<{ id?: GeneralHookFilter<RegExp> | undefined; }> | undefined;
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1083

Inherited from

FunctionPluginHooks.resolveId


transform?

ts
optional transform: ObjectHook<(this, ...parameters) => TransformResult | Promise<TransformResult>, {
  filter?: TUnionWithTopLevelFilterExpressionArray<HookFilter> | undefined;
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1090

Inherited from

FunctionPluginHooks.transform


watchChange?

ts
optional watchChange: ObjectHook<(this, ...parameters) => void | Promise<void>, {
  sequential?: boolean;
}>;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:1107

Inherited from

FunctionPluginHooks.watchChange


writeBundle?

ts
optional writeBundle: ObjectHook<(this, ...parameters) => void | Promise<void>, {
  sequential?: boolean;
}>;

Inherited from

Plugin.writeBundle

Released under the MIT License.