You should be able to setup a simple alias either using a path
requirejs config
paths: {
'jquery.ui.sortable': 'jquery-ui'
}
Or if that doesn't work, you could use the map
config
map: {
'*': {
'jquery.ui.sortable': 'jquery-ui'
}
}
Or when using map
, you could even only setup alias for that one plugin
map: {
'THE-JQUERY-UI-PLUGIN-ID': {
'jquery.ui.sortable': 'jquery-ui'
}
}
That last one makes it so that whevener the plugin in question makes a require("jquery.ui.sortable")
call it actually pulls in jquery-ui
module which you know has the sortable functionality built in already.
There also exists a jquery-ui-amd
project which I quite like using. That project converts all jquery-ui
modules into individual AMD modules https://github.com/jrburke/jqueryui-amd. You could use that for an easier and more modular integration into your project. However, even then you would need some aliasing as your plugin requires jquery.ui.sortable
, but in jquery-ui-amd
the id would be jquery-ui/sortable
.