The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { foldkit } from "@foldkit/vite-plugin"; |
| 2 | import { defineConfig } from "vite"; |
| 3 | |
| 4 | export default defineConfig({ |
| 5 | plugins: [foldkit()], |
| 6 | optimizeDeps: { |
| 7 | entries: ["src/entry.ts"], |
| 8 | // The foldkit plugin excludes foldkit from pre-bundling, so its bare |
| 9 | // imports of the Effect barrels are never discovered. Pre-bundle them, |
| 10 | // or dev serves every Effect module as its own request and a second copy |
| 11 | // of Effect next to the app's. |
| 12 | include: ["effect", "effect/Function", "effect/http", "@effect/platform-browser"], |
| 13 | }, |
| 14 | }); |