jrburke/requirejs — Issue #162: Relative ids from module defined in path
Author: xcoderzach
Created: 2012-01-05 20:02:01+00:00
State: open

requiring modules from within a module defined in paths doesn't work properly.

for example with the configuration:

```javascript
require.config({
baseUrl: "/javascripts"
, paths: {my_module: "lib/my_module/lib/my_module" }
})
```
```javascript
// In my_module.js
define(["./dep"], function(dep) {

})
```
It tries to load /javascripts/dep rather than /javascript/lib/my_module/lib/dep.

I'm not sure if this is intended, but it would be nice if it loaded it relative to the actual url rather than the alias.