interface OutputOptions {
    amd?: AmdOptions;
    assetFileNames?: string | ((chunkInfo) => string);
    banner?: string | AddonFunction;
    chunkFileNames?: string | ((chunkInfo) => string);
    compact?: boolean;
    dir?: string;
    dynamicImportInCjs?: boolean;
    entryFileNames?: string | ((chunkInfo) => string);
    esModule?: boolean | "if-default-prop";
    experimentalMinChunkSize?: number;
    exports?: "default" | "auto" | "none" | "named";
    extend?: boolean;
    externalImportAssertions?: boolean;
    externalImportAttributes?: boolean;
    externalLiveBindings?: boolean;
    file?: string;
    footer?: string | AddonFunction;
    format?: ModuleFormat;
    freeze?: boolean;
    generatedCode?: GeneratedCodePreset | GeneratedCodeOptions;
    globals?: GlobalsOption;
    hashCharacters?: HashCharacters;
    hoistTransitiveImports?: boolean;
    importAttributesKey?: ImportAttributesKey;
    indent?: string | boolean;
    inlineDynamicImports?: boolean;
    interop?: GetInterop | InteropType;
    intro?: string | AddonFunction;
    manualChunks?: ManualChunksOption;
    minifyInternalExports?: boolean;
    name?: string;
    noConflict?: boolean;
    outro?: string | AddonFunction;
    paths?: OptionsPaths;
    plugins?: OutputPluginOption;
    preserveModules?: boolean;
    preserveModulesRoot?: string;
    reexportProtoFromExternal?: boolean;
    sanitizeFileName?: boolean | ((fileName) => string);
    sourcemap?: boolean | "inline" | "hidden";
    sourcemapBaseUrl?: string;
    sourcemapExcludeSources?: boolean;
    sourcemapFile?: string;
    sourcemapFileNames?: string | ((chunkInfo) => string);
    sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
    sourcemapPathTransform?: SourcemapPathTransformOption;
    strict?: boolean;
    systemNullSetters?: boolean;
    validate?: boolean;
}

Properties

assetFileNames?: string | ((chunkInfo) => string)

Type declaration

banner?: string | AddonFunction
chunkFileNames?: string | ((chunkInfo) => string)

Type declaration

compact?: boolean
dir?: string
dynamicImportInCjs?: boolean
entryFileNames?: string | ((chunkInfo) => string)

Type declaration

esModule?: boolean | "if-default-prop"
experimentalMinChunkSize?: number
exports?: "default" | "auto" | "none" | "named"
extend?: boolean
externalImportAssertions?: boolean

Deprecated

Use "externalImportAttributes" instead.

externalImportAttributes?: boolean
externalLiveBindings?: boolean
file?: string
footer?: string | AddonFunction
format?: ModuleFormat
freeze?: boolean
globals?: GlobalsOption
hashCharacters?: HashCharacters
hoistTransitiveImports?: boolean
importAttributesKey?: ImportAttributesKey
indent?: string | boolean
inlineDynamicImports?: boolean
intro?: string | AddonFunction
manualChunks?: ManualChunksOption
minifyInternalExports?: boolean
name?: string
noConflict?: boolean
outro?: string | AddonFunction
paths?: OptionsPaths
preserveModules?: boolean
preserveModulesRoot?: string
reexportProtoFromExternal?: boolean
sanitizeFileName?: boolean | ((fileName) => string)

Type declaration

    • (fileName): string
    • Parameters

      • fileName: string

      Returns string

sourcemap?: boolean | "inline" | "hidden"
sourcemapBaseUrl?: string
sourcemapExcludeSources?: boolean
sourcemapFile?: string
sourcemapFileNames?: string | ((chunkInfo) => string)

Type declaration

sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption
sourcemapPathTransform?: SourcemapPathTransformOption
strict?: boolean
systemNullSetters?: boolean
validate?: boolean