Using RequireJS with CommonJS modules, what happens when I do this:
define(function(require, exports, module) {
//Put traditional CommonJS module content here
var simpleCommonJSModule = require('simple-commonjs-module');
module.exports = new String('foo');
return {
//return empty object along with using module.exports
}
});
if I return something, I assume the module.exports will be ignored? Or is it the other way around?