All apps/SWC

SWC

swc

Super-fast Rust-based compiler producing JavaScript from modern JavaScript and TypeScript.

Runs as swc|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 9 fields

Compile files or a directory to JavaScript. Config overrides and extra debugging flags are not in this form.

Opens the form; the finished command lands at your prompt, unrun
otty gui swc
Compile with swcExample values, fixed in this page — nothing here reaches a terminal
Basic
Input files or directories*
any
Output directory*
directory
Watch for changes
--watch
Source maps
string
Advanced
Copy non-compilable files
--copy-files
TasksEach one presets the form for one job
Compile directory
inputout_dircopy_filessource_mapswatch
Compile to one file
inputout_filesource_maps
ParametersOnly these flags are editable in the form
Output file
path
--out-file-o
Output directory
path
--out-dir-d
Watch for changes
boolean
--watch-w
Source maps
string
--source-maps-struefalseinlineboth
Copy non-compilable files
boolean
--copy-files-D
Config file (.swcrc)
path
--config-file
Ignore .swcrc files
boolean
--no-swcrc
Quiet
boolean
--quiet-q
Input files or directories
path · positional 0 · repeatable
SourcesEvery flag above is checked against these
fig
completion

github.com

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