updated to tss adapter in bknd@0.21.0-rc.0

This commit is contained in:
2026-03-15 19:39:13 +05:30
parent 1f342283a0
commit 1925294484
7 changed files with 218 additions and 717 deletions

View File

@@ -1,7 +1,8 @@
import { defineConfig } from "vite";
import { devtools } from "@tanstack/devtools-vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from "@vitejs/plugin-react";
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";
@@ -17,17 +18,12 @@ const config = defineConfig({
nitro({ preset: "node-server" }),
tailwindcss(),
devtools(),
// this is the plugin that enables path aliases
viteTsConfigPaths({
projects: ["./tsconfig.json"],
}),
tanstackStart(),
viteReact({
babel: {
plugins: ["babel-plugin-react-compiler"],
},
}),
react(),
babel({ presets: [reactCompilerPreset()] })
],
});