Skip to content

Commit 93e0293

Browse files
committed
Include comment about optional chaining
1 parent 73cbc09 commit 93e0293

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/node/src/stack-parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function getModule(filename: string | undefined): string | undefined {
66
return;
77
}
88

9+
// We could use optional chaining here but webpack does like that mixed with require
910
const base = `${
1011
(require && require.main && require.main.filename && dirname(require.main.filename)) || global.process.cwd()
1112
}/`;

0 commit comments

Comments
 (0)