Skip to content

Commit 80c8699

Browse files
committed
feat: also check legacy suffix for strict folder matching
1 parent 9426b45 commit 80c8699

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/resolve/metadataResolver.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,11 @@ const resolveTypeFromStrictFolder =
385385
.filter(folderTypeFilter(fsPath))
386386
.find(
387387
(type) =>
388-
// any of the following 3 options is considered a good match
389-
isMixedContentOrBundle(type) || suffixMatches(type, fsPath) || childSuffixMatches(type, fsPath)
388+
// any of the following options is considered a good match
389+
isMixedContentOrBundle(type) ||
390+
suffixMatches(type, fsPath) ||
391+
childSuffixMatches(type, fsPath) ||
392+
legacySuffixMatches(type, fsPath)
390393
);
391394
};
392395

0 commit comments

Comments
 (0)