It would be awesome if I could set ignoreMissing: true but also be notified of what is missing (call a function possibly?).
Would you be interested in a PR to support this? (Or something similar?)
var options = { ignoreMissing: tellMe }
// make call to required that would normally give an error
// require('mybadfile.js', options, callback)
function tellMe(moduleName, sourceFilePath) {
console.log('%s cannot require %s', sourceFilePath, moduleName)
}
PS I'm working on a JS watcher tool that runs an arbitrary command whenever any JS file in the dependency tree is changed, thanks for making this library it makes my code so short!
Hey man,
It would be awesome if I could set
ignoreMissing: true
but also be notified of what is missing (call a function possibly?).Would you be interested in a PR to support this? (Or something similar?)
PS I'm working on a JS watcher tool that runs an arbitrary command whenever any JS file in the dependency tree is changed, thanks for making this library it makes my code so short!