From 51a3cadd6298ef5f2f79bf98ad84cf201e91bae2 Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Mon, 28 Sep 2026 17:42:31 +0000 Subject: [PATCH] Eleven entries called the helper without importing it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- plugin-designs/all-people-groups/index.js | 1 + plugin-designs/cities-internet/index.js | 1 + plugin-designs/country-posters/index.js | 1 + plugin-designs/doxa-research-map/index.js | 1 + plugin-designs/gospel-internet/index.js | 1 + plugin-designs/gospel-resources/index.js | 1 + plugin-designs/key-cities/index.js | 1 + plugin-designs/my-upg-100-list/index.js | 1 + plugin-designs/pplr-data-maps/index.js | 1 + plugin-designs/regions-dashboard/index.js | 1 + plugin-designs/upg-neighbor/index.js | 1 + 11 files changed, 11 insertions(+) diff --git a/plugin-designs/all-people-groups/index.js b/plugin-designs/all-people-groups/index.js index 7a6fb825b..a12be83ee 100644 --- a/plugin-designs/all-people-groups/index.js +++ b/plugin-designs/all-people-groups/index.js @@ -1,3 +1,4 @@ +import { defineMapElement } from '@map/elements/defineMapElement.js' /** * plugin-designs/all-people-groups/index.js * diff --git a/plugin-designs/cities-internet/index.js b/plugin-designs/cities-internet/index.js index a1759ad26..883a005f5 100644 --- a/plugin-designs/cities-internet/index.js +++ b/plugin-designs/cities-internet/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. * diff --git a/plugin-designs/country-posters/index.js b/plugin-designs/country-posters/index.js index 2bff029d6..adb27950b 100644 --- a/plugin-designs/country-posters/index.js +++ b/plugin-designs/country-posters/index.js @@ -1,3 +1,4 @@ +import { defineMapElement } from '@map/elements/defineMapElement.js' /** * plugin-designs/country-posters/index.js * diff --git a/plugin-designs/doxa-research-map/index.js b/plugin-designs/doxa-research-map/index.js index 641a90168..77196e6d1 100644 --- a/plugin-designs/doxa-research-map/index.js +++ b/plugin-designs/doxa-research-map/index.js @@ -1,3 +1,4 @@ +import { defineMapElement } from '@map/elements/defineMapElement.js' /** * doxa-research-map / index.js — Bundle entry * diff --git a/plugin-designs/gospel-internet/index.js b/plugin-designs/gospel-internet/index.js index 283a44aa0..814fb8019 100644 --- a/plugin-designs/gospel-internet/index.js +++ b/plugin-designs/gospel-internet/index.js @@ -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. * diff --git a/plugin-designs/gospel-resources/index.js b/plugin-designs/gospel-resources/index.js index b7b90212a..99c844321 100644 --- a/plugin-designs/gospel-resources/index.js +++ b/plugin-designs/gospel-resources/index.js @@ -1,3 +1,4 @@ +import { defineMapElement } from '@map/elements/defineMapElement.js' /** * plugin-designs/gospel-resources/index.js — bundle entry for GOSPEL RESOURCES. * diff --git a/plugin-designs/key-cities/index.js b/plugin-designs/key-cities/index.js index 92cd41aa0..65726ddac 100644 --- a/plugin-designs/key-cities/index.js +++ b/plugin-designs/key-cities/index.js @@ -1,3 +1,4 @@ +import { defineMapElement } from '@map/elements/defineMapElement.js' /** * plugin-designs/key-cities/index.js — bundle entry for KEY CITIES. * diff --git a/plugin-designs/my-upg-100-list/index.js b/plugin-designs/my-upg-100-list/index.js index d6c65153b..d372ce1de 100644 --- a/plugin-designs/my-upg-100-list/index.js +++ b/plugin-designs/my-upg-100-list/index.js @@ -1,3 +1,4 @@ +import { defineMapElement } from '@map/elements/defineMapElement.js' /** * plugin-designs/my-upg-100-list/index.js * diff --git a/plugin-designs/pplr-data-maps/index.js b/plugin-designs/pplr-data-maps/index.js index 02dcc6a56..920f5d5c3 100644 --- a/plugin-designs/pplr-data-maps/index.js +++ b/plugin-designs/pplr-data-maps/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 . * diff --git a/plugin-designs/regions-dashboard/index.js b/plugin-designs/regions-dashboard/index.js index 12d7d9032..f4c68db8e 100644 --- a/plugin-designs/regions-dashboard/index.js +++ b/plugin-designs/regions-dashboard/index.js @@ -1,3 +1,4 @@ +import { defineMapElement } from '@map/elements/defineMapElement.js' /** * plugin-designs/regions-dashboard/index.js * diff --git a/plugin-designs/upg-neighbor/index.js b/plugin-designs/upg-neighbor/index.js index b6321d4f1..ef2d5c8fd 100644 --- a/plugin-designs/upg-neighbor/index.js +++ b/plugin-designs/upg-neighbor/index.js @@ -1,3 +1,4 @@ +import { defineMapElement } from '@map/elements/defineMapElement.js' /** * upg-neighbor / index.js — bundle entry (emits upg-neighbor.js), defines . *