The Speedy & TSC-Compatible TypeScript Compiler, Powered by SWC.
tsc
is often slow, I want a command-line tool that can basically replace tsc
, but retain the API of tsc
.
npm i -g etsc
etsc # Compiles the current project (tsconfig.json in the working directory.)
etsc
supports subset of tsconfig.json
.
commonjs
es2015
Note:
CommonJS
orcommonjs
will outputcjs
, other config values will outputesm
.
es3
es5
es2015
es2016
es2017
es2018
es2019
es2020
es2021
es2022
Note: estc use
swc
to pre-compile the source code.
Output directory.
MIT © ULIVZ