montagejs/mop — pull request #44 by aadsm (2013-11-29 01:53:16+00:00)
Title: Fix independent modules creating different bundles

When the bundle property was configured in a way that two independent modules should end up in the same bundle (e.g.: bundle: [["foo", "bar"]]) each module would still create its own bundle instead of being in the same.

The problem was that we were collecting the bundle at each moduleId deepLoad instead of each phase deepLoad, so a single bundle was only being generated for a single phase when the first moduleId of the phase depended on all other modules of the phase.