Fix isExternalLibraryImport for classic resolution (#51840)

This commit is contained in:
Sheetal Nandi
2022-12-09 14:44:35 -08:00
committed by GitHub
parent 4978b3ebeb
commit 9d7df99414

View File

@@ -2842,7 +2842,7 @@ export function classicNameResolver(moduleName: string, containingFile: string,
// No originalPath because classic resolution doesn't resolve realPath
return createResolvedModuleWithFailedLookupLocations(
resolved && resolved.value,
/*isExternalLibraryImport*/ false,
resolved?.value && pathContainsNodeModules(resolved.value.path),
failedLookupLocations,
affectingLocations,
diagnostics,