unscriptable/curl — Issue #47: plugin modules at top level require trickery to be loaded
Author: unscriptable
Created: 2012-01-10 02:55:45+00:00
State: open

Any plugins that reside at the top level (i.e. at baseUrl) are basically "naked" as defined in the wiki (https://github.com/unscriptable/curl/wiki/Plugins). Therefore, the loader prepends the pluginPath onto them. This causes the loader to look in the curl/plugin folder rather than at the top level.

There is a work-around for this issue: include an entry in the paths config like this:

```js
paths: {
myplugin: './myplugin'
}
```

The existence of the slash is enough for the loader to no longer consider the plugin id to be "naked".