Complete toolkit for esbuild v0.28 JavaScript bundler providing CLI, JavaScript API, and Go API access for bundling, minification, transformation, and development workflows with support for TypeScript, JSX, CSS modules, tree shaking, source maps, watch mode, and local development server without requiring npm installation via npx execution. Use when bundling JavaScript/TypeScript projects, configuring build pipelines, setting up watch mode for development, or transforming code without npm dependencies.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
esbuild-0-28-0
description
Complete toolkit for esbuild v0.28 JavaScript bundler providing CLI, JavaScript API, and Go API access for bundling, minification, transformation, and development workflows with support for TypeScript, JSX, CSS modules, tree shaking, source maps, watch mode, and local development server without requiring npm installation via npx execution. Use when bundling JavaScript/TypeScript projects, configuring build pipelines, setting up watch mode for development, or transforming code without npm dependencies.
esbuild v0.28
Overview
esbuild is an extremely fast JavaScript bundler written in Go that compiles to native code. It bundles ESM and CommonJS modules, transforms TypeScript and JSX to JavaScript, minifies output, generates source maps, and supports CSS bundling including CSS modules. It provides three APIs: CLI, JavaScript (Node.js), and Go — all sharing the same concepts and parameters.
esbuild is 10-100x faster than other bundlers (webpack, rollup, parcel) because it uses parallelism across all CPU cores, writes everything from scratch without third-party dependencies, and touches the AST only three times during compilation. It does not perform type checking — run tsc --noEmit separately for that.
When to Use
Bundling JavaScript/TypeScript/JSX projects for browser or Node.js
Transforming TypeScript to JavaScript without type-checking overhead
Minifying production bundles with source map generation
Setting up fast development workflows with watch mode and local serve
Building CLI tools or libraries that need programmatic bundling via JS or Go API
Converting modern JavaScript syntax for older browser targets
Bundling CSS including @import resolution and CSS modules
Installation / Setup
Via npm (recommended)
npm install --save-exact --save-dev esbuild
Run from node_modules/.bin:
./node_modules/.bin/esbuild --version
Via npx (no install needed)
npx esbuild@0.28.0 --version
Direct binary download (Unix)
curl -fsSL https://esbuild.github.io/dl/v0.28.0 | sh
Or download directly from npm registry without npm installed:
curl -O https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.0.tgz
tar xzf ./linux-x64-0.28.0.tgz
./package/bin/esbuild
Build from source
Requires Go compiler:
git clone --depth 1 --branch v0.28.0 https://github.com/evanw/esbuild.git
cd esbuild
go build ./cmd/esbuild
Cross-compile for other platforms:
GOOS=linux GOARCH=386 go build ./cmd/esbuild
Deno support
import * as esbuild from'https://deno.land/x/esbuild@v0.28.0/mod.js'let result = await esbuild.transform('let x: number = 1', { loader: 'ts' })
console.log(result)
await esbuild.stop()
WebAssembly version (unsupported platforms / browser)
npm install --save-exact esbuild-wasm
Note: WASM is ~10x slower than native. Use only when native binary is not available.