This project is read-only.

Compile on Save and Export AMD Modules

Topics: General
Jan 28, 2013 at 10:29 PM

Using the new Compile on Save feature in 0.8.2, is it possible to have Visual Studio generate AMD modules equivalent to using the "--modules AMD" compiler option?

I've edited the project file and all I see are properties for TypeScriptTarget, TypeScriptIncludeComments and TypeScriptSourceMap.



Jan 29, 2013 at 5:03 PM

I haven't tried it, but I bet you can follow but use <TypeScriptModuleKind>AMD</TypeScriptModuleKind>.

Jan 29, 2013 at 5:59 PM

Thanks cretz, I added <TypeScriptModuleKind>AMD</TypeScriptModuleKind> as you suggested.  This causes visual studio to output the correct AMD modules when I build the project, but still outputs non-amd javascript when it compiles on save.   Looks like it may be a bug in the compile on save feature.

Feb 4, 2013 at 6:07 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.