It creates objects for the import, but when accessing it it throws the error Cannot read properties of undefined (reading 'getSelf')
from line in the getter:
let moduleRoot = window.moduleSpace[moduleName].getSelf;
So it seems like it thinks it’s there, but it hasn’t actually loaded in at all.
Short-term, a more useful error message would be useful for creators. But ideally, it would actually load in the import when createPerchanceTree is called.
By the way, with my createPerchanceTree, I’m now setting the moduleSpace property to the equivalent of
dynamic_import().$root.getSelf
, and it seems to still work. Does that look right to you?