Prev Next

Web / Typescript interview questions

How do I compile typescript files automatically with changes to file in real-time?

Using -watch or -w compiler option, we can enable auto compilation.

tsc -watch typescriptFile.ts

This option executes the compiler in watch mode, watch input files, and trigger recompilation on changes.

More Related questions...

Show more question and Answers...


Comments & Discussions