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); }