UNPKG

@kcinternals/heft-esbuild-plugin

Version:
27 lines (22 loc) 715 B
import { BuildOptions } from 'esbuild'; declare type EsBuildOptionWhitelist = "bundle" | "minify" | "sourcemap" | "platform" | "target" | "external"; /** * The options for esbuild build() function. * * @public */ export declare interface IEsbuildOption extends Pick<BuildOptions, EsBuildOptionWhitelist> { /** The default entrypoint (default to main field on package.json file) */ entrypoint?: string; /** The entrypoints list that overrides default value */ entrypoints?: string[]; /** Output directory name (default is 'lib-bundle') */ output?: string; } /** * Plugin name. * * @public */ export declare const PluginName: "esbuild-plugin"; export { }