Just put this at the beginning of your files. ``` const m = require('module') const originalLoader = m._loadm._load = function (request, parent, isMain) { console.log('_load', request) return originalLoader(request, parent, isMain) } ``` I was a bit surprised how easy it is to achieve.
Submitted May 04, 2016 at 08:50PM by Capaj
No comments:
Post a Comment