Skip to content

Commit

Permalink
fix: treat config file as ESM in Deno (#18158)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Sep 20, 2024
1 parent f969176 commit b5908a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,8 @@ export async function loadConfigFromFile(
return null
}

const isESM = isFilePathESM(resolvedPath)
const isESM =
typeof process.versions.deno === 'string' || isFilePathESM(resolvedPath)

try {
const bundled = await bundleConfigFile(resolvedPath, isESM)
Expand Down

0 comments on commit b5908a2

Please sign in to comment.