Eleven entries called the helper without importing it
My scripted migration inserted the import behind a guard that silently did not fire:
`if 'defineMapElement' not in s.split('function')[0]` became false as soon as the
inserted CALL appeared before the first `function` keyword — so the files that most
needed the import were exactly the ones that did not get it. 11 of 16.
Every one of those elements would have thrown "defineMapElement is not defined" on
load. A bundler does not error on a free identifier; only loading does. studio caught it
in L64 via landing-preconditions, which imports each profile, and fixed it there
(37f75601) plus added an arm to check:element-bootstrap.
This repairs the same 11 on this branch so it is not a landmine if it lands after L64,
and it is byte-equivalent to studio's fix in effect. Verified by PARSING each entry and
resolving the identifier against its import bindings — 16 of 16 bound — rather than by
re-running the kind of regex that wrote the bug.
This commit is contained in:
parent
ca4288d02b
commit
51a3cadd62
11 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* plugin-designs/all-people-groups/index.js
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* plugin-designs/cities-internet/index.js — bundle entry for CITIES WITH INTERNET.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* plugin-designs/country-posters/index.js
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* doxa-research-map / index.js — Bundle entry
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* plugin-designs/gospel-internet/index.js — bundle entry for the GOSPEL x INTERNET BOARD.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* plugin-designs/gospel-resources/index.js — bundle entry for GOSPEL RESOURCES.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* plugin-designs/key-cities/index.js — bundle entry for KEY CITIES.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* plugin-designs/my-upg-100-list/index.js
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* pplr-data-maps / index.js — bundle entry (emits pplr-data-maps.js), defines <pplr-data-maps>.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* plugin-designs/regions-dashboard/index.js
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||||
/**
|
||||
* upg-neighbor / index.js — bundle entry (emits upg-neighbor.js), defines <upg-neighbor>.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue