All apps/esbuild

esbuild

esbuild

An extremely fast JavaScript bundler.

Runs as esbuild|macOS, Linux, Windows|esbuild.github.io

Command form

ai-draft · 2 tasks · 11 fields

Bundle entry points into output files. Plugins, define/inject, mangling and server options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui esbuild
Bundle JavaScriptExample values, fixed in this page — nothing here reaches a terminal
Basic
Entry points*
file
Output file*
file
Bundle dependencies
--bundle
Minify
--minify
Advanced
Output format
3 choicesenum
Platform
3 choicesenum
Target
string
TasksEach one presets the form for one job
Bundle to one file
entriesoutfilebundleminifyformatplatformtarget
Bundle with code splitting
entriesoutdirbundlesplittingformatminify
ParametersOnly these flags are editable in the form
Entry points
path · positional 0 · repeatable
Output file
For a single entry point.
path
--outfile
Output directory
For multiple entry points.
path
--outdir
Bundle dependencies
boolean
--bundle
Minify
boolean
--minify
Output format
enum
--formatiifecjsesm
Platform
enum
--platformbrowsernodeneutral
Target
ES version or browser version, e.g. es2020 or chrome101.
string
--target
External modules
string · repeatable
--external
Code splitting
boolean
--splitting
Metafile
path
--metafile
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed esbuild against its version. A form that does not match your version is not offered.