Open amireldor opened 7 years ago
from what I remember, rt-require
doesn't work with the object destructuring syntax {cat, dog}
... unless perhaps you target ES6... do you?
And yes, destructuring is not supported by rt-import
either, but that's an idea for improvement.
I can't seem to find this anywhere I searched, and the only thing I managed to get working seems a bit strange to me. How would I produce imports like these:
I could do so with
<rt-require dependency="horse" as="{cat, dog}"/>
, but couldn't figure out how to with<rt-import>
.All I could come up with is using multiple instructions:
But that seems strange to me as it seeme like a step backwards in usability since rt-require.