From e61d812cbb7ea2adab7aaecd1f0da2ebfc296962 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 7 May 2021 16:58:41 -0700 Subject: [PATCH] Update the type reference cache with correct project options (#44004) --- src/compiler/tsbuildPublic.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 2a2b39cee82..ec2097dd955 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -849,6 +849,7 @@ namespace ts { state.projectCompilerOptions = config.options; // Update module resolution cache if needed state.moduleResolutionCache?.update(config.options); + state.typeReferenceDirectiveResolutionCache?.update(config.options); // Create program program = host.createProgram(