Skip to content

Commit 9c91929

Browse files
committed
chore: update
1 parent 49c0129 commit 9c91929

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/plugin-dts/src/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,7 @@ async function addExtension(
187187
let redirectPath = path;
188188

189189
// Only add extension if redirectPath is an absolute or relative path
190-
if (
191-
!isAbsolute(redirectPath) &&
192-
!redirectPath.startsWith('./') &&
193-
!redirectPath.startsWith('../')
194-
) {
190+
if (!isAbsolute(redirectPath) && !redirectPath.startsWith('.')) {
195191
return redirectPath;
196192
}
197193

0 commit comments

Comments
 (0)