Prebundle XyFlow for linked module development

This commit is contained in:
2026-07-28 15:39:00 +02:00
parent 26ae034153
commit c31581b1b9

View File

@@ -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.