return module.exports instead of exports in 'node' mode