jrburke/requirejs — Issue #207: Paths
Author: mendrik
Created: 2012-03-09 12:42:56+00:00
State: open

Hi I'm trying to get requirejs to work, but with little success so far.
In IE9 it completely ignores the order plugin and runs the scripts in network loading order .
Second problem is that submodules ignore the baseUrl property entirely.

My setup looks like this:
Stripped main file (order and baseUrl work):

require.config({
baseUrl: '/webstatic/digipaper/',
paths: {
jquerymx: 'lib/jquerymx/jquerymx',
}
});
require([
...
"req/order!jquerymx"
...
});

Submodule: (dependencies are loaded in weird orders and it takes the relative path instead of baseUrl + path.

define("jquerymx", ["jquery",
"req/order!lib/jquerymx/jquery.lang.object.js",
"req/order!lib/jquerymx/jquery.lang.string.js",
"req/order!lib/jquerymx/jquery.class.js",
...

Am I doing something wrong or is this flawed? If I btw use paths for each library, then the baseUrl is taken into account in submodules. But that's a no go, as I don't want to define all the submodule paths globally.