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 dc63d3c commit 1bd122dCopy full SHA for 1bd122d
packages/contracts/src/custom-network-signatures.ts
@@ -57,15 +57,17 @@ export interface BuildSignaturesFromContextResult {
57
* Falls back to __filename when bundlers strip import.meta.url.
58
*/
59
function getCurrentModulePath(): string | undefined {
60
- const moduleUrl = (
61
- import.meta as unknown as { url?: string } | undefined
62
- )?.url;
+ const moduleUrl = (import.meta as unknown as { url?: string } | undefined)
+ ?.url;
63
64
if (moduleUrl) {
65
try {
66
return fileURLToPath(moduleUrl);
67
} catch (error) {
68
- console.warn('Failed to resolve fileURLToPath from import.meta.url:', error);
+ console.warn(
+ 'Failed to resolve fileURLToPath from import.meta.url:',
69
+ error
70
+ );
71
}
72
73
0 commit comments