jrburke/requirejs — Issue #149: relative plugin dependencies + paths config conflict
Author: millermedeiros
Created: 2011-12-06 12:52:52+00:00
State: open

I'm trying to load a dependency relative to a plugin file and it doesn't seem to work:

```js
// main.js
require.config({
paths : {
awsum : 'lib/require/myAwesomePlugin'
}
});

// lib/require/myAwesomePlugin.js
define(['./someHelper'], function(helper){
...
});

// foo.js
define(['awsum!loadSomethingAwesome'], function(something){
// this will timeout since "someHelper.js" can't be found
});
```

it's probably because I'm using the path config to create an alias to the plugin location... (I don't like to clutter the `baseUrl` folder with lots of scripts..)

Relative paths are useful for plugins that uses external dependencies like the [handlebars plugin](https://github.com/SlexAxton/require-handlebars-plugin).