Skip to content
TelegramWhatsApp

Dictionary

esbuild

esbuild is an extremely fast JavaScript bundler and minifier written in Go that provides build speeds 10 to 100 times faster than traditional bundlers like Webpack. It handles JavaScript and TypeScript bundling, minification, source map generation, tree-shaking of unused code, and CSS bundling, all with zero configuration required for common use cases.

The speed advantage comes from three architectural decisions: esbuild is written in Go rather than JavaScript, compiling to native code and avoiding garbage collection pauses. It parallelizes work across all available CPU cores. And it minimizes passes over source code, doing parsing, linking, and code generation as efficiently as possible. A project that takes 30 seconds to bundle with Webpack often completes in under a second with esbuild.

For web development, esbuild has reshaped build tooling expectations. It powers the development server in Vite, which uses esbuild for dependency pre-bundling to achieve near-instant server starts. Many teams use esbuild directly for library bundling and production builds. The tradeoff is that esbuild intentionally does not support some Webpack features like Hot Module Replacement and has a more limited plugin API. It works best as a fast build primitive that other tools compose around.