Skip to content

Commit

Permalink
Fix Alias @
Browse files Browse the repository at this point in the history
  • Loading branch information
hieu-w committed Jul 24, 2024
1 parent 215365c commit 7a9c0af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/vue-app/vite.config.js
Original file line number Diff line number Diff line change
@@ -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({
Expand All @@ -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)),
},
},
});

0 comments on commit 7a9c0af

Please sign in to comment.