简体   繁体   中英

typescript compilation errors never stop compilation

Below is the content of the index.ts file that I am transpiling to js with default settings of tsconfig --init (tsc v3.2.4)

console.log("foo");
these crazy typos will compile all though compilation raises errors
console.log("bar")

The typescript compiler will output a build whatever the input may be.

Is there a way to control this ?

For example: make typescript compiler output nothing if errors are raised during compilation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM