chore: upgrade to react 19 rc
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user