Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 committed Oct 5, 2023
1 parent 1064240 commit 7d122c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/configuration/variables/sources/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ module.exports = {
try {
result = require(filePath);
} catch (error) {
// eslint-disable-next-line no-console
console.log('DEBUG', error); // debugging what is the failure, since I cannot reproduce locally
if (error.code === 'ERR_REQUIRE_ESM') {
try {
result = await import(filePath).catch((e) => {
Expand Down

0 comments on commit 7d122c3

Please sign in to comment.