chore: update auto import dep
This commit is contained in:
parent
f48bac6546
commit
708afd2560
|
@ -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 {}
|
||||
|
|
|
@ -12,8 +12,20 @@ export default defineConfig({
|
|||
},
|
||||
},
|
||||
plugins: [
|
||||
AutoImport(),
|
||||
react(),
|
||||
AutoImport({
|
||||
include: [
|
||||
'src/**/*.{ts,tsx}',
|
||||
],
|
||||
imports: [
|
||||
{
|
||||
react: [
|
||||
'useState',
|
||||
'useEffect',
|
||||
],
|
||||
},
|
||||
],
|
||||
}),
|
||||
UnoCSS(),
|
||||
],
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue