diff --git a/internal/check-composites-mount.mjs b/internal/check-composites-mount.mjs index fcd5b6ba4..656135e59 100644 --- a/internal/check-composites-mount.mjs +++ b/internal/check-composites-mount.mjs @@ -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//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',