mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-03-15 18:01:06 +00:00
31 lines
841 B
TypeScript
31 lines
841 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 viteTsConfigPaths from "vite-tsconfig-paths";
|
|
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)),
|
|
},
|
|
},
|
|
plugins: [
|
|
nitro({ preset: "node-server" }),
|
|
tailwindcss(),
|
|
devtools(),
|
|
viteTsConfigPaths({
|
|
projects: ["./tsconfig.json"],
|
|
}),
|
|
tanstackStart(),
|
|
react(),
|
|
babel({ presets: [reactCompilerPreset()] })
|
|
],
|
|
});
|
|
|
|
export default config;
|