Skip to main content

TransformOptions

Extends

Properties

PropertyTypeDescriptionInherited from

banner?

string

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

charset?

Charset

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

CommonOptions.charset

color?

boolean

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

CommonOptions.color

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

footer?

string

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

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?

Loader

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

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

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

platform?

Platform

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

CommonOptions.platform

pure?

string[]

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

CommonOptions.pure

reserveProps?

RegExp

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

CommonOptions.reserveProps

sourcefile?

string

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

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

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

tsconfigRaw?

string | TsconfigRaw

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

CommonOptions.tsconfigRaw