Skip to content

Commit 1deb713

Browse files
committed
Fix enum
1 parent 73b480e commit 1deb713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/moduleSpecifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ function tryGetModuleNameFromExports(options: CompilerOptions, targetFilePath: s
847847
for (const key of getOwnKeys(exports as MapLike<unknown>)) {
848848
if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) {
849849
const subTarget = (exports as MapLike<unknown>)[key];
850-
const mode2 = typeof subTarget === "string" ? endsWith(subTarget, "/") ? 1 /* Directory */ : stringContains(subTarget, "*") ? MatchingMode.Pattern : MatchingMode.Exact : MatchingMode.Exact;
850+
const mode2 = typeof subTarget === "string" ? endsWith(subTarget, "/") ? MatchingMode.Directory : stringContains(subTarget, "*") ? MatchingMode.Pattern : MatchingMode.Exact : MatchingMode.Exact;
851851
const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode2);
852852
if (result) {
853853
return result;

0 commit comments

Comments
 (0)