hearsayit/HearsayRequireJSBundle — pull request #9 by AsaAyers (2012-06-23 02:37:32+00:00)
Title: Support RequireJS 2.0 insertRequire

The new version of RequireJS doesn't evaluate modules until they're require()'d [1]. With the way this bundle generates a hash for the module name it breaks when you use RequireJS 2.0.

I'm using data-main to point to my module's name which works in dev, but when I optimize for production the name is changed from "time/main" to "1441772dab8a4acdfab0c5314acc2fdc". Without the code in the commit the optimized file never executes the main module.

[1] https://github.com/jrburke/requirejs/wiki/Upgrading-to-RequireJS-2.0#wiki-delayed