Skip to content

Commit

Permalink
fix(types): fix for moduleResolution: "nodenext"
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Sep 3, 2022
1 parent b8f6194 commit 5ebf049
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/import-meta.d.ts
@@ -1,7 +1,8 @@
import type {
ImportMeta as ViteImportMeta,
ImportMetaEnv as ViteImportMetaEnv
} from './client/types'
// eslint-disable-next-line node/no-missing-import -- use .js for `moduleResolution: "nodenext"`
} from './client/types.js'

declare global {
interface ImportMeta extends ViteImportMeta {}
Expand Down
3 changes: 3 additions & 0 deletions packages/vite/package.json
Expand Up @@ -20,6 +20,9 @@
"./client": {
"types": "./client.d.ts"
},
"./import-meta": {
"types": "./import-meta.d.ts"
},
"./client/types": {
"types": "./client/types.d.ts"
},
Expand Down

0 comments on commit 5ebf049

Please sign in to comment.