IssueRaiser

Support conditional compilation

On codeplex this was a popular feature request: https://typescript.codeplex.com/workitem/111 https://typescript.codeplex.com/workitem/1926 Personally I think preprocessor directives like #if, #elif, #else #endif with possibility to specify symbol to compiler would be very useful. And a way to mark function (or ambient function declaration) as Conditional (something like [ConditionalAattribute](http://msdn.microsoft.com/en-us/library/system.diagnostics.conditionalattribute%28v=vs.110%29.aspx) in C#) would be great improvement too. I have lot's of `console.log` like function calls that decrease performance of my application and ability to easily remove all calls to this function would be great.

Posted by mpawelski on Aug 13, 2014, 9:59 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.9,000 issues0 comments

support (Software)

Support conditional compilation

mpawelskiAug 13, 2014, 9:59 PM

On codeplex this was a popular feature request: https://typescript.codeplex.com/workitem/111 https://typescript.codeplex.com/workitem/1926 Personally I think preprocessor directives like #if, #elif, #else #endif with possibility to specify symbol to compiler would be very useful. And a way to mark function (or ambient function declaration) as Conditional (something like [ConditionalAattribute](http://msdn.microsoft.com/en-us/library/system.diagnostics.conditionalattribute%28v=vs.110%29.aspx) in C#) would be great improvement too. I have lot's of `console.log` like function calls that decrease performance of my application and ability to easily remove all calls to this function would be great.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue