feat(create-app): include env shim

This commit is contained in:
Evan You 2021-01-05 01:04:20 -05:00
parent a7b6e2ac77
commit 4802c1a56c
3 changed files with 10 additions and 0 deletions

View File

@ -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'
}
}
]
}

View File

@ -0,0 +1,2 @@
// enable types for import.meta.* and file types
import 'vite/env'

View File

@ -0,0 +1,2 @@
// enable types for import.meta.* and file types
import 'vite/env'