Skip to content

Commit

Permalink
fix(config): don't use file url for external files with cjs output (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Aug 12, 2022
1 parent 1cf5c78 commit 73ad707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Expand Up @@ -980,7 +980,7 @@ async function bundleConfigFile(
if (path.relative(idPkgDir, fileName).startsWith('..')) {
return {
// normalize actual import after bundled as a single vite config
path: pathToFileURL(idFsPath).href,
path: isESM ? pathToFileURL(idFsPath).href : idFsPath,
external: true
}
}
Expand Down

0 comments on commit 73ad707

Please sign in to comment.