Skip to content

Interface: NormalizedOutputOptions

Properties

assetFileNames

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

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

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>


chunkFileNames

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

cssChunkFileNames

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

cssEntryFileNames

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

dir

  • Type: dir: string | undefined

dynamicImportInCjs

  • Type: dynamicImportInCjs: boolean

entryFileNames

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

esModule

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

exports

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

extend

  • Type: extend: boolean

externalLiveBindings

  • Type: externalLiveBindings: boolean

file

  • Type: file: string | undefined

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

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>


format


globals

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

hashCharacters

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

inlineDynamicImports

  • Type: inlineDynamicImports: boolean

intro()

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

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>


legalComments

  • Type: legalComments: "none" | "inline"

minify


minifyInternalExports?

  • Type: optional minifyInternalExports: boolean

name

  • Type: name: string | undefined

outro()

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

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>


paths

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

plugins


polyfillRequire

  • Type: polyfillRequire: boolean

postBanner()

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

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>


postFooter()

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

Parameters

chunk

RenderedChunk

Returns

string | Promise<string>


preserveModules

  • Type: preserveModules: boolean

preserveModulesRoot?

  • Type: optional preserveModulesRoot: string

sourcemap

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

sourcemapBaseUrl

  • Type: sourcemapBaseUrl: string | undefined

sourcemapDebugIds

  • Type: sourcemapDebugIds: boolean

sourcemapIgnoreList

  • Type: sourcemapIgnoreList: boolean | StringOrRegExp | (relativeSourcePath, sourcemapPath) => boolean | undefined

Type Declaration

boolean

StringOrRegExp

(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


sourcemapPathTransform

  • Type: sourcemapPathTransform: (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


topLevelVar?

  • Type: optional topLevelVar: boolean

virtualDirname

  • Type: virtualDirname: string

Released under the MIT License.