From c31581b1b979ccf1f0ce0e2bf14e8892c0b4aa4f Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Tue, 28 Jul 2026 15:39:00 +0200 Subject: [PATCH] Prebundle XyFlow for linked module development --- webui/vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webui/vite.config.ts b/webui/vite.config.ts index f896497..e32cd09 100644 --- a/webui/vite.config.ts +++ b/webui/vite.config.ts @@ -79,7 +79,10 @@ function govoplanInstalledModulesPlugin(): Plugin { export default defineConfig({ plugins: [govoplanInstalledModulesPlugin(), react()], optimizeDeps: { - exclude: availableWebModuleSpecifiers() + exclude: availableWebModuleSpecifiers(), + // Dataflow is discovered through the virtual module registry, so Vite's + // initial scan cannot see this CommonJS-backed transitive dependency. + include: ["@xyflow/react"] }, build: { // Full-product builds include the host shell plus all installed module wiring.