Skip to content

Commit

Permalink
chore(templates): alias react to preact/compat in tsconfig (vitejs#14262
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rschristian authored and Gaubee committed Sep 13, 2023
1 parent ffdeaa4 commit 98b7d61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/create-vite/template-preact-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"paths": {
"react": ["./node_modules/preact/compat/"],
"react-dom": ["./node_modules/preact/compat/"]
},

/* Bundler mode */
"moduleResolution": "bundler",
Expand Down

0 comments on commit 98b7d61

Please sign in to comment.