diff --git a/src/compiler/ts-compiler.ts b/src/compiler/ts-compiler.ts index 0543708566..337cffbc72 100644 --- a/src/compiler/ts-compiler.ts +++ b/src/compiler/ts-compiler.ts @@ -170,7 +170,8 @@ export class TsCompiler implements TsCompilerInstance { } if (this._languageService) { this._logger.debug({ fileName }, 'getCompiledOutput(): compiling using language service') - + // Make sure the language service gets the updated compiler options + this._projectVersion++ // Must set memory cache before attempting to compile this._updateMemoryCache(fileContent, fileName) const output: EmitOutput = this._languageService.getEmitOutput(fileName)