From 39e832da55f198c0d854cf8c2659cbbb047ac664 Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Tue, 23 Jun 2015 10:51:00 -0700 Subject: [PATCH] use existing information about module resolutions --- src/compiler/program.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 878f4eda322..f187b68ef5b 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -613,6 +613,8 @@ namespace ts { if (existingResolutions && hasProperty(existingResolutions, moduleNameExpr.text)) { let fileName = existingResolutions[moduleNameExpr.text]; + // use existing resolution + setResolvedModuleName(file, moduleNameExpr, fileName); if (fileName) { findModuleSourceFile(fileName, moduleNameExpr); }