From f73982ac9062679806501effc1461c5f8bf0ea86 Mon Sep 17 00:00:00 2001 From: Jeffrey Smith Date: Sun, 29 Mar 2026 17:45:14 +0000 Subject: [PATCH] Fix CM6 bundle loading: remove type=module from script tag The CM6 bundle is an IIFE (not an ES module). Loading it with type='module' causes window.CM to be undefined despite the script executing. Classic script loading works correctly. Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/notes/js/main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/notes/js/main.js b/packages/notes/js/main.js index e4f73fe..e59cf23 100644 --- a/packages/notes/js/main.js +++ b/packages/notes/js/main.js @@ -25,7 +25,6 @@ } var s = document.createElement('script'); s.src = base + src; - s.type = 'module'; s.onload = resolve; s.onerror = function() { resolve(); }; // Non-fatal document.head.appendChild(s);