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


comments ​

See ​

comments


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"

Deprecated ​

Use comments.legal instead.

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


sourcemapExcludeSources ​

  • Type: boolean

See ​

sourcemapExcludeSources


sourcemapFileNames ​

  • Type: string | ((chunkInfo) => string) | undefined

See ​

sourcemapFileNames


sourcemapIgnoreList ​

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

Union Members ​

boolean


string | RegExp


Function ​

(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

Union Members ​

Function ​

(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

Was this page helpful?