import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; import * as path from "path"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ vue() ], resolve: { alias: { // Provide the path to the buffer module explicitly buffer: path.resolve(__dirname, 'node_modules', 'buffer'), "@": path.resolve(__dirname, "./src"), }, }, });