import react from "@vitejs/plugin-react";
import { resolve } from "path";
import { defineConfig } from "vite";

export const alias = {
    "@ui_kit": resolve(__dirname, "./src/ui_kit"),
    "@icons": resolve(__dirname, "./src/assets/icons"),
    "@stores": resolve(__dirname, "./src/stores"),
    "@api": resolve(__dirname, "./src/api"),
    "@model": resolve(__dirname, "./src/model"),
    "@utils": resolve(__dirname, "./src/utils"),
};

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [react()],
    resolve: {
        alias,
    },
    define: {
        "process.env": process.env,
    },
});
