Open sourceActive

esbuild

A fast bundler and minifier that interprets files via built-in content-type loaders.

Open source page ↗

Product features

Product features

# Avoid direct eval when bundling

Content Types

CSS Support

Supports importing CSS from JavaScript, CSS modules, global names, and the composes directive.

# ES5 is not supported well

# Imports follow ECMAScript module behavior

# JavaScript

# JavaScript caveats

JavaScript Loader

Enabled by default for .js, .cjs, and .mjs files.

JSON Support

Supports JSON content type and import attributes.

JSX Support

Supports JSX with auto-import and usage without React.

# Private member performance

Text and Binary Loaders

Supports text, binary, base64, data URL, external file, file, copy, and empty loaders.

# The default export can be error-prone

# The value of this is not preserved on functions called from a module namespace object

# The value of toString() is not preserved on functions (and classes)

# TypeScript

# TypeScript caveats

TypeScript Support

Compiles TypeScript files independently; only certain tsconfig.json fields are respected.