Skip to content

Commit

Permalink
add vite config for 11_form
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Dec 19, 2023
1 parent 045512f commit f48130f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
12 changes: 9 additions & 3 deletions examples/11_form/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"jsx": "react-jsx",
"rootDir": "./src",
"outDir": "./dist"
}
"outDir": "./dist",
"composite": true
},
"include": ["./src"],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
8 changes: 8 additions & 0 deletions examples/11_form/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist/node",
"types": ["node"]
},
"include": ["vite.config.ts"]
}
7 changes: 7 additions & 0 deletions examples/11_form/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'vite';

export default defineConfig({
optimizeDeps: {
include: ['react-dom'],
},
});

0 comments on commit f48130f

Please sign in to comment.