mozilla/dryice — pull request #33 by stasm (2013-06-12 10:16:04+00:00)
Title: Support Simplified CommonJS Wrappers

Add explicit support for CJS Wrappers which look like the following:

define(function(require, exports, module){
var foo = require('foo'),
bar = require('foo/bar');

exports.doSomething = function(){
console.log(foo + bar);
};
});

A module is only treated as a CJS module if it doesn't contain a dependency
array and the definition function contain at least one parameter.

More information:

http://requirejs.org/docs/api.html#cjsmodule
https://github.com/jrburke/requirejs/wiki/Differences-between-the-simplified-CommonJS-wrapper-and-standard-AMD-define