interface BuildOptions {
    absWorkingDir?: string;
    alias?: Record<string, string>;
    allowOverwrite?: boolean;
    assetNames?: string;
    banner?: {
        [type: string]: string;
    };
    bundle?: boolean;
    charset?: Charset;
    chunkNames?: string;
    color?: boolean;
    conditions?: string[];
    define?: {
        [key: string]: string;
    };
    drop?: Drop[];
    dropLabels?: string[];
    entryNames?: string;
    entryPoints?: string[] | Record<string, string> | {
        in: string;
        out: string;
    }[];
    external?: string[];
    footer?: {
        [type: string]: string;
    };
    format?: Format;
    globalName?: string;
    ignoreAnnotations?: boolean;
    inject?: string[];
    jsx?: "transform" | "preserve" | "automatic";
    jsxDev?: boolean;
    jsxFactory?: string;
    jsxFragment?: string;
    jsxImportSource?: string;
    jsxSideEffects?: boolean;
    keepNames?: boolean;
    legalComments?: "external" | "linked" | "inline" | "none" | "eof";
    lineLimit?: number;
    loader?: {
        [ext: string]: Loader;
    };
    logLevel?: LogLevel;
    logLimit?: number;
    logOverride?: Record<string, LogLevel>;
    mainFields?: string[];
    mangleCache?: Record<string, string | false>;
    mangleProps?: RegExp;
    mangleQuoted?: boolean;
    metafile?: boolean;
    minify?: boolean;
    minifyIdentifiers?: boolean;
    minifySyntax?: boolean;
    minifyWhitespace?: boolean;
    nodePaths?: string[];
    outExtension?: {
        [ext: string]: string;
    };
    outbase?: string;
    outdir?: string;
    outfile?: string;
    packages?: "external";
    platform?: Platform;
    plugins?: Plugin[];
    preserveSymlinks?: boolean;
    publicPath?: string;
    pure?: string[];
    reserveProps?: RegExp;
    resolveExtensions?: string[];
    sourceRoot?: string;
    sourcemap?: boolean | "external" | "linked" | "inline" | "both";
    sourcesContent?: boolean;
    splitting?: boolean;
    stdin?: StdinOptions;
    supported?: Record<string, boolean>;
    target?: string | string[];
    treeShaking?: boolean;
    tsconfig?: string;
    tsconfigRaw?: string | TsconfigRaw;
    write?: boolean;
}

Hierarchy (view full)

Properties

absWorkingDir?: string
alias?: Record<string, string>
allowOverwrite?: boolean
assetNames?: string
banner?: {
    [type: string]: string;
}

Type declaration

  • [type: string]: string
bundle?: boolean
charset?: Charset
chunkNames?: string
color?: boolean
conditions?: string[]
define?: {
    [key: string]: string;
}

Type declaration

  • [key: string]: string
drop?: Drop[]
dropLabels?: string[]
entryNames?: string
entryPoints?: string[] | Record<string, string> | {
    in: string;
    out: string;
}[]
external?: string[]
footer?: {
    [type: string]: string;
}

Type declaration

  • [type: string]: string
format?: Format
globalName?: string
ignoreAnnotations?: boolean
inject?: string[]
jsx?: "transform" | "preserve" | "automatic"
jsxDev?: boolean
jsxFactory?: string
jsxFragment?: string
jsxImportSource?: string
jsxSideEffects?: boolean
keepNames?: boolean
legalComments?: "external" | "linked" | "inline" | "none" | "eof"
lineLimit?: number
loader?: {
    [ext: string]: Loader;
}

Type declaration

logLevel?: LogLevel
logLimit?: number
logOverride?: Record<string, LogLevel>
mainFields?: string[]
mangleCache?: Record<string, string | false>
mangleProps?: RegExp
mangleQuoted?: boolean
metafile?: boolean
minify?: boolean
minifyIdentifiers?: boolean
minifySyntax?: boolean
minifyWhitespace?: boolean
nodePaths?: string[]
outExtension?: {
    [ext: string]: string;
}

Type declaration

  • [ext: string]: string
outbase?: string
outdir?: string
outfile?: string
packages?: "external"
platform?: Platform
plugins?: Plugin[]
preserveSymlinks?: boolean
publicPath?: string
pure?: string[]
reserveProps?: RegExp
resolveExtensions?: string[]
sourceRoot?: string
sourcemap?: boolean | "external" | "linked" | "inline" | "both"
sourcesContent?: boolean
splitting?: boolean
stdin?: StdinOptions
supported?: Record<string, boolean>
target?: string | string[]
treeShaking?: boolean
tsconfig?: string
tsconfigRaw?: string | TsconfigRaw
write?: boolean