diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index 55374774da6ecc..f28e89d92c167a 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -975,7 +975,7 @@ async function bundleConfigFile( if (path.relative(idPkgDir, fileName).startsWith('..')) { return { // normalize actual import after bundled as a single vite config - path: idFsPath, + path: pathToFileURL(idFsPath).href, external: true } }