Fix CM6 bundle loading: remove type=module from script tag
All checks were successful
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / test-frontend (pull_request) Successful in 5s
CI/CD / test-go-pg (pull_request) Successful in 2m37s
CI/CD / test-sqlite (pull_request) Successful in 2m45s
CI/CD / build-and-deploy (pull_request) Successful in 1m44s

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) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 17:45:14 +00:00
parent 7bab654f6b
commit f73982ac90

View File

@@ -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);