From ed408be3fc672674fa32391e559933f152a90155 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Tue, 4 Jun 2024 18:03:03 +0200 Subject: [PATCH] fix: handle relative path index resolution --- src/url_utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/url_utils.ts b/src/url_utils.ts index 8c63279..33d5c16 100644 --- a/src/url_utils.ts +++ b/src/url_utils.ts @@ -87,7 +87,7 @@ export function getIndexUrl(baseUrl: URL): URL { * ``` */ export function getSourceUrl(filePath: string, baseUrl: URL): URL { - if (filePath === '/') { + if (filePath === '/' || filePath === './') { return getIndexUrl(baseUrl) }