module-invalidate icon indicating copy to clipboard operation
module-invalidate copied to clipboard

return true/false on attempt to invalidate module

Open t1m0thy-michael opened this issue 2 years ago • 0 comments

invalidateByExports, invalidateByPath, prototype.invalidate to return true if module invalidable, otherwise false

Project using this want to log when a module is refreshed. This allows change allows

if (module.invalidateByPath(require_path)){ app.log.info(module refreshed: ${require_path}) obj.fn = require(require_path) }

t1m0thy-michael avatar Jul 23 '21 23:07 t1m0thy-michael