From 95fec7f69430c108e5cf95c428db9d671cd97a94 Mon Sep 17 00:00:00 2001 From: M A E R Y O Date: Mon, 28 Aug 2023 06:52:33 +0900 Subject: [PATCH] fix: refactor path resolution logic for project root (#2674) --------- Co-authored-by: MAERYO --- frontend/vite.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 5e3a6824..6c6052c8 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -1,5 +1,5 @@ import { fileURLToPath, URL } from "node:url"; - +import path from "node:path"; import { defineConfig } from "vite"; import legacy from "@vitejs/plugin-legacy"; import vue2 from "@vitejs/plugin-vue2"; @@ -17,7 +17,7 @@ const plugins = [ const resolve = { alias: { vue: "vue/dist/vue.esm.js", - "@/": fileURLToPath(new URL("./src/", import.meta.url)), + "@/": `${path.resolve(__dirname, "src")}/`, }, };