For other reasons I am including one dependent library as a separate JSP tag and then trying to prevent RequireJS from re-downloading it:
<blwjawr:jawrscript src="/bundles/lib1.js" userQueryParam="true"/>
<blwjawr:jawrscript src="/bundles/myApp.js" otherAttrs="data-main="app/main.js""/>
where the Backbone app in /bundles/myApp.js has a RequireJS specifier for /bundles/lib1.js.
At the moment I haven't completely ironed out my RequireJS integration. Right now the first tag correctly renders a script link as "/bundles/lib1.js?jawrHC=gzip_N1234" and the browser downloads the library. But then RequireJS comes along and asks for "/bundles/lib1.js" which gets a not found error.
My idea is that instead of returning not found for /bundles/lib1.js, to implement a redirect from /bundles/lib1.js to /gzip_N1234/bundles/lib1.js. (Essentially this is saying that if you ask for an unversioned copy of a bundle, JAWR will redirect you to the current version.)
If this still downloads twice (because the browser thinks one is /bundles/lib1.js?jawrHC=gzip_N1234 and another is /gzip_N1234/bundles/lib1.js) then I will change my JawrSpringController integration to also redirect instead of transparently rewriting the URL and servicing the first request. I will do some further exploration early next week and if I get to a solution I'm happy with I'll contact you again.
And I do still have to figure out something reasonable for debug mode.