chore: update auto import dep
This commit is contained in:
parent
f48bac6546
commit
708afd2560
|
@ -1,6 +1,7 @@
|
||||||
// Generated by 'unplugin-auto-import'
|
// Generated by 'unplugin-auto-import'
|
||||||
// We suggest you to commit this file into source control
|
// We suggest you to commit this file into source control
|
||||||
declare global {
|
declare global {
|
||||||
|
const useEffect: typeof import('react')['useEffect']
|
||||||
|
const useState: typeof import('react')['useState']
|
||||||
}
|
}
|
||||||
export {}
|
export {}
|
||||||
|
|
|
@ -12,8 +12,20 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
AutoImport(),
|
|
||||||
react(),
|
react(),
|
||||||
|
AutoImport({
|
||||||
|
include: [
|
||||||
|
'src/**/*.{ts,tsx}',
|
||||||
|
],
|
||||||
|
imports: [
|
||||||
|
{
|
||||||
|
react: [
|
||||||
|
'useState',
|
||||||
|
'useEffect',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
UnoCSS(),
|
UnoCSS(),
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue