2026-05-05 14:28:17 +03:00
|
|
|
import { fileURLToPath, URL } from "node:url"
|
|
|
|
|
|
2026-05-05 09:59:21 +03:00
|
|
|
import react from "@vitejs/plugin-react"
|
|
|
|
|
import { defineConfig } from "vite"
|
|
|
|
|
|
2026-05-05 14:28:17 +03:00
|
|
|
const srcPath = (path: string) => fileURLToPath(new URL(`./src/${path}`, import.meta.url))
|
|
|
|
|
|
2026-05-05 09:59:21 +03:00
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
2026-05-05 14:28:17 +03:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
app: srcPath("app"),
|
|
|
|
|
layouts: srcPath("layouts"),
|
|
|
|
|
screens: srcPath("screens"),
|
|
|
|
|
widgets: srcPath("widgets"),
|
|
|
|
|
business: srcPath("business"),
|
|
|
|
|
infra: srcPath("infra"),
|
|
|
|
|
ui: srcPath("ui"),
|
|
|
|
|
shared: srcPath("shared"),
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-05-05 09:59:21 +03:00
|
|
|
})
|