This is a talk I gave at a Betabeers Barcelona event about how to use RequireJS and it's CommonJS compatibility:
define(function(require, exports, module) {
var foo = require('./foo');
return { bar: 1 };
});
Sadly I choose a niche presentation micro-framework which at some point I forgot how to run and couldn't invest the time to re-learn it. This wouldn't had happen if I documented or at least took notes about how to use it, lesson learned.
The unformatted conntent of the slides is still accessible here