diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index f5bd5e6..ea3b0f1 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,5 +1,5 @@ import vue from "@vitejs/plugin-vue"; -import { resolve } from "path"; +import { fileURLToPath, URL } from "url"; import { defineConfig } from "vite"; import WindiCSS from "vite-plugin-windicss"; @@ -16,11 +16,7 @@ export default defineConfig({ }, }, resolve: { - alias: { - "~/": `${resolve(__dirname, "src")}/`, - "@": resolve("src"), - "@components": resolve("src/@components"), - }, + alias: [{ find: "@", replacement: fileURLToPath(new URL("./src", import.meta.url)) }], }, plugins: [WindiCSS(), vue()], });