Skip to main content

CommonOptions

Extended by

Properties

PropertyTypeDescription

charset?

Charset

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

color?

boolean

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

define?

object

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

drop?

Drop[]

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

dropLabels?

string[]

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

format?

Format

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

globalName?

string

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

ignoreAnnotations?

boolean

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

jsx?

"transform" | "preserve" | "automatic"

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

jsxDev?

boolean

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

jsxFactory?

string

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

jsxFragment?

string

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

jsxImportSource?

string

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

jsxSideEffects?

boolean

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

keepNames?

boolean

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

legalComments?

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

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

lineLimit?

number

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

logLevel?

LogLevel

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

logLimit?

number

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

logOverride?

Record<string, LogLevel>

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

mangleCache?

Record<string, string | false>

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

mangleProps?

RegExp

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

mangleQuoted?

boolean

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

minify?

boolean

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

minifyIdentifiers?

boolean

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

minifySyntax?

boolean

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

minifyWhitespace?

boolean

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

platform?

Platform

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

pure?

string[]

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

reserveProps?

RegExp

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

sourcemap?

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

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

sourceRoot?

string

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

sourcesContent?

boolean

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

supported?

Record<string, boolean>

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

target?

string | string[]

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

treeShaking?

boolean

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

tsconfigRaw?

string | TsconfigRaw

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