Typescript: 当出现错误时,不编译文件成js文件

tsconfg.json文件中添加如下选项

"noEmitOnError": true,                            /* Disable emitting files if any type checking errors are reported. */
posted @ 2021-10-26 16:25  胸怀丶若谷  阅读(166)  评论(0)    收藏  举报