So you reassigned module.exports to exports in order to get all objects assigned to both module.exports and exports otherwise objects assigned to module.exports would override those assigned to exports which would stay ignored, right?
But: to get all objects do I have to assign module.exports to exports (so change the order from your first example)?:
I usually use just `module.export = {...}` in the bottom line when I want to export object by object literal.
To be honest, I'm not quite sure about commonJS require implementation of nodeJS. But as long as I'm understand,
1. Use `module.exports` if you want to assign exports by object literal
2. Use `exports.[key]` if you want to assign exports brick by brick.
3. Use `exports = module.exports = {...}` or `module.exports = exports` if you want to ensure both functionality; you can assign `exports.[key] after assign exports by object literal.
But: to get all objects do I have to assign module.exports to exports (so change the order from your first example)?:
exports = module.exports = { hello: 'hello', world: 'world' };