Transpile a TypeScript file in memory

被刻印的时光 ゝ 提交于 2021-02-08 10:01:55

问题


I am looking for a CLI tool that can run a .ts file directly, without writing to a file. That would mean it transpiles in memory, and then somehow passes that data to the node.js executable. Does such an executable exist?


回答1:


Does such an executable exist?

Yes. Its called ts-node: https://github.com/TypeStrong/ts-node



来源:https://stackoverflow.com/questions/44752995/transpile-a-typescript-file-in-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!