Skip to content

Commit

Permalink
chore: fix watch mode crash (TODO investigate watch mode properly) (#197
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mikearnaldi committed Jun 22, 2022
1 parent cb4c29f commit 7b5c234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/tsbuildPublic.ts
Expand Up @@ -1774,8 +1774,8 @@ namespace ts {
function hasSameBuildInfo(state: SolutionBuilderState, buildInfoCacheEntry: BuildInfoCacheEntry, seenRefs: Set<ResolvedConfigFilePath>, resolvedConfig: ParsedCommandLine, resolvedRefPath: ResolvedConfigFilePath) {
if (seenRefs.has(resolvedRefPath)) return false;
seenRefs.add(resolvedRefPath);
const refBuildInfo = state.buildInfoCache.get(resolvedRefPath)!;
if (refBuildInfo.path === buildInfoCacheEntry.path) return true;
const refBuildInfo = state.buildInfoCache.get(resolvedRefPath);
if (refBuildInfo && refBuildInfo.path === buildInfoCacheEntry.path) return true;

if (resolvedConfig.projectReferences) {
// Check references
Expand Down

0 comments on commit 7b5c234

Please sign in to comment.