Skip to content

Commit 59ced0d

Browse files
committed
Fix enum
1 parent c0611c8 commit 59ced0d

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
@@ -843,7 +843,7 @@ function tryGetModuleNameFromExports(options: CompilerOptions, targetFilePath: s
843843
for (const key of getOwnKeys(exports as MapLike<unknown>)) {
844844
if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) {
845845
const subTarget = (exports as MapLike<unknown>)[key];
846-
const mode2 = typeof subTarget === "string" ? endsWith(subTarget, "/") ? 1 /* Directory */ : stringContains(subTarget, "*") ? MatchingMode.Pattern : MatchingMode.Exact : MatchingMode.Exact;
846+
const mode2 = typeof subTarget === "string" ? endsWith(subTarget, "/") ? MatchingMode.Directory : stringContains(subTarget, "*") ? MatchingMode.Pattern : MatchingMode.Exact : MatchingMode.Exact;
847847
const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode2);
848848
if (result) {
849849
return result;

0 commit comments

Comments
 (0)