<p dir="auto">It would be really nice to have a way to get the compiler options into the code (like precompilation ifdef or something like that).<br>
The main reason would be to make conditional code (=shim) conditionnally to the target ES version.</p>
<p dir="auto">In term of code scalability, this would also help smooth transition to ES6.</p>
<p dir="auto">On codeplex this was a popular feature request:</p>
<p dir="auto"><a href="https://typescript.codeplex.com/workitem/111" rel="nofollow">https://typescript.codeplex.com/workitem/111</a><br>
<a href="https://typescript.codeplex.com/workitem/1926" rel="nofollow">https://typescript.codeplex.com/workitem/1926</a></p>
<p dir="auto">Personally I think preprocessor directives like #if, #elif, #else #endif with possibility to specify symbol to compiler would be very useful.<br>
And a way to mark function (or ambient function declaration) as Conditional (something like <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.conditionalattribute%28v=vs.110%29.aspx" rel="nofollow">ConditionalAattribute</a> in C#) would be great improvement too.<br>
I have lot's of <code class="notranslate">console.log</code> like function calls that decrease performance of my application and ability to easily remove all calls to this function would be great.</p>