I'm working with a javascript system built (I think?) on ES6 compatible javascript that's compiled/transpiled down to browser compatible javascript (Wordpress Calypo, if it matters)
Does modern javascript have a way to reflect into the calling context? Put another way, if I have a javascript module foo
#File: foo/index.js
//...lots of code...
export default () => {
//...more code...
}
Is there a way to tell, at runtime, which other javascript module and/or file has imported my "foo" module? If this isn't possible, is there a common way to do this with static analysis. If my question doesn't make any sense because I'm made an incorrect assumption (the most likely scenario) , I'd love that assumption corrected.