chore: upgrade to react 19 rc

This commit is contained in:
reya
2024-08-12 10:32:20 +07:00
parent da8162069b
commit be16d5c21d
11 changed files with 682 additions and 626 deletions

View File

@@ -1,12 +1,24 @@
import { TanStackRouterVite } from "@tanstack/router-vite-plugin";
import react from "@vitejs/plugin-react-swc";
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import viteTsconfigPaths from "vite-tsconfig-paths";
import tsconfigPaths from "vite-tsconfig-paths";
const ReactCompilerConfig = {
/* ... */
};
export default defineConfig({
plugins: [react(), viteTsconfigPaths(), TanStackRouterVite()],
plugins: [
TanStackRouterVite(),
tsconfigPaths(),
react({
babel: {
plugins: [["babel-plugin-react-compiler", ReactCompilerConfig]],
},
}),
],
build: {
outDir: "../../dist",
outDir: "./dist",
},
server: {
strictPort: true,