Skip to main content

BuildOptions

Extends

Properties

PropertyTypeDescriptionInherited from

absWorkingDir?

string

Documentation: https://esbuild.github.io/api/#working-directory

alias?

Record<string, string>

Documentation: https://esbuild.github.io/api/#alias

allowOverwrite?

boolean

Documentation: https://esbuild.github.io/api/#allow-overwrite

assetNames?

string

Documentation: https://esbuild.github.io/api/#asset-names

banner?

object

Documentation: https://esbuild.github.io/api/#banner

bundle?

boolean

Documentation: https://esbuild.github.io/api/#bundle

charset?

Charset

Documentation: https://esbuild.github.io/api/#charset

CommonOptions.charset

chunkNames?

string

Documentation: https://esbuild.github.io/api/#chunk-names

color?

boolean

Documentation: https://esbuild.github.io/api/#color

CommonOptions.color

conditions?

string[]

Documentation: https://esbuild.github.io/api/#conditions

define?

object

Documentation: https://esbuild.github.io/api/#define

CommonOptions.define

drop?

Drop[]

Documentation: https://esbuild.github.io/api/#drop

CommonOptions.drop

dropLabels?

string[]

Documentation: https://esbuild.github.io/api/#drop-labels

CommonOptions.dropLabels

entryNames?

string

Documentation: https://esbuild.github.io/api/#entry-names

entryPoints?

string[] | Record<string, string> | object[]

Documentation: https://esbuild.github.io/api/#entry-points

external?

string[]

Documentation: https://esbuild.github.io/api/#external

footer?

object

Documentation: https://esbuild.github.io/api/#footer

format?

Format

Documentation: https://esbuild.github.io/api/#format

CommonOptions.format

globalName?

string

Documentation: https://esbuild.github.io/api/#global-name

CommonOptions.globalName

ignoreAnnotations?

boolean

Documentation: https://esbuild.github.io/api/#ignore-annotations

CommonOptions.ignoreAnnotations

inject?

string[]

Documentation: https://esbuild.github.io/api/#inject

jsx?

"transform" | "preserve" | "automatic"

Documentation: https://esbuild.github.io/api/#jsx

CommonOptions.jsx

jsxDev?

boolean

Documentation: https://esbuild.github.io/api/#jsx-development

CommonOptions.jsxDev

jsxFactory?

string

Documentation: https://esbuild.github.io/api/#jsx-factory

CommonOptions.jsxFactory

jsxFragment?

string

Documentation: https://esbuild.github.io/api/#jsx-fragment

CommonOptions.jsxFragment

jsxImportSource?

string

Documentation: https://esbuild.github.io/api/#jsx-import-source

CommonOptions.jsxImportSource

jsxSideEffects?

boolean

Documentation: https://esbuild.github.io/api/#jsx-side-effects

CommonOptions.jsxSideEffects

keepNames?

boolean

Documentation: https://esbuild.github.io/api/#keep-names

CommonOptions.keepNames

legalComments?

"external" | "linked" | "inline" | "none" | "eof"

Documentation: https://esbuild.github.io/api/#legal-comments

CommonOptions.legalComments

lineLimit?

number

Documentation: https://esbuild.github.io/api/#line-limit

CommonOptions.lineLimit

loader?

object

Documentation: https://esbuild.github.io/api/#loader

logLevel?

LogLevel

Documentation: https://esbuild.github.io/api/#log-level

CommonOptions.logLevel

logLimit?

number

Documentation: https://esbuild.github.io/api/#log-limit

CommonOptions.logLimit

logOverride?

Record<string, LogLevel>

Documentation: https://esbuild.github.io/api/#log-override

CommonOptions.logOverride

mainFields?

string[]

Documentation: https://esbuild.github.io/api/#main-fields

mangleCache?

Record<string, string | false>

Documentation: https://esbuild.github.io/api/#mangle-props

CommonOptions.mangleCache

mangleProps?

RegExp

Documentation: https://esbuild.github.io/api/#mangle-props

CommonOptions.mangleProps

mangleQuoted?

boolean

Documentation: https://esbuild.github.io/api/#mangle-props

CommonOptions.mangleQuoted

metafile?

boolean

Documentation: https://esbuild.github.io/api/#metafile

minify?

boolean

Documentation: https://esbuild.github.io/api/#minify

CommonOptions.minify

minifyIdentifiers?

boolean

Documentation: https://esbuild.github.io/api/#minify

CommonOptions.minifyIdentifiers

minifySyntax?

boolean

Documentation: https://esbuild.github.io/api/#minify

CommonOptions.minifySyntax

minifyWhitespace?

boolean

Documentation: https://esbuild.github.io/api/#minify

CommonOptions.minifyWhitespace

nodePaths?

string[]

Documentation: https://esbuild.github.io/api/#node-paths

outbase?

string

Documentation: https://esbuild.github.io/api/#outbase

outdir?

string

Documentation: https://esbuild.github.io/api/#outdir

outExtension?

object

Documentation: https://esbuild.github.io/api/#out-extension

outfile?

string

Documentation: https://esbuild.github.io/api/#outfile

packages?

"bundle" | "external"

Documentation: https://esbuild.github.io/api/#packages

platform?

Platform

Documentation: https://esbuild.github.io/api/#platform

CommonOptions.platform

plugins?

Plugin[]

Documentation: https://esbuild.github.io/plugins/

preserveSymlinks?

boolean

Documentation: https://esbuild.github.io/api/#preserve-symlinks

publicPath?

string

Documentation: https://esbuild.github.io/api/#public-path

pure?

string[]

Documentation: https://esbuild.github.io/api/#pure

CommonOptions.pure

reserveProps?

RegExp

Documentation: https://esbuild.github.io/api/#mangle-props

CommonOptions.reserveProps

resolveExtensions?

string[]

Documentation: https://esbuild.github.io/api/#resolve-extensions

sourcemap?

boolean | "external" | "linked" | "inline" | "both"

Documentation: https://esbuild.github.io/api/#sourcemap

CommonOptions.sourcemap

sourceRoot?

string

Documentation: https://esbuild.github.io/api/#source-root

CommonOptions.sourceRoot

sourcesContent?

boolean

Documentation: https://esbuild.github.io/api/#sources-content

CommonOptions.sourcesContent

splitting?

boolean

Documentation: https://esbuild.github.io/api/#splitting

stdin?

StdinOptions

Documentation: https://esbuild.github.io/api/#stdin

supported?

Record<string, boolean>

Documentation: https://esbuild.github.io/api/#supported

CommonOptions.supported

target?

string | string[]

Documentation: https://esbuild.github.io/api/#target

CommonOptions.target

treeShaking?

boolean

Documentation: https://esbuild.github.io/api/#tree-shaking

CommonOptions.treeShaking

tsconfig?

string

Documentation: https://esbuild.github.io/api/#tsconfig

tsconfigRaw?

string | TsconfigRaw

Documentation: https://esbuild.github.io/api/#tsconfig-raw

CommonOptions.tsconfigRaw

write?

boolean

Documentation: https://esbuild.github.io/api/#write