2025-01-29 09:29:54 +00:00
|
|
|
import path from "path";
|
|
|
|
|
import react from "@vitejs/plugin-react-swc";
|
|
|
|
|
import { defineConfig } from "vite";
|
2025-01-29 08:40:38 +00:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
2025-01-29 09:29:54 +00:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
"@": path.resolve(__dirname, "./src"),
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-01-30 13:09:28 +00:00
|
|
|
build: {
|
|
|
|
|
rollupOptions: {
|
|
|
|
|
output: {
|
|
|
|
|
manualChunks: {
|
2025-01-30 13:11:01 +00:00
|
|
|
"react-vendor": ["react", "react-dom", "react-router-dom"],
|
|
|
|
|
"ui-library": ["@/components/shared"],
|
2025-01-30 13:09:28 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-01-29 09:29:54 +00:00
|
|
|
});
|