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 cda34df commit c7e4c67Copy full SHA for c7e4c67
packages/vite/src/module-runner/createImportMeta.ts
@@ -35,7 +35,8 @@ export function createDefaultImportMeta(
35
`file transformation. Make sure to reference it by the full name.`,
36
)
37
},
38
- }
+ // @types/node adds `main` to `import.meta`, but we don't add that for the defaultImportMeta
39
+ } satisfies Omit<ModuleRunnerImportMeta, 'main'> as any
40
}
41
42
let importMetaResolverCache: Promise<ImportMetaResolver | undefined> | undefined
0 commit comments