@philwills: Ah, I see (assuming you mean that you compile with `r.js` and that IDs your module).
A UMD wrapper might help, but seems overkill. I can't think of anything offhand unfortunately.