[<<][webdev][>>][..]
Fri Jun 16 14:53:01 EDT 2017

expose modules into the global namespace


browserify main.js --standalone app -o bundle.js

main.js:
 exports.app = require('./app');
app.js:
 exports.start = function() ...

why is there this double wrapping?
 app.app.start()


Ok, so the arg to --standalone is the object that contains all the
exports from the main module. They are not flattened.



[Reply][About]
[<<][webdev][>>][..]