Retrieve import alias name #1012
Unanswered
brettsaunders21
asked this question in
Q&A
Replies: 1 comment 1 reply
-
What list are you referring to? I'm not sure how |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a list of Modules that i've imported I want to get the name of each (import alias with as)

So I want ["OtherMe", "MainMe"] (where each item is a string of the name)
I can get this with imports.keys, but I have no way to relate this to the order in the list. If I use the URI from imports then I can't get the order correctly if they import the same file.
I can't just use strings, as I want a reference to the module
Beta Was this translation helpful? Give feedback.
All reactions