Skip to content

Commit e17f6b8

Browse files
authored
fix: preact hook apis should be imported from 'preact/hooks' (unplugin#152)
1 parent 6ad973b commit e17f6b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/presets/preact.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ImportsMap } from '../types'
22

33
export default <ImportsMap>({
4-
preact: [
4+
'preact/hooks': [
55
'useState',
66
'useCallback',
77
'useMemo',

0 commit comments

Comments
 (0)