Files
bknd-examples/vite.config.ts
Shishant Biswas 6b31d4d992
All checks were successful
Build and Push to Gitea Registry / build-and-push (push) Successful in 6m15s
refactor vite.config, gitea workflow
2026-03-15 21:18:11 +05:30

28 lines
744 B
TypeScript

import { defineConfig } from "vite";
import { devtools } from "@tanstack/devtools-vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
import babel from '@rolldown/plugin-babel'
import { fileURLToPath, URL } from "url";
import tailwindcss from "@tailwindcss/vite";
import { nitro } from "nitro/vite";
const config = defineConfig({
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
tsconfigPaths: true,
},
plugins: [
nitro({ preset: "node-server" }),
tailwindcss(),
devtools(),
tanstackStart(),
react(),
babel({ presets: [reactCompilerPreset()] })
],
});
export default config;