Skip to content

Commit 22084a6

Browse files
authored
fix(config): use file url for import path (fixes #9471) (#9473)
1 parent c5e7895 commit 22084a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ async function bundleConfigFile(
976976
if (path.relative(idPkgDir, fileName).startsWith('..')) {
977977
return {
978978
// normalize actual import after bundled as a single vite config
979-
path: idFsPath,
979+
path: pathToFileURL(idFsPath).href,
980980
external: true
981981
}
982982
}

0 commit comments

Comments
 (0)