Skip to content

Commit 6b825a0

Browse files
Addressed feedback.
1 parent 2ca8dec commit 6b825a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/compiler/module/cache.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"sync"
77

88
"github.com./microsoft/typescript-go/internal/ast"
9-
"github.com./microsoft/typescript-go/internal/collections"
109
"github.com./microsoft/typescript-go/internal/compiler/packagejson"
1110
"github.com./microsoft/typescript-go/internal/core"
1211
"github.com./microsoft/typescript-go/internal/tspath"
@@ -19,7 +18,11 @@ type caches struct {
1918
typeReferenceDirectiveCache *resolutionCache[*ResolvedTypeReferenceDirective]
2019
packageJsonInfoCache *packagejson.InfoCache
2120
resolvedTypeReferenceDirectiveLookupLocations map[*ResolvedTypeReferenceDirective]*LookupLocations
22-
parsedPatternsCache map[*collections.OrderedMap[string, []string]]parsedPatterns
21+
22+
// Cached representation for `core.CompilerOptions.paths`.
23+
// Doesn't handle other path patterns like in `typesVersions`.
24+
parsedPatternsForPathsOnce sync.Once
25+
parsedPatternsForPaths *parsedPatterns
2326
}
2427

2528
func newCaches(

0 commit comments

Comments
 (0)