That's a great point.
I do this in my Backbone plugins (Marionette for example), but I had never really thought about this as a legitimate pattern for deployment
This does bring up the question of whether or not we could do something like this with Hilo. Is there a way that we could incorporate a build tool to merge files together, as part of the build process?
Is there any benefit to this, as well, since we're running on the device directly and not downloading via a potentially high-latency network? What are the ramifications for performance of having a large number of files, each with their own module definition
wrapper vs joining the files together and reducing the number of wrapper functions / module definitions.
It would be easy enough to set up a performance benchmark and test out the end result.
Thoughts and opinions?