esbuild.do
Build JavaScript at the Edge
Bundle, transform, and minify JavaScript/TypeScript at the edge with instant HMR and automatic tree-shaking for production-ready builds.
import { Esbuild } from 'esbuild.do' // Transform TypeScript at the edge in <10mson.Request.to.API(async $ => { const result = await Esbuild.transform({ code: $.body, loader: 'tsx', minify: true }) return $.Response.json({ code: result.code, buildTime: result.duration })}) // Auto-rebuild and hot reload on file changeson.File.changed($ => $.Esbuild.rebuild().then(b => $.DevServer.reload(b)))
One of 48 primitives
esbuild.do sits in Build: ship from code, cli or mcp. Every .do shares one grammar, Business-as-Code, and one SDK.
Data
Records, vocabulary and search
Insight
Measure, test and trace
Build
Ship from code, CLI or MCP
- SDK
- CLI
- MCP
- Integrations
- Devs
- Studio
- Worker
- esbuild
Frequently asked questions
Esbuild uses native Go (100x faster than JavaScript bundlers) with edge execution for zero cold starts. Transform TypeScript/JSX in <10ms vs 10-60 seconds with traditional bundlers like Webpack.
Yes, full TypeScript type stripping, JSX/TSX, decorators, class fields, and all ES2015+ features. Source maps, declaration files, and watch mode work seamlessly.
Automatic dead code elimination removes unused exports, reducing bundle sizes by 40-70%. Code splitting generates optimal chunks with shared dependencies extracted automatically.
Yes, import plugins for CSS modules, SASS, Vue, Svelte, or custom loaders that run at the edge. Common plugins (CSS, images, web workers) are built-in and optimized.
Built-in dev server with instant HMR preserving application state and perfect source map support. Watch mode triggers rebuilds in <5ms for incremental changes.