Typescript “target”: “es5”

Sami C.
1 min readFeb 25, 2019

--

Since Internet Explorer doesn’t support es6, there is an option inside the typescript config (tsconfig.json) to set the target to es5.

What does this do?

Once the target has been set to a specific ECMAScript version the compiler will tell you if you have any code that is not compatible with the current target version…which is awesome!

These are the target options that can be set

"ES3" (default), "ES5", "ES6"/"ES2015", "ES2016", "ES2017" or "ESNext"

ESNext will take the latest version.

Happy coding!

--

--

Sami C.
Sami C.

Written by Sami C.

Freelance Software Engineer

No responses yet