Requirejs allows to import absolute names and define a mapping in configuration like below
requirejs.config({
//By default load any module IDs from js/lib
baseUrl: 'js/lib',
//except, if the module ID starts with "app",
//load it from the js/app directory. paths
//config is relative to the baseUrl, and
//never includes a ".js" extension since
//the paths config could be for a directory.
paths: {
app: '../app'
}
});
I'm not saying this module should support the requirejs configuration, but it would be handy if at least it exposed a method to modify the imported path. For instance
Requirejs allows to import absolute names and define a mapping in configuration like below
I'm not saying this module should support the requirejs configuration, but it would be handy if at least it exposed a method to modify the imported path. For instance
would generate