etsc
v0.1.0
Published
The Speedy & TSC-Compatible TypeScript Compiler, Powered by SWC.
Downloads
3,034
Maintainers
Readme
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
commonjs
es2015
Note:
CommonJS
orcommonjs
will outputcjs
, other config values will outputesm
.
target
es3
es5
es2015
es2016
es2017
es2018
es2019
es2020
es2021
es2022
Note: estc use
swc
to pre-compile the source code.
importHelpers
sourceMap
outDir
Output directory.
Author
MIT © ULIVZ