JavaScript bundler and minifier with extreme speed through Go-based parallelism. Version 0.25.2 (pre-release) supports ESM, CJS, TypeScript, CSS bundling, and code splitting. Unlike Webpack or Rollup, esbuild is designed for rapid builds (10-100x faster) but lacks plugin ecosystem depth and advanced tree-shaking. Weekly releases.
npm install esbuild-try-operator-proposalNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Bundles an entry point with source maps, targeting Node 18 ESM.
Use 'define' with JSON.stringify values or use the 'inject' plugin for complex replacements.
Use with core-js or a polyfill service for older targets.
Use the 'inject' feature or write a plugin to prepend/append content.
Consider using postcss with esbuild for advanced CSS processing.
Use 'context' for incremental builds: const ctx = await context({...}); await ctx.rebuild(); await ctx.dispose();npm install esbuild
Use define: { 'process.env.NODE_ENV': '"production"' }Install a plugin like esbuild-plugin-vue or use Vite instead.
Use import { build } from 'esbuild'; not import esbuild from 'esbuild';No dependency data recorded yet.