From 111d36bf3d301695b2c91d3cdbff397b11577139 Mon Sep 17 00:00:00 2001 From: Amit Haridas Date: Thu, 1 Oct 2026 07:31:37 +0530 Subject: [PATCH] refactor(flowchart): build script generates bundle from pure modules (D1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, src/renderer/flowchart-bundle.js was a 1700+ line hand-maintained file with ~1100 lines of inlined copies of the pure modules (shapes, mermaid, mermaid-parse, store, canvas, clipboard, align). Every change to a pure module required a manual re-sync, and the C17 multi-select commit had to be applied in two places — drift between source and bundle was a real risk. This refactor introduces scripts/build-flowchart-bundle.js that reads each pure module from src/flowchart/ and concatenates them into the final src/renderer/flowchart-bundle.js that the standalone window loads as a single