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.
1 parent 73cbc09 commit 93e0293Copy full SHA for 93e0293
packages/node/src/stack-parser.ts
@@ -6,6 +6,7 @@ function getModule(filename: string | undefined): string | undefined {
6
return;
7
}
8
9
+ // We could use optional chaining here but webpack does like that mixed with require
10
const base = `${
11
(require && require.main && require.main.filename && dirname(require.main.filename)) || global.process.cwd()
12
}/`;
0 commit comments