talira

An extremely fast bundler for the web

open sourceMITself-hostablefree

esbuild is a JavaScript, TypeScript and CSS bundler and minifier written in Go, built to be 10 to 100 times faster than other web build tools without needing a cache. It bundles ESM and CommonJS modules and CSS, including CSS modules, handles TypeScript and JSX out of the box, and does tree shaking, minification and source maps. It has a local development server, watch mode and plugins, and you drive it from the command line, from JavaScript or from Go. It strips TypeScript types without checking them, so you run tsc alongside it for type checking. Its author maintains it and makes periodic releases, but isn't doing active feature development and plans for it to reach a mostly stable state; code splitting is still described as primitive.

Ways to install

Package managers

Problems it solves

  • my JavaScript build is too slow
  • bundle TypeScript and JSX for the browser quickly
  • minify JavaScript and CSS with source maps
  • bundle a Node.js app or library into one file
  • a fast bundler I can call from a Go or JavaScript build script

Features

  • extreme speed without a cache
  • JavaScript, CSS, TypeScript and JSX built in
  • CLI, JavaScript and Go APIs
  • bundles ESM and CommonJS modules
  • bundles CSS including CSS modules
  • tree shaking, minification and source maps
  • local server and watch mode
  • plugin API with resolve and load callbacks
  • browser-based playground and bundle size analyzer

Limitations

  • No TypeScript type checking: run tsc separately.2
  • Code splitting is still primitive.3
  • No support for other frontend languages such as Svelte, Vue or Angular in the core; use plugins.3
  • Not doing active feature development; the author makes maintenance releases.3

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what esbuild does.

  1. webpack A bundler for javascript and friends
  2. Lightning CSS An extremely fast CSS parser, transformer, bundler, and minifier
  3. SWC Rust-based platform for the Web: a super-fast TypeScript and JavaScript compiler
  4. Vite Next Generation Frontend Tooling
  5. Babel Babel is a JavaScript compiler. Use next generation JavaScript, today.

Compare esbuild with the top 3