I have a c# MVC project with a fair amount of TypeScript source, which takes around 5 seconds to compile. Whenever we build the project, the TypeScript recompiles, even if nothing has changed (e.g. a referenced assembly changes, so the c# needs to recompile, but this shouldn't force the TypeScript to recompile).
Is there a way to make it so TypeScript compilation is skipped if nothing changes?
visual studio does not support TypeScript compiler option named –watch, which run the compiler in watch mode. Watch input files and trigger recompilation on changes. For more information, please refer to:
https://www.typescriptlang.org/docs/handbook/compiler-options-in-msbuild.html
https://www.typescriptlang.org/docs/handbook/compiler-options.html