swc Command Examples

JavaScript and TypeScript compiler written in Rust. More information: https://swc.rs.

swc {{path/to/file}}

swc {{path/to/file}} --watch

swc {{path/to/input_file}} --out-file {{path/to/output_file}}

swc {{path/to/input_directory}} --out-dir {{path/to/output_directory}}

swc {{path/to/input_directory}} --config-file {{path/to/.swcrc}}

swc {{path/to/input_directory}} --ignore {{path/to/ignored_file1 path/to/ignored_file2 ...}}