Controlling compiler output

The TypeScript compiler has a very robust set of features when it comes to controlling the final results of the compiler. The compiler is built in a scalable manner that allows us to compile multiple source files at once as well as controlling their output directory or path. We will also discuss creating source maps that help us when debugging our applications.

JavaScript output

Up until this point, we have only been working with compiling single TypeScript files at a time. As applications grow in size though, it is very important to separate our code into maintainable segments. When writing code for a C# application, it is common to separate code files by class. JavaScript conventions vary in how code is segmented. If ...

Get TypeScript Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.