check:composites-mount records elements defined through the shared element helper
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions

It captured defineCustomElement only in plugin entry files; since the entries build their element
through library/elements/defineMapElement.js, it recorded nothing and refused every composite as
'defines neither this component nor ProfileLoader'.
This commit is contained in:
Doxa Maps 2026-09-28 17:52:51 +00:00
parent ee5b6f83e8
commit e5dd83dad9

View file

@ -123,7 +123,10 @@ if (!list.length) { console.error('COMPOSITES-MOUNT: FAIL, found no composites (
// would fail a correct composite for a missing app.use and pass nothing real, so the gate RUNS the
// entry: every defineCustomElement(...) in plugin-designs/<bundle>/index.js is swapped for a
// recorder, and the recorded component + configureApp are what gets mounted.
const ENTRY_RE = /plugin-designs\/[^/]+\/index\.js$/
// ★ AND THE SHARED HELPER. Since every entry builds its element through
// library/elements/defineMapElement.js, the defineCustomElement call lives THERE, not in index.js.
// Capturing only index.js recorded nothing, and every composite read as 'defines neither'.
const ENTRY_RE = /(plugin-designs\/[^/]+\/index\.js|library\/elements\/defineMapElement\.js)$/
const entryCapture = {
name: 'gate-entry-capture',
enforce: 'post',