Skip to content

Interface: NormalizedOutputOptions

Properties

assetFileNames

  • Type: string | (chunkInfo) => string

See

assetFileNames


  • Type: (chunk) => string | Promise<string>

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>

See

banner


chunkFileNames

  • Type: string | (chunkInfo) => string

See

chunkFileNames


codeSplitting

  • Type: boolean

See

codeSplitting


cssChunkFileNames

  • Type: string | (chunkInfo) => string

See

OutputOptions.cssChunkFileNames | cssChunkFileNames


cssEntryFileNames

  • Type: string | (chunkInfo) => string

See

OutputOptions.cssEntryFileNames | cssEntryFileNames


dir

  • Type: string | undefined

See

dir


dynamicImportInCjs

  • Type: boolean

See

dynamicImportInCjs


entryFileNames

  • Type: string | (chunkInfo) => string

See

entryFileNames


esModule

  • Type: boolean | "if-default-prop"

See

esModule


exports

  • Type: NonNullable<"auto" | "named" | "default" | "none" | undefined>

See

exports


extend

  • Type: boolean

See

extend


externalLiveBindings

  • Type: boolean

See

externalLiveBindings


file

  • Type: string | undefined

See

file


  • Type: (chunk) => string | Promise<string>

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>

See

footer


format

See

format


globals

  • Type: Record<string, string> | (name) => string

See

globals


hashCharacters

  • Type: "base64" | "base36" | "hex"

See

hashCharacters


inlineDynamicImports

  • Type: boolean

Deprecated

Use codeSplitting instead.


intro()

  • Type: (chunk) => string | Promise<string>

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>

See

intro


legalComments

  • Type: "none" | "inline"

See

legalComments


minify

See

minify


minifyInternalExports?

  • Type: boolean
  • Optional

See

minifyInternalExports


name

  • Type: string | undefined

See

name


outro()

  • Type: (chunk) => string | Promise<string>

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>

See

outro


paths

  • Type: Record<string, string> | PathsFunction | undefined

See

paths


plugins

See

plugins


polyfillRequire

  • Type: boolean

See

polyfillRequire


postBanner()

  • Type: (chunk) => string | Promise<string>

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>

See

postBanner


postFooter()

  • Type: (chunk) => string | Promise<string>

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>

See

postFooter


preserveModules

  • Type: boolean

See

preserveModules


preserveModulesRoot?

  • Type: string
  • Optional

See

preserveModulesRoot


sourcemap

  • Type: boolean | "inline" | "hidden"

See

sourcemap


sourcemapBaseUrl

  • Type: string | undefined

See

sourcemapBaseUrl


sourcemapDebugIds

  • Type: boolean

See

sourcemapDebugIds


sourcemapIgnoreList

  • Type: boolean | string | RegExp | (relativeSourcePath, sourcemapPath) => boolean | undefined

Type Declaration

boolean

string | RegExp

(relativeSourcePath, sourcemapPath) => boolean

Parameters

relativeSourcePath

string

The relative path from the generated .map file to the corresponding source file.

sourcemapPath

string

The fully resolved path of the generated sourcemap file.

Returns

boolean

undefined

See

sourcemapIgnoreList


sourcemapPathTransform

  • Type: (relativeSourcePath, sourcemapPath) => string | undefined

Type Declaration

(relativeSourcePath, sourcemapPath) => string

Parameters

relativeSourcePath

string

The relative path from the generated .map file to the corresponding source file.

sourcemapPath

string

The fully resolved path of the generated sourcemap file.

Returns

string

undefined

See

sourcemapPathTransform


topLevelVar?

  • Type: boolean
  • Optional

See

topLevelVar


virtualDirname

  • Type: string

See

virtualDirname