diff --git a/src/input-handler.js b/src/input-handler.js index ce353a8..986f46b 100644 --- a/src/input-handler.js +++ b/src/input-handler.js @@ -158,6 +158,9 @@ async function getMod (filepath) { try { mod = require(filepath) + if (process?.features?.require_module === true && mod.default) { + mod = mod.default + } } catch (err) { if (hasEsmError(err)) {