TypeScript Compile target in visual studio

Hi,

Typescript can be compiled to either EcmaScript 3 or EcmaScript 5 version of javascript. Some of the older browsers still use EcmaScript 3 , so chances are you may need to change the compile target to ES3 from ES5 (default). Followings is the way you change the TypeScript Compile target to EcmaScript 3 in visual studio 2013.

  • Right Click on the project and click on properties.

ts1

  • Click on TypeScript Build on the properties page.

ts2

  • Change the TypeScript version.

ts3

Leave a Reply

Your email address will not be published. Required fields are marked *