title: ES6 and "Who imported me"?
body: <p>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, <a href="https://developer.wordpress.com/calypso/" rel="nofollow">if it matters</a>)</p>
  
  <p>Does modern javascript have a way to reflect into the calling context?  Put another way, if I have a javascript module foo</p>
  
  <pre><code>#File: foo/index.js
  //...lots of code...
  export default () =&gt; {
      //...more code...
  }
  </code></pre>
  
  <p>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. </p>