8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51084d7 + 7e008c8 commit bd7097aCopy full SHA for bd7097a
lib/appenders/index.js
@@ -34,7 +34,7 @@ const tryLoading = (modulePath, config) => {
34
const loadAppenderModule = (type, config) => coreAppenders.get(type) ||
35
tryLoading(`./${type}`, config) ||
36
tryLoading(type, config) ||
37
- tryLoading(path.join(path.dirname(require.main.filename), type), config) ||
+ (require.main && tryLoading(path.join(path.dirname(require.main.filename), type), config)) ||
38
tryLoading(path.join(process.cwd(), type), config);
39
40
const createAppender = (name, config) => {
0 commit comments