The element-bootstrap migration called defineMapElement in eleven entry files that never imported it. A build does not fail on an unbound name; the element does, the moment it loads, with 'defineMapElement is not defined'. The landing precondition caught it by importing each profile. check:element-bootstrap now fails when an entry calls the helper without importing it.
21 lines
798 B
JavaScript
21 lines
798 B
JavaScript
/**
|
||
* plugin-designs/all-people-groups/index.js
|
||
*
|
||
* Bundle entry for the ALL PEOPLE GROUPS map — every people group on earth
|
||
* (peoplegroups.org, 12,379 group×country rows) around the DOXA set.
|
||
*
|
||
* Usage from a host page:
|
||
* <script src="/doxa-maps/all-people-groups/all-people-groups.js"></script>
|
||
* <all-people-groups profile-config='{"profile":"all-people-groups"}'></all-people-groups>
|
||
*/
|
||
import { defineMapElement } from '@map/elements/defineMapElement.js'
|
||
|
||
const profileModules = import.meta.glob('./*.vue')
|
||
|
||
const AllPeopleGroupsElement = defineMapElement({ profileModules })
|
||
|
||
if (typeof customElements !== 'undefined' && !customElements.get('all-people-groups')) {
|
||
customElements.define('all-people-groups', AllPeopleGroupsElement)
|
||
}
|
||
|
||
export default AllPeopleGroupsElement
|