From 1a58c724445f479c9ed259cd1ed267d9e178dad1 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 20 Jul 2026 21:18:27 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=A9=20chore:=20Prebundle=20Node=20Poly?= =?UTF-8?q?fills=20for=20Buffer,=20Process,=20and=20Global=20in=20Vite=20`?= =?UTF-8?q?optimizeDeps`=20(#14354)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhance the Vite configuration by including specific node polyfills in the `optimizeDeps` section. This change ensures that the necessary polyfills for `buffer`, `process`, and `global` are optimized for better performance during development. This adjustment aims to improve compatibility and streamline the build process. --- client/vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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,