interface CommonOptions {
    charset?: Charset;
    color?: boolean;
    define?: {
        [key: string]: string;
    };
    drop?: Drop[];
    dropLabels?: string[];
    format?: Format;
    globalName?: string;
    ignoreAnnotations?: boolean;
    jsx?: "transform" | "preserve" | "automatic";
    jsxDev?: boolean;
    jsxFactory?: string;
    jsxFragment?: string;
    jsxImportSource?: string;
    jsxSideEffects?: boolean;
    keepNames?: boolean;
    legalComments?: "external" | "linked" | "inline" | "none" | "eof";
    lineLimit?: number;
    logLevel?: LogLevel;
    logLimit?: number;
    logOverride?: Record<string, LogLevel>;
    mangleCache?: Record<string, string | false>;
    mangleProps?: RegExp;
    mangleQuoted?: boolean;
    minify?: boolean;
    minifyIdentifiers?: boolean;
    minifySyntax?: boolean;
    minifyWhitespace?: boolean;
    platform?: Platform;
    pure?: string[];
    reserveProps?: RegExp;
    sourceRoot?: string;
    sourcemap?: boolean | "external" | "linked" | "inline" | "both";
    sourcesContent?: boolean;
    supported?: Record<string, boolean>;
    target?: string | string[];
    treeShaking?: boolean;
    tsconfigRaw?: string | TsconfigRaw;
}

Hierarchy (view full)

Properties

charset?: Charset
color?: boolean
define?: {
    [key: string]: string;
}

Type declaration

  • [key: string]: string
drop?: Drop[]
dropLabels?: string[]
format?: Format
globalName?: string
ignoreAnnotations?: boolean
jsx?: "transform" | "preserve" | "automatic"
jsxDev?: boolean
jsxFactory?: string
jsxFragment?: string
jsxImportSource?: string
jsxSideEffects?: boolean
keepNames?: boolean
legalComments?: "external" | "linked" | "inline" | "none" | "eof"
lineLimit?: number
logLevel?: LogLevel
logLimit?: number
logOverride?: Record<string, LogLevel>
mangleCache?: Record<string, string | false>
mangleProps?: RegExp
mangleQuoted?: boolean
minify?: boolean
minifyIdentifiers?: boolean
minifySyntax?: boolean
minifyWhitespace?: boolean
platform?: Platform
pure?: string[]
reserveProps?: RegExp
sourceRoot?: string
sourcemap?: boolean | "external" | "linked" | "inline" | "both"
sourcesContent?: boolean
supported?: Record<string, boolean>
target?: string | string[]
treeShaking?: boolean
tsconfigRaw?: string | TsconfigRaw