Most AFrame components are not proper modules. The example in AFrame itself does highlight some of the challenges, in particular avoiding multiple instances of AFrame and Three.
Consequently if it's not too much work have an example that doesn't require an importmap with import and exports in other components (which are not modules) would probably help onboarding for people familiar with AFrame.
Edit: this is arguably outdated but unfortunately the situation right now seems to be a bit of a mess, in between the "proper" importmap syntax used here and where most components and their users are.
Most AFrame components are not proper modules. The example in AFrame itself does highlight some of the challenges, in particular avoiding multiple instances of AFrame and Three.
Consequently if it's not too much work have an example that doesn't require an
importmapwithimportandexports in other components (which are not modules) would probably help onboarding for people familiar with AFrame.Edit: this is arguably outdated but unfortunately the situation right now seems to be a bit of a mess, in between the "proper"
importmapsyntax used here and where most components and their users are.