Typescript seems to work fine - but how do I compile ?
Just tried out Typescript. Happy to see autocompletion and navigation work nicely, but how do I compile to js? Do I setup that myself, or should there be a function somewhere (I'm new to Webstorm)?
Edit: Ok, I run tsc mytypescript/app.ts from the command prompt. That's the way?
Thanks
请先登录再写评论。
Yes, we do not support built-in compilation yet.
Regards,
Konstantin
Ok, np, another thing : I tried to debug and set a breakpoint within my ts (compiled with tsc --sourcemap). Did not work. But when I added the breakpoint within the compiled js it worked. And the sourcemap pointed me to the correct place in the ts. A little odd. Just an EAP-thing?
Thanks
If code executed on page load and sourcemap backed breakpoint is not working — it is known bug. If code executed on event — please attach test typescript.