check:composites-mount records elements defined through the shared element helper
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:
parent
ee5b6f83e8
commit
e5dd83dad9
1 changed files with 4 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue