ForbesLindesay/umd — pull request #12 by jrburke (2014-01-12 05:23:44+00:00)
Title: Pass empty dependency array for AMD to prevent dependency scanning

AMD loaders will scan for `require('dep')` style dependencies when just a factory function is passed to define (no dependency array). Now that projects may use CommonJS/Node modules internal to source function to generate the final exports, this is causing some undesired matching behavior, the AMD loader may also try to load modules for those `require('dep')` names.

Passing an empty dependency array, as this changeset does, avoids that factory function scanning and possible confusion around if the UMD-wrapped code has dependencies.