Oh how I wish you could reference the current scope in JavaScript. The things you could do…
e.g., scope['someImport']…
Hmm… I think I might be able to create what I want by maintaining a component registry manually in my ES Module Loader and communicating it to the main process via an interprocess communication channel (BroadcastChannel)… but, yeah, being able to reference the current scope would be nice (and much simpler).
(Nope, because, of course, the actual reference doesn’t exist at the loader stage.)
Oh, well, I’m going to try and make it so that you’ll at least be able to connect child components in the markup itself so you don’t have to remember to do it in some other place. That should, at least, be doable.