From 2aa6d7f60768987dbbcf5a9004eaff32c4094b45 Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Sun, 15 Mar 2026 10:29:04 +0300 Subject: [PATCH] Fix bridge loading: use ssrLoadModule for workspace TS resolution --- src/automation/vite-plugin.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/automation/vite-plugin.ts b/src/automation/vite-plugin.ts index 1c01eaa10..a38472283 100644 --- a/src/automation/vite-plugin.ts +++ b/src/automation/vite-plugin.ts @@ -3,8 +3,10 @@ import type { Plugin } from 'vite' export function automationPlugin(): Plugin { return { name: 'open-pencil-automation', - configureServer() { - void import('./bridge') + configureServer(server) { + server.ssrLoadModule('./src/automation/bridge').catch((e) => { + console.error('Failed to start automation bridge:', e) + }) } } }