I work with a built-in javascript system (I think?) On ES6-compatible javascript, which is compiled / translated to a browser-compatible javascript (Wordpress Calypo, if this is important )
Does modern javascript have the ability to reflect the context of the call? In other words, if I have a javascript foo module
#File: foo/index.js
export default () => {
}
Is there any way to tell at runtime which other javascript module and / or file imported my "foo" module? If this is not possible, is there a general way to do this with static analysis. If my question makes no sense because I made the wrong assumption (the most likely scenario), I would like this assumption to be fixed.
source
share