Don't use this. Use browserify
The idea here was to build a front-end module system that had no run-time (only build-time) dependencies. It seemed like a good idea, the new version of browserify seems like a better idea.
This build process:
echo "module.exports = 'oh hai'" > module-that-cant-be-used-in-browser.jsecho "alert(require('./cant-be-used-in-browser.js'))" > app-that-wont-work-in-browser.jsbrowserify app-that-wont-work-in-browser.js > bundled-app-for-browser.jsecho "<script src=bundled-app-for-browser.js></script>" > app.htmlopen app.html
Adds 531 total bytes of overhead. Seems worth it for the ability to use the node/common.js module system.