Transforming TypeScript into JavaScript

前端 未结 11 1295
再見小時候
再見小時候 2020-12-08 02:01

I\'m wondering how is it possible to transform the TypeScript into JavaScript in a cross platform manner. I\'m aware about availability of node package manager for typescrip

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 02:48

    I've been playing around with this, and can compile TypeScript with javascript with the following code:

    
    
    
    

    It's not exactly ideal though. I'm trying to get something running so I can convert TypeScript to JS within C# (using Javascript .NET), but i'm getting a stack overflow on the ts.addUnit call.

提交回复
热议问题