25 lines
478 B
TypeScript
25 lines
478 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import path from "node:path";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
"common": path.resolve(__dirname, "../common/src"),
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "build",
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
effect: ["effect"],
|
|
react: ["react", "react-dom", "react-router-dom"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|