chore: update auto import dep

This commit is contained in:
syy11cn 2022-04-02 17:04:33 +08:00 committed by sunyiyang.11
parent f48bac6546
commit 708afd2560
2 changed files with 15 additions and 2 deletions

3
auto-imports.d.ts vendored
View File

@ -1,6 +1,7 @@
// Generated by 'unplugin-auto-import'
// We suggest you to commit this file into source control
declare global {
const useEffect: typeof import('react')['useEffect']
const useState: typeof import('react')['useState']
}
export {}

View File

@ -12,8 +12,20 @@ export default defineConfig({
},
},
plugins: [
AutoImport(),
react(),
AutoImport({
include: [
'src/**/*.{ts,tsx}',
],
imports: [
{
react: [
'useState',
'useEffect',
],
},
],
}),
UnoCSS(),
],
})