Skip to content

Commit 939f761

Browse files
committed
temp
1 parent 73e6924 commit 939f761

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/compiler/resolutionCache.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,9 @@ export function createResolutionCache(
796796
}
797797

798798
function getValidResolution<T extends ResolutionWithFailedLookupLocations>(resolution: T | undefined) {
799+
// TODO: (sheetal) this isnt correct because after the new resolution is calculated and its still unresolved with globalCachePass:
800+
// it will mark new resolution as invalidated as well
801+
// (unresolvedResolutionsWithGlobalCachePassAreInvalidated && resolution.globalCacheResolution && isUnresolvedOrResolvedToJs(resolution as ResolvedModuleWithFailedLookupLocations));
799802
return isInvalidatedResolution(resolution) ? undefined : resolution;
800803
}
801804

@@ -1395,6 +1398,8 @@ export function createResolutionCache(
13951398

13961399
// filePath is for the projectReference and the containing file is from this project reference, invalidate the resolution
13971400
resolvedProjectReference.commandLine.fileNames.forEach(f => removeResolutionsOfFile(resolutionHost.toPath(f)));
1401+
1402+
// TODO: (sheetal) this is not correct as we would want to instead update to re-evaluate redirected-references
13981403
}
13991404

14001405
function removeResolutionsOfFile(filePath: Path, syncDirWatcherRemove?: boolean) {

0 commit comments

Comments
 (0)