Skip to content

Commit 90a84a1

Browse files
committed
chore: Add react, react-dom aliases to tsconfig
1 parent d9b3add commit 90a84a1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

templates/base/jsconfig.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
"noEmit": true,
77
"allowJs": true,
88
"checkJs": true,
9+
10+
/* Preact Config */
911
"jsx": "react-jsx",
10-
"jsxImportSource": "preact"
12+
"jsxImportSource": "preact",
13+
"skipLibCheck": true,
14+
"paths": {
15+
"react": ["./node_modules/preact/compat/"],
16+
"react-dom": ["./node_modules/preact/compat/"]
17+
}
1118
},
1219
"include": ["node_modules/vite/client.d.ts", "**/*"]
1320
}

templates/base/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"name": "example",
32
"private": true,
43
"type": "module",
54
"scripts": {

templates/ssr/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"name": "example",
32
"private": true,
43
"type": "module",
54
"scripts": {

0 commit comments

Comments
 (0)