打字稿编译错误永远不会停止编译

时间:2019-06-30 18:31:06

标签: typescript

下面是我正在默认设置为tsconfig --init(tsc v3.2.4)转换为js的index.ts文件的内容

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

无论输入内容如何,​​打字稿编译器都会输出一个构建。

有办法控制吗?

例如:如果在编译过程中出现错误,则使打字稿编译器不输出任何内容。

1 个答案:

答案 0 :(得分:1)