打字稿 noEmit 用例
Typescript noEmit use case
Typescript 中 noEmit
的用例是什么?我很感兴趣,因为我想看看我是否可以将它用于开发,我将编译和 运行 编译后的代码而不将它们输出到文件系统上,这样会更有效率。
编辑:也许这会很简单:"Can I use noEmit
tag in typescript to compile and run the code without outputting them onto the file system? If so, how would I do that?"
在tsc
只用于类型检查,不用于编译时使用。当其他工具(如 Webpack, Parcel or Rollup)负责编译您的代码时就是这种情况。
如果您对 运行 交互模式下的代码感兴趣,请查看 ts-node or ts-node-dev。
Typescript 中 noEmit
的用例是什么?我很感兴趣,因为我想看看我是否可以将它用于开发,我将编译和 运行 编译后的代码而不将它们输出到文件系统上,这样会更有效率。
编辑:也许这会很简单:"Can I use noEmit
tag in typescript to compile and run the code without outputting them onto the file system? If so, how would I do that?"
在tsc
只用于类型检查,不用于编译时使用。当其他工具(如 Webpack, Parcel or Rollup)负责编译您的代码时就是这种情况。
如果您对 运行 交互模式下的代码感兴趣,请查看 ts-node or ts-node-dev。