Open pdanpdan opened 1 year ago
+1 to this issue, would love to use this package but this is blocking for esm packages that want to use the custom config options.
It seems that this line is being compiled to:
const configClass = await Promise.resolve(`${configPath}`).then(s => _interopRequireWildcard(require(s)));
which calls require()
, which throws that error, which makes it always revert to the defaultConfig
in the catch block. Is there any babel config you can set in babel.config.json
to address this? Or else declare require()
top-level somewhere?
Hello.
When using gitpkg in repos with type "module" the configuration file is not loaded. I logged the error thrown when trying to load the file below. Is it possible to load .js/.cjs/.mjs?