mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
feat(create-app): include env shim
This commit is contained in:
parent
a7b6e2ac77
commit
4802c1a56c
@ -66,6 +66,12 @@ module.exports = {
|
||||
'node/no-extraneous-import': 'off',
|
||||
'node/no-extraneous-require': 'off'
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['packages/create-app/template-*/**'],
|
||||
rules: {
|
||||
'node/no-missing-import': 'off'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
2
packages/create-app/template-react-ts/src/shim.d.ts
vendored
Normal file
2
packages/create-app/template-react-ts/src/shim.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
// enable types for import.meta.* and file types
|
||||
import 'vite/env'
|
2
packages/create-app/template-vue-ts/src/shim.d.ts
vendored
Normal file
2
packages/create-app/template-vue-ts/src/shim.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
// enable types for import.meta.* and file types
|
||||
import 'vite/env'
|
Loading…
Reference in New Issue
Block a user