How to minify & transpile JS/TS
Run esbuild right in your browser to transpile TypeScript to JavaScript and minify it — fast, and nothing leaves your device.
Steps
- Paste your code (JavaScript or TypeScript).
- Toggle Minify on or off, then click Bundle / minify. The first run loads the esbuild engine (a one-time wasm load).
- Copy or download the result as
bundle.js.
Type annotations and modern syntax are transpiled down to ES2017. Syntax errors are reported with a clear message.