fix: handle relative path index resolution
This commit is contained in:
parent
8fff67d358
commit
ed408be3fc
|
@ -87,7 +87,7 @@ export function getIndexUrl(baseUrl: URL): URL {
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
export function getSourceUrl(filePath: string, baseUrl: URL): URL {
|
export function getSourceUrl(filePath: string, baseUrl: URL): URL {
|
||||||
if (filePath === '/') {
|
if (filePath === '/' || filePath === './') {
|
||||||
return getIndexUrl(baseUrl)
|
return getIndexUrl(baseUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue