All apps/SWC

SWC

swc

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

Runs as swc|macOS, Linux, Windows

Autocomplete

Fig spec, with what the manifest adds · 20 options
Published once and never changed; check the digest before caching
sha256
7231fd1c64dd68680bf73f0ca0309c8a851e4787109633176c7d2d6ff19ff388
Size
4970 bytes
OptionsOn swc itself
--filename-f
Filename to use when reading from stdin. This will be used in source maps and errors <FILE>
--config-file
Path to a .swcrc file to use <CONFIG_FILE>
--env-name
The name of the 'env' to use when loading configs and plugins. Defaults to the value of SWC_ENV, or else NODE_ENV, or else development <ENV_NAME>
--no-swcrc
Whether or not to look up .swcrc files
--ignore
List of glob paths to not compile <PATH>
--only
List of glob paths to only compile <PATH>
--watch-w
Watch for changes and recompile
--quiet-q
Suppress compilation output
--source-maps-s
Generate source maps <SOURCE_MAP>
--source-map-target
Define the file for the source map <FILE>
--source-file-name
Set sources[0] on returned source map
--source-root
The root from which all sources are relative
--out-file-o
Compile all input files into a single file <OUTPUT_FILE>
--out-dir-d
Compile an input directory of modules into an output directory <OUTPUT_DIR>
--copy-files-D
When compiling a directory, copy over non-compilable files
--include-dotfiles
Include dotfiles when compiling and copying non-compilable files
--config-C
Override a config from .swcrc file <CONFIG_FILE>
--sync
Invoke swc synchronously. Useful for debugging
--log-watch-compilation
Log a message when a watched file is successfully compiled
--extensions
Log a message when a watched file is successfully compiled
ArgumentsPositional, in order
<input>
· optional · repeatable · filepaths