Skip to content

Commit 4657ada

Browse files
authoredJun 12, 2024··
fix(core): resolve modules with esm compatibility (#2514)
1 parent fa7fa54 commit 4657ada

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/core/module.ts

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function _resolveNitroModule(
3232

3333
const _jiti = jiti(nitroOptions.rootDir, {
3434
interopDefault: true,
35+
esmResolve: true,
3536
alias: nitroOptions.alias,
3637
});
3738
const _modPath = _jiti.resolve(mod);

0 commit comments

Comments
 (0)
Please sign in to comment.