In node module.js file there is this line of code:
exports = module.exports = {
makeRequireFunction,
stripBOM,
addBuiltinLibsToObject
};
What is this doing?
exports = module.exports
Ultimately, exports is being set to this new object:
= {
makeRequireFunction,
stripBOM,
addBuiltinLibsToObject
};
Why is exports = module.exports needed?