diff --git a/vite.config.ts b/vite.config.ts index 2bef0788..fd53b1e8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,7 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react-swc' import { viteStaticCopy } from 'vite-plugin-static-copy' +import path from "path-browserify" // https://vitejs.dev/config/ export default defineConfig({ @@ -22,5 +23,10 @@ export default defineConfig({ ws: true }, } - } + }, + resolve: { + alias: { + path: "path-browserify", + }, + }, })