chore: tanstack-router

This commit is contained in:
2025-08-01 06:37:22 +08:00
parent 7ac42ceae1
commit aee201b741
3 changed files with 561 additions and 8 deletions

View File

@@ -1,9 +1,16 @@
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { tanstackRouter } from "@tanstack/router-plugin/vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [
tanstackRouter({
target: "react",
autoCodeSplitting: true,
}),
react(),
],
server: {
port: 9763,
},