Skip to content

Commit c7e4c67

Browse files
committed
chore: fix type
1 parent cda34df commit c7e4c67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vite/src/module-runner/createImportMeta.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export function createDefaultImportMeta(
3535
`file transformation. Make sure to reference it by the full name.`,
3636
)
3737
},
38-
}
38+
// @types/node adds `main` to `import.meta`, but we don't add that for the defaultImportMeta
39+
} satisfies Omit<ModuleRunnerImportMeta, 'main'> as any
3940
}
4041

4142
let importMetaResolverCache: Promise<ImportMetaResolver | undefined> | undefined

0 commit comments

Comments
 (0)