Difference between createEmitAndSemanticDiagnosticsBuilderProgram and createProgram #46
Replies: 1 comment 1 reply
-
Regarding incremental compilation, I would refer you to the TS docs to understand what it's used for. (Place to start: https://www.typescriptlang.org/tsconfig#incremental) Incremental compilation is very helpful in that it can save time, as it monitors modification times on files to only recompile what is necessary during compile time. To do that, there are some some slight differences in the compiler host. Here is my simplistic answer with regard to the difference in the programs: A A More info here: https://github.com/microsoft/TypeScript-wiki/blob/master/Using-the-Compiler-API.md#writing-an-incremental-program-watcher As for the different Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
A typescript wiki on incremental compiling says this about
createEmitAndSemanticDiagnosticsBuilderProgram
To be honest, I can't see clearly what the difference is between using
createProgram(...,oldProgram,...)
andbecause I thought that was what using
createProgram(...,oldProgram,...)
already did.Can anybody clarify?
Beta Was this translation helpful? Give feedback.
All reactions