简体   繁体   中英

how do i view generated javascript from typescript in WebStorm?

As I understand typescript gets converted to javascript. I have a file MyTypeScript.ts in a webstorm project. I want to be able to see my generated javascript. How do I do this in Webstorm?

设置一个文件监视程序 ,您将在项目视图中看到.ts.js文件。

Install TypeScript with npm if you haven't done so already: npm install -g typescript

Once that is done, go into WebStorm preferences, navigate to File Watchers and set up a new TypeScript watch. The program field is the path to your installed TypeScript.

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