interface PluginBuild {
    esbuild: {
        analyzeMetafile: ((metafile, options?) => Promise<string>);
        analyzeMetafileSync: ((metafile, options?) => string);
        build: (<T>(options) => Promise<BuildResult<T>>);
        buildSync: (<T>(options) => BuildResult<T>);
        context: (<T>(options) => Promise<BuildContext<T>>);
        formatMessages: ((messages, options) => Promise<string[]>);
        formatMessagesSync: ((messages, options) => string[]);
        initialize: ((options) => Promise<void>);
        transform: (<T>(input, options?) => Promise<TransformResult<T>>);
        transformSync: (<T>(input, options?) => TransformResult<T>);
        version: string;
    };
    initialOptions: BuildOptions;
    onDispose(callback): void;
    onEnd(callback): void;
    onLoad(options, callback): void;
    onResolve(options, callback): void;
    onStart(callback): void;
    resolve(path, options?): Promise<ResolveResult>;
}

Properties

esbuild: {
    analyzeMetafile: ((metafile, options?) => Promise<string>);
    analyzeMetafileSync: ((metafile, options?) => string);
    build: (<T>(options) => Promise<BuildResult<T>>);
    buildSync: (<T>(options) => BuildResult<T>);
    context: (<T>(options) => Promise<BuildContext<T>>);
    formatMessages: ((messages, options) => Promise<string[]>);
    formatMessagesSync: ((messages, options) => string[]);
    initialize: ((options) => Promise<void>);
    transform: (<T>(input, options?) => Promise<TransformResult<T>>);
    transformSync: (<T>(input, options?) => TransformResult<T>);
    version: string;
}

This is a full copy of the esbuild library in case you need it

Type declaration

initialOptions: BuildOptions

Methods

  • Parameters

    • callback: (() => void)
        • (): void
        • Returns void

    Returns void