text: import { defineConfig } from "vite";
  import react from "@vitejs/plugin-react";
  import inject from "@rollup/plugin-inject";
  
  export default defineConfig({
    plugins: [react()],
    resolve: {
      alias: {
        path: "path-browserify",
      },
    },
    build: {
      rollupOptions: {
        plugins: [inject({ Buffer: ["buffer", "Buffer"] })],
      },
    },
  });
  