Supposed, we have some modules imported by the current module:
import {A1, A2, A3} from "./ModuleA";
import {B1, B2, B3} from "./ModuleB";
import {C1, C2, C3} from "./ModuleC";
function getTheListOfImportedModules() {
// This should return something similar to ["./ModuleA", "./ModuleB", "./ModuleC"]
}
Is there a way to get the list of all the imported modules at runtime without having to manually list each modules during editing? On the side, if that is possible then is it possible to also get the list of imported objects from these modules: [A1, A2, A3, B1, B2, B3, C1, C2, C3] at runtime?