Asset bundles and RequireJS

Are there currently any best practices for integrating RequireJS into Yii with Asset Bundles? As far as I can see, Asset Bundles load JS files directly, file per file, so getting RequireJS in the game looks pretty difficult at the moment.

While we’re at it, I’d also appreciate any help on integrating the r.js compiler as a build tool for production bundling. Haven’t seen anything clear on this topic anywhere yet.

This, of course, does not imply that all JS files asset bundles should need to be compatible with AMD / RequireJS but there should be some kind of per-file option.