Interface FunctionPluginHooks
interface FunctionPluginHooks { augmentChunkHash: ( this: PluginContext, chunk: RenderedChunk, ) => string | void; buildEnd: (this: PluginContext, err?: Error) => void; buildStart: (this: PluginContext, options: NormalizedInputOptions) => void; closeBundle: (this: PluginContext) => void; closeWatcher: (this: PluginContext) => void; generateBundle: ( this: PluginContext, outputOptions: NormalizedOutputOptions, bundle: OutputBundle, isWrite: boolean, ) => void; load: (this: PluginContext, id: string) => MaybePromise<LoadResult>; moduleParsed: (this: PluginContext, moduleInfo: ModuleInfo) => void; onLog: ( this: MinimalPluginContext, level: LogLevel, log: RollupLog, ) => boolean | NullValue<void>; options: ( this: MinimalPluginContext, options: InputOptions, ) => InputOptions | NullValue<void>; outputOptions: ( this: MinimalPluginContext, options: OutputOptions, ) => OutputOptions | NullValue<void>; renderChunk: ( this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta, ) => | string | NullValue<void> | { code: string; map?: SourceMapInput | undefined
}; renderError: (this: PluginContext, error: Error) => void; renderStart: ( this: PluginContext, outputOptions: NormalizedOutputOptions, inputOptions: NormalizedInputOptions, ) => void; resolveDynamicImport: ( this: PluginContext, source: string, importer: string | undefined, ) => ResolveIdResult; resolveId: ( this: PluginContext, source: string, importer: string | undefined, extraOptions: ResolveIdExtraOptions, ) => ResolveIdResult; transform: ( this: TransformPluginContext, code: string, id: string, meta: BindingTransformHookExtraArgs & { ast?: Program; magicString?: BindingMagicString; moduleType: ModuleType; }, ) => TransformResult; watchChange: ( this: PluginContext, id: string, event: { event: ChangeEvent }, ) => void; writeBundle: ( this: PluginContext, outputOptions: NormalizedOutputOptions, bundle: OutputBundle, ) => void;} Properties
augmentChunkHash
buildEnd
buildStart
closeBundle
closeWatcher
generateBundle
load
moduleParsed
onLog
options
outputOptions
renderChunk
renderError
renderStart
resolveDynamicImport
resolveId
watchChange
writeBundle
Deprecated
This hook is only for rollup plugin compatibility. Please use
resolveIdinstead.