A experimental TypeScript and JavaScript compiler that turns programs into native executables or WebAssembly, without requiring Node.js at runtime.
evanw/esbuild
An extremely fast JavaScript, TypeScript, JSX and CSS bundler with a CLI, JS and Go API.
- Stars
- 40,099
- Forks
- 1,363
- Open issues
- 634
- Last commit
- 2 months ago
What is it?
esbuild is a bundler for web code written in JavaScript, TypeScript, JSX, and CSS. It takes an entry point and its imports, resolves the module graph, and produces optimized output files. The project aims to make build tooling much faster than existing options, and it does this without relying on a persistent cache.
It bundles both ESM and CommonJS modules and handles CSS, including CSS modules. The build pipeline includes tree shaking, minification, and source map generation. It can also run a local development server and a watch mode that rebuilds on file changes, and it supports plugins for custom resolution and loading.
esbuild can be driven from the command line, from JavaScript, or from Go, so it fits into build scripts, frontend toolchains, or other Go programs.
Key features
- 01Built-in support for JavaScript, TypeScript, JSX, and CSS
- 02Bundles ESM and CommonJS modules, including CSS modules
- 03Tree shaking, minification, and source map generation
- 04Local development server and watch mode
- 05Plugin API for custom module resolution and loading
- 06Usable from the CLI, JavaScript, or Go
Use cases
- Bundling a React or TypeScript frontend app for production
- Speeding up slow build pipelines in existing web projects
- Adding a fast dev server with live rebuilds during development
- Compiling and bundling frontend assets from a Go program
Topics
FAQ
- What is esbuild?
- An extremely fast JavaScript, TypeScript, JSX and CSS bundler with a CLI, JS and Go API. esbuild is a bundler for web code written in JavaScript, TypeScript, JSX, and CSS. It takes an entry point and its imports, resolves the module graph, and produces optimized output files. The project aims to make build tooling much faster than existing options, and it does this without relying on a persistent cache.
- Is esbuild free to use? What license does it have?
- esbuild is open source under the MIT license. Check the license terms before using it in commercial products.
- Is esbuild still maintained?
- Updated within 6 months. The last commit to esbuild was on Aug 9, 2026.
- What can I use esbuild for?
- Bundling a React or TypeScript frontend app for production Speeding up slow build pipelines in existing web projects Adding a fast dev server with live rebuilds during development Compiling and bundling frontend assets from a Go program
- Where can I get esbuild?
- The source code and installation instructions are on GitHub: https://github.com/evanw/esbuild
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A unified web development toolchain that bundles Vite, Vitest, Oxlint, Oxfmt, Rolldown and tsdown behind one `vp` CLI with runtime and package manager management.
A framework for building cross-platform desktop apps with JavaScript, HTML and CSS, based on Node.js and Chromium.
An open-source framework for building universal native apps with React that run on Android, iOS, and the web.
A high-performance JavaScript library for building interactive web maps that display tiles, vector data and markers from any source.
A JavaScript library for building multiplayer web apps where browsers find each other and connect directly via WebRTC, without running your own server.