Skip to content

Commit

Permalink
chore: revert isFilePathESM change
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Feb 14, 2024
1 parent 626b978 commit 683c135
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/ssr/fetchModule.ts
Expand Up @@ -83,8 +83,7 @@ export async function fetchModule(
throw err
}
const file = pathToFileURL(resolved.id).toString()
// NOTE: fileURLだとキャッシュにヒットしないと思う
const type = isFilePathESM(resolved.id, server.config.packageCache)
const type = isFilePathESM(file, server.config.packageCache)
? 'module'
: 'commonjs'
return { externalize: file, type }
Expand Down

0 comments on commit 683c135

Please sign in to comment.