elem
elem copied to clipboard
require() throws a "module not found" exception if module.exports is set to undefined
It should be possible to export undefined. Of particular interest is if a module doesn't export anything as a bug, the bug is harder to diagnose because the error is misleading.