From 1caa222a9d91ddc2af67dc58cbb66c5761621cc8 Mon Sep 17 00:00:00 2001 From: Khaliq Date: Wed, 20 May 2026 09:18:13 +0200 Subject: [PATCH] Externalize ssh2 and cpu-features in main build The @agent-relay/sdk is bundled into main, which pulled ssh2 and its native cpu-features.node into the Vite SSR build and broke dev. Mark both as external so they load from node_modules at runtime. Co-Authored-By: Claude Opus 4.7 (1M context) --- electron.vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron.vite.config.ts b/electron.vite.config.ts index 28ca0540..ef90885e 100644 --- a/electron.vite.config.ts +++ b/electron.vite.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ plugins: [externalizeDepsPlugin({ exclude: ['@agent-relay/sdk'] })], build: { rollupOptions: { - external: ['ws'] + external: ['ws', 'ssh2', 'cpu-features'] } } },