From c7a4343f0d2a1bc1ecfa7fe222666d007d2272b2 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Sun, 18 Oct 2026 11:54:23 +0200 Subject: [PATCH] fix(build): load the editor logic from a hashed chunk The mind map element imports mindmap.js lazily, and it was still built as the entry files_mindmap-mindmap.mjs, whose name never changes. The server lets browsers cache it for six months and the dynamic import carries no version, so after an update browsers kept running the old file next to the new init script, and opening a mind map failed with "Cannot read properties of undefined (reading 'init')". Nothing loads it as an entry since #375, so build it as a normal chunk, whose name carries a content hash. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger --- vite.config.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 82d7e63e..81c76b83 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,7 +13,6 @@ declare const __dirname: string const iframeScript = join(__dirname, 'src', 'viewer.js') export default createAppConfig({ - mindmap: join(__dirname, 'src', 'mindmap.js'), mindmapviewer: join(__dirname, 'src', 'mindmapviewer.js'), }, { inlineCSS: { relativeCSSInjection: true },