Skip to content

Commit c796959

Browse files
authored
chore(templates): alias react to preact/compat in tsconfig (#14262)
1 parent eda0d0a commit c796959

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/create-vite/template-preact-ts/tsconfig.json

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"module": "ESNext",
66
"lib": ["ES2020", "DOM", "DOM.Iterable"],
77
"skipLibCheck": true,
8+
"paths": {
9+
"react": ["./node_modules/preact/compat/"],
10+
"react-dom": ["./node_modules/preact/compat/"]
11+
},
812

913
/* Bundler mode */
1014
"moduleResolution": "bundler",

0 commit comments

Comments
 (0)