Skip to content

Commit e3b953b

Browse files
committed
fix(contracts): guard __filename fallback for stripped import.meta
1 parent 1bd122d commit e3b953b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/contracts/src/custom-network-signatures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function getCurrentModulePath(): string | undefined {
7171
}
7272
}
7373

74-
if (typeof __filename === 'string') {
74+
if (typeof __filename !== 'undefined') {
7575
return __filename;
7676
}
7777

0 commit comments

Comments
 (0)