GSI - Employe Self Service Mobile
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
321 B

2 months ago
  1. export default function whichModule(exported) {
  2. if (typeof require === 'undefined')
  3. return null;
  4. for (let i = 0, files = Object.keys(require.cache), mod; i < files.length; i++) {
  5. mod = require.cache[files[i]];
  6. if (mod.exports === exported)
  7. return mod;
  8. }
  9. return null;
  10. }