mirror of
https://github.com/lumehq/lume.git
synced 2025-03-17 13:22:05 +01:00
30 lines
561 B
TypeScript
30 lines
561 B
TypeScript
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
const ReactCompilerConfig = {
|
|
/* ... */
|
|
};
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
TanStackRouterVite(),
|
|
tsconfigPaths(),
|
|
react({
|
|
babel: {
|
|
plugins: [["babel-plugin-react-compiler", ReactCompilerConfig]],
|
|
},
|
|
}),
|
|
],
|
|
build: {
|
|
outDir: "./dist",
|
|
target: "esnext",
|
|
},
|
|
server: {
|
|
strictPort: true,
|
|
port: 3000,
|
|
},
|
|
clearScreen: false,
|
|
});
|