Go to Latest
interface PluginBuild
import { type PluginBuild } from "https://dotland.deno.dev/x/esbuild@v0.16.1/mod.js";

Properties

initialOptions: BuildOptions
esbuild: { serve: serve; build: build; buildSync: buildSync; transform: transform; transformSync: transformSync; formatMessages: formatMessages; formatMessagesSync: formatMessagesSync; analyzeMetafile: analyzeMetafile; analyzeMetafileSync: analyzeMetafileSync; initialize: initialize; version: version; }

Methods

resolve(path: string, options?: ResolveOptions): Promise<ResolveResult>
onStart(callback: () => (
| null
| void
| Promise<OnStartResult | null | void>
)
): void
onEnd(callback: (result: BuildResult) => (void | Promise<void>)): void
onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) => (
| null
| undefined
| Promise<OnResolveResult | null | undefined>
)
): void
onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) => (
| null
| undefined
| Promise<OnLoadResult | null | undefined>
)
): void