diff --git a/examples/vue-app/vite.config.js b/examples/vue-app/vite.config.js index 373e1b48..8bbba1f5 100644 --- a/examples/vue-app/vite.config.js +++ b/examples/vue-app/vite.config.js @@ -1,7 +1,6 @@ +import { fileURLToPath, URL } from "url"; import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; -import path from "path"; -import { fileURLToPath } from "url"; // https://vitejs.dev/config/ export default defineConfig({ @@ -14,7 +13,7 @@ export default defineConfig({ }, resolve: { alias: { - "@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "src"), + "@": fileURLToPath(new URL("./src", import.meta.url)), }, }, });