Skip to content

Commit

Permalink
chore: Add react, react-dom aliases to tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Sep 2, 2023
1 parent d9b3add commit 90a84a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion templates/base/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@
"noEmit": true,
"allowJs": true,
"checkJs": true,

/* Preact Config */
"jsx": "react-jsx",
"jsxImportSource": "preact"
"jsxImportSource": "preact",
"skipLibCheck": true,
"paths": {
"react": ["./node_modules/preact/compat/"],
"react-dom": ["./node_modules/preact/compat/"]
}
},
"include": ["node_modules/vite/client.d.ts", "**/*"]
}
1 change: 0 additions & 1 deletion templates/base/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"name": "example",
"private": true,
"type": "module",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion templates/ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"name": "example",
"private": true,
"type": "module",
"scripts": {
Expand Down

0 comments on commit 90a84a1

Please sign in to comment.