Visual Studio 2015 RC does not create sourcemap when saving Typescript file

后端 未结 3 1464
Happy的楠姐
Happy的楠姐 2021-01-02 02:44

I\'m very new to typescript and am trying it out in the latest Visual Studio 2015 RC.

At the moment it compiles the typescript file automatically and creates the und

3条回答
  •  独厮守ぢ
    2021-01-02 03:07

    I found that by unloading the project and editing the 'xproj' file, if I add the following xml under the project node (before the property group containing 'VSToolsPath'):

    
        ES5
        true
        false
        AMD
        false
        
        
        false
        true
        
        
        true
    
    

    This fixed the issue and the .map files were generated on save (neatly under the js files). This enables me to hit my typescript breakpoints in Visual Studio (only with IE unfortunately).

    Another beneficial side effect is that I can now export modules (because of the 'TypeScriptModuleKind' => AMD setting).

提交回复
热议问题