We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isFilePathESM
1 parent 7440191 commit 7b15607Copy full SHA for 7b15607
packages/vite/src/node/ssr/fetchModule.ts
@@ -77,7 +77,7 @@ export async function fetchModule(
77
throw err
78
}
79
const file = pathToFileURL(resolved.id).toString()
80
- const type = isFilePathESM(file, server.config.packageCache)
+ const type = isFilePathESM(resolved.id, server.config.packageCache)
81
? 'module'
82
: 'commonjs'
83
return { externalize: file, type }
0 commit comments