In RequireJS you can really customize pathswhich points to a folder. And you can call your path what you want. For example, if you have a folder with a name node_modules, and you have some libraries there, including jquery, you can configure the path, for example
require.config({
paths: {
'lib' : '/path_to_node_module_folder'
}
});
and later in your module jquery may be required, for example
define(['lib/jquery'], function($){
....
});
source
share