I ended up setting up the framework's main JavaScript resources with the following tag in the root bundle:
<script data-main="js/main" src="<c:url value="require.js" />"></script>
. . . with "js/main.js" being:
require(['jquery'], function ($) {
// main script goes here . . .
})
With the above in the root bundle, sub-bundles simply invoke their own JavaScript with:
<script>require(['sub-bundle/js/script.js'])</script>
So the answer to my question is simply: Use the require
function in sub-bundles!