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.
fileToBuiltUrl
1 parent b95fa2a commit 73b6d24Copy full SHA for 73b6d24
packages/vite/src/node/plugins/asset.ts
@@ -449,10 +449,11 @@ export async function urlToBuiltUrl(
449
if (checkPublicFile(url, topLevelConfig)) {
450
return publicFileToBuiltUrl(url, topLevelConfig)
451
}
452
- const file =
+ const file = normalizePath(
453
url[0] === '/'
454
? path.join(topLevelConfig.root, url)
455
- : path.join(path.dirname(importer), url)
+ : path.join(path.dirname(importer), url),
456
+ )
457
return fileToBuiltUrl(
458
pluginContext,
459
file,
0 commit comments