Visual Studio TypeScript Options

前端 未结 3 1349
挽巷
挽巷 2020-12-15 06:35

How do I tell the TypeScript compiler to generate amd modules (--module amd) from within Visual Studio.

Thanks.

3条回答
  •  [愿得一人]
    2020-12-15 07:19

    Becouse this problem is still actual even for TS 1.0 and WebEssentials for VS 2013 Update 3, check this solution here: http://icanmakethiswork.blogspot.com/2014/02/typescript-and-requirejs-keep-it-simple.html Or shortly:

    1) Open project file.

    2) find this lines:

      
    

    3)Insert this lines before:

        
        amd
      
      
        amd
      
    

提交回复
热议问题