lume/vite.config.ts

30 lines
561 B
TypeScript
Raw Permalink Normal View History

2024-08-12 10:32:20 +07:00
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
import react from "@vitejs/plugin-react";
2024-02-11 09:30:18 +07:00
import { defineConfig } from "vite";
2024-08-12 10:32:20 +07:00
import tsconfigPaths from "vite-tsconfig-paths";
const ReactCompilerConfig = {
/* ... */
};
2024-02-11 09:30:18 +07:00
export default defineConfig({
2024-08-12 10:32:20 +07:00
plugins: [
TanStackRouterVite(),
tsconfigPaths(),
react({
babel: {
plugins: [["babel-plugin-react-compiler", ReactCompilerConfig]],
},
}),
],
2024-02-11 09:30:18 +07:00
build: {
2024-08-12 10:32:20 +07:00
outDir: "./dist",
2024-10-03 09:00:48 +07:00
target: "esnext",
2024-02-11 09:30:18 +07:00
},
server: {
strictPort: true,
port: 3000,
},
clearScreen: false,
});