esbuild
Extremely fast JavaScript and TypeScript bundler
TLDR
Bundle JavaScript file
SYNOPSIS
esbuild [options] [entrypoints_...]
DESCRIPTION
esbuild is an extremely fast JavaScript and TypeScript bundler and minifier. Written in Go, it's 10-100x faster than traditional bundlers like webpack or Parcel.
The tool handles bundling, minification, code splitting, tree shaking, and transpilation. It supports JSX, TypeScript, and modern JavaScript features without configuration.
esbuild's speed makes it ideal for development builds and as a lower-level tool in build pipelines.
PARAMETERS
ENTRYPOINTS_
Input files to process.--bundle
Bundle dependencies.--outfile FILE
Output file path.--minify
Minify output.--watch
Rebuild on changes.--serve [PORT]
Start development server.--platform PLATFORM
Target: browser, node, neutral.--sourcemap
Generate source maps.--target VERSION
JavaScript target version.--help
Display help information.
CAVEATS
Plugin ecosystem smaller than webpack. Some transformations not supported. Configuration differs from other bundlers. May need plugins for complex setups.
HISTORY
esbuild was created by Evan Wallace (co-founder of Figma) and released in 2020. Its dramatic speed improvement over existing tools came from being written in Go with parallelization.
