import { fileURLToPath, URL } from "url"; function fullPath(path) { return fileURLToPath(new URL(path, import.meta.url)); } // https://vitejs.dev/config/ export default defineConfig({ resolve: { alias: { // So modules can be imported relative to src instead of ../../../... "@": fullPath("./src"), }, }, });