zerobyte/vite.config.ts
Nico d3f9ced5dc
refactor: use spawn & exec instead of bun $ (#356)
* refactor: use spawn & exec accordingly

* chore: pr feedbacks
2026-01-15 22:09:00 +01:00

20 lines
538 B
TypeScript

import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import { reactRouterHonoServer } from "react-router-hono-server/dev";
export default defineConfig({
plugins: [reactRouterHonoServer({ runtime: "bun" }), reactRouter(), tailwindcss(), tsconfigPaths()],
build: {
outDir: "dist",
sourcemap: false,
rollupOptions: {
external: ["bun"],
},
},
server: {
host: '0.0.0.0',
port: 4096,
},
});