Skip to content

Commit

Permalink
Try get vite to play nice with deno and react
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwhitney committed May 27, 2024
1 parent 48c1a77 commit 0306738
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
16 changes: 13 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
"compilerOptions": {
"target": "ESNext",
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"module": "ESNext",
"strict": true,
"esModuleInterop": true,
"allowImportingTsExtensions": true,
"jsx": "react"
}
"jsx": "react-jsx"
},
"include": [
"./server/**/*",
"./client/**/*"
]
}
5 changes: 4 additions & 1 deletion vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ export default defineConfig({
changeOrigin: true
}
},
plugins: [react()]
plugins: [react()],
optimizeDeps: {
include: ['react/jsx-runtime'],
}
})

0 comments on commit 0306738

Please sign in to comment.