Options (3)
-w, --watchbooleanTranspile the input file every time it is changed
Example:
swc {{path/to/file}} {{[-w|--watch]}}-o, --out-filebooleanTranspile a specified input file and output to a specific file
Example:
swc {{path/to/input_file}} {{[-o|--out-file]}} {{path/to/output_file}}-d, --out-dirbooleanTranspile a specified input directory and output to a specific directory
Example:
swc {{path/to/input_directory}} {{[-d|--out-dir]}} {{path/to/output_directory}}Examples (6)
Transpile a specified input file and output to `stdout`
swc path/to/fileTranspile the input file every time it is changed
swc path/to/file [-w|--watch]Transpile a specified input file and output to a specific file
swc path/to/input_file [-o|--out-file] path/to/output_fileTranspile a specified input directory and output to a specific directory
swc path/to/input_directory [-d|--out-dir] path/to/output_directoryTranspile a specified input directory using a specific configuration file
swc path/to/input_directory --config-file path/to/.swcrcIgnore files in a directory specified using glob path
swc path/to/input_directory --ignore path/to/ignored_file1 path/to/ignored_file2 ...made by @shridhargupta | data from tldr-pages