Skip to content

Commit

Permalink
fix(core): resolve modules with esm compatibility (#2514)
Browse files Browse the repository at this point in the history
  • Loading branch information
94726 committed Jun 12, 2024
1 parent fa7fa54 commit 4657ada
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function _resolveNitroModule(

const _jiti = jiti(nitroOptions.rootDir, {
interopDefault: true,
esmResolve: true,
alias: nitroOptions.alias,
});
const _modPath = _jiti.resolve(mod);
Expand Down

0 comments on commit 4657ada

Please sign in to comment.