diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 53ab848..9db6ff3 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -10,13 +10,3 @@ declare module '*.vue' { export default component } -export default defineConfig({ - plugins: [ - vue(), - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('../src', import.meta.url)) - } - } -}) \ No newline at end of file diff --git a/vite.config.mts b/vite.config.mts index d9c82f1..70d7598 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -1,8 +1,14 @@ import { defineConfig } from 'vite' import deno from '@deno/vite-plugin' import vue from '@vitejs/plugin-vue' +import {fileURLToPath, URL} from "node:url"; // https://vite.dev/config/ export default defineConfig({ plugins: [deno(), vue()], -}) + resolve: { + alias: { + '@': fileURLToPath(new URL('../src', import.meta.url)) + } + } +}) \ No newline at end of file