We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20a9051 commit 3381742Copy full SHA for 3381742
packages/utils/src/utils.ts
@@ -371,6 +371,9 @@ export function isAbsolute(url: string) {
371
}
372
373
export function transformUrl(resolvePath: string, curPath: string) {
374
+ if (curPath.startsWith('http') || curPath.startsWith('//')) {
375
+ return curPath;
376
+ }
377
const baseUrl = new URL(resolvePath, location.href);
378
const realPath = new URL(curPath, baseUrl.href);
379
return realPath.href;
0 commit comments