Skip to content

Commit

Permalink
fix: use jiti with { default: true } for importing modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 5, 2024
1 parent 313eac9 commit d77288c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function _resolveNitroModule(
});
const _modPath = jiti.esmResolve(mod);
_url = _modPath;
mod = (await jiti.import(_modPath)) as NitroModule;
mod = (await jiti.import(_modPath, { default: true })) as NitroModule;
}

if (typeof mod === "function") {
Expand Down

0 comments on commit d77288c

Please sign in to comment.