Skip to content

Commit

Permalink
chore(templates): alias react to preact/compat in tsconfig (#14262)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Sep 11, 2023
1 parent eda0d0a commit c796959
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 c796959

Please sign in to comment.