With RequireJS on the front-end, we can listen to see when modules get loaded into the runtime module cache using:

```
requirejs.onResourceLoad = function (context, map, depArray) {
    console.log('onResourceLoad>>>', 'map.id:', map.id, 'context:', context);
};

```

Can we do this with Node.js somehow? Will be useful for debugging. Especially when servers are loading different files (or in different order) based on configuration.

I assume this might be documented in 

<https://nodejs.org/api/modules.html>

but I am not seeing anything