diff --git a/client/vite.config.ts b/client/vite.config.ts index bf6fb53ff3..7f3d132301 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -177,6 +177,13 @@ export default defineConfig(({ command }) => ({ threshold: 10240, }), ], + optimizeDeps: { + include: [ + 'vite-plugin-node-polyfills/shims/buffer', + 'vite-plugin-node-polyfills/shims/process', + 'vite-plugin-node-polyfills/shims/global', + ], + }, publicDir: command === 'serve' ? './public' : false, build: { sourcemap: buildSourceMap,