I hope I understand your question correctly.
If your package contains requireJS modules, and you upload it to a page, you can still name those modulesas long as you define them, as shown below:
Say your existing package is displayed as follows:
@Scripts.Render("~/bundles/aCustomBundle")
jQuery, React a aLibrary . aLibrary .
define('aLibrary', [], function() {
return {
aFunction: function() {
console.log('a function within a library');
}
}
});
, .
<script>
define('jquery', [], function () { return jQuery; });
define('react', [], function () { return React; });
require(['aLibrary', 'jquery', 'react'], function(a, j, r) {
a.aFunction();
});
</script>