diff --git a/examples/11_form/tsconfig.json b/examples/11_form/tsconfig.json index c0186f22d..f855af68e 100644 --- a/examples/11_form/tsconfig.json +++ b/examples/11_form/tsconfig.json @@ -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" + } + ] } diff --git a/examples/11_form/tsconfig.node.json b/examples/11_form/tsconfig.node.json new file mode 100644 index 000000000..8169d03ec --- /dev/null +++ b/examples/11_form/tsconfig.node.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./dist/node", + "types": ["node"] + }, + "include": ["vite.config.ts"] +} diff --git a/examples/11_form/vite.config.ts b/examples/11_form/vite.config.ts new file mode 100644 index 000000000..fd80307df --- /dev/null +++ b/examples/11_form/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite'; + +export default defineConfig({ + optimizeDeps: { + include: ['react-dom'], + }, +});