Skip to content

Commit

Permalink
fix(config): treat all files as ESM on deno (#18081)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister authored Sep 17, 2024
1 parent caaa683 commit c1ed8a5
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 @@ -1508,7 +1508,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 c1ed8a5

Please sign in to comment.