diff --git a/lib/env/config.js b/lib/env/config.js index 4542627..5ff4a30 100644 --- a/lib/env/config.js +++ b/lib/env/config.js @@ -63,7 +63,7 @@ module.exports = { } const configPath = getConfigPath(); try { - return Promise.resolve(moduleLoader.require(configPath)); + return await Promise.resolve(moduleLoader.require(configPath)); } catch (e) { if (e.code === 'ERR_REQUIRE_ESM') { const loadedImport = await moduleLoader.import(url.pathToFileURL(configPath));