diff --git a/src/core/module.ts b/src/core/module.ts index 7b1f333281..4579c5fa90 100644 --- a/src/core/module.ts +++ b/src/core/module.ts @@ -32,6 +32,7 @@ function _resolveNitroModule( const _jiti = jiti(nitroOptions.rootDir, { interopDefault: true, + esmResolve: true, alias: nitroOptions.alias, }); const _modPath = _jiti.resolve(mod);