Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • A = any

Hierarchy

Index

Properties

api?: A
augmentChunkHash: undefined | ObjectHook<(this: PluginContext, chunk: RenderedChunk) => string | void, {}>
banner: undefined | ObjectHook<AddonHook, {}>
cacheKey?: string
footer: undefined | ObjectHook<AddonHook, {}>
generateBundle: undefined | ObjectHook<(this: PluginContext, ...parameters: [options: NormalizedOutputOptions, bundle: OutputBundle, isWrite: boolean]) => void | Promise<void>, {}>
intro: undefined | ObjectHook<AddonHook, {}>
load?: ObjectHook<(this: PluginContext, ...parameters: [id: string]) => LoadResult | Promise<LoadResult>, {}>
moduleParsed?: ObjectHook<(this: PluginContext, ...parameters: [info: ModuleInfo]) => void | Promise<void>, { sequential?: boolean }>
name: string
outputOptions: undefined | ObjectHook<(this: PluginContext, options: OutputOptions) => NullValue | OutputOptions, {}>
outro: undefined | ObjectHook<AddonHook, {}>
renderChunk: undefined | ObjectHook<(this: PluginContext, ...parameters: [code: string, chunk: RenderedChunk, options: NormalizedOutputOptions, meta: { chunks: Record<string, RenderedChunk> }]) => string | NullValue | { code: string; map?: SourceMapInput } | Promise<string | NullValue | { code: string; map?: SourceMapInput }>, {}>
renderDynamicImport: undefined | ObjectHook<(this: PluginContext, options: { customResolution: null | string; format: InternalModuleFormat; moduleId: string; targetModuleId: null | string }) => NullValue | { left: string; right: string }, {}>
renderError: undefined | ObjectHook<(this: PluginContext, ...parameters: [error?: Error]) => void | Promise<void>, { sequential?: boolean }>
renderStart: undefined | ObjectHook<(this: PluginContext, ...parameters: [outputOptions: NormalizedOutputOptions, inputOptions: NormalizedInputOptions]) => void | Promise<void>, { sequential?: boolean }>
resolveDynamicImport?: ObjectHook<(this: PluginContext, ...parameters: [specifier: string | AstNode, importer: string, options: { attributes: Record<string, string> }]) => ResolveIdResult | Promise<ResolveIdResult>, {}>
resolveFileUrl: undefined | ObjectHook<ResolveFileUrlHook, {}>
resolveId?: ObjectHook<(this: PluginContext, ...parameters: [source: string, importer: string, options: { attributes: Record<string, string>; custom?: CustomPluginOptions; isEntry: boolean }]) => ResolveIdResult | Promise<ResolveIdResult>, {}>
resolveImportMeta: undefined | ObjectHook<ResolveImportMetaHook, {}>
shouldTransformCachedModule?: ObjectHook<(this: PluginContext, ...parameters: [options: { ast: ProgramNode; code: string; id: string; meta: CustomPluginOptions; moduleSideEffects: boolean | "no-treeshake"; resolvedSources: ResolvedIdMap; syntheticNamedExports: string | boolean }]) => boolean | NullValue | Promise<boolean | NullValue>, {}>
transform?: ObjectHook<(this: TransformPluginContext, ...parameters: [code: string, id: string]) => TransformResult | Promise<TransformResult>, {}>
version?: string
watchChange?: ObjectHook<(this: PluginContext, ...parameters: [id: string, change: { event: ChangeEvent }]) => void | Promise<void>, { sequential?: boolean }>
writeBundle: undefined | ObjectHook<(this: PluginContext, ...parameters: [options: NormalizedOutputOptions, bundle: OutputBundle]) => void | Promise<void>, { sequential?: boolean }>

Methods

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void