From 0f228293051bf8139676b32c35fd4e7296278689 Mon Sep 17 00:00:00 2001 From: Flawid DSouza Date: Tue, 16 Jan 2024 19:10:05 +0530 Subject: [PATCH] fix(ui): Socket Panel > as constructor names are mangled by esbuild, isConnected was not working as we depend on the constructor name of the Socket IO instance - probably not a great practice but don't see a simple alternative for now - code was working in vite dev mode, so the issue went unnoticed to prod --- packages/ui/vite.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/ui/vite.config.js b/packages/ui/vite.config.js index 36250ac3..caf5af14 100644 --- a/packages/ui/vite.config.js +++ b/packages/ui/vite.config.js @@ -62,7 +62,10 @@ export default defineConfig(({ mode }) => { base: '', test: { reporters: 'verbose' - } + }, + esbuild: { + minifyIdentifiers: false, + }, } if(mode === 'desktop') {