pahen/madge — pull request #31 by fizker (2014-06-18 20:38:31+00:00)
Title: Anonymous require() as entry makes the AMD.prototype.addOptimizedModules go boom

If the main minified RequireJS file is started with a `require(deps, handler)` call instead of a `define(deps, handler)` call, `amdetective` returns strings for the dependencies instead of an object wrapping an array. This makes the parse/amd.js code explode with a null-ref exception.

I added a default module that has no name, and which can be overridden through an option.