0.1.0 • Published 4 years ago
etsc v0.1.0
etsc
The Speedy & TSC-Compatible TypeScript Compiler, Powered by SWC.
Motivation
tsc is often slow, I want a command-line tool that can basically replace tsc, but retain the API of tsc.
Quick Start
npm i -g etsc
etsc # Compiles the current project (tsconfig.json in the working directory.)Compiler Options
etsc supports subset of tsconfig.json.
module
commonjses2015
Note:
CommonJSorcommonjswill outputcjs, other config values will outputesm.
target
es3es5es2015es2016es2017es2018es2019es2020es2021es2022
Note: estc use
swcto pre-compile the source code.
importHelpers
sourceMap
outDir
Output directory.
Author
MIT © ULIVZ