Skip to content

Commit

Permalink
fix(plugins): enable relative path plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 25, 2015
1 parent 21fe08e commit 7cbe4d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins.js
Expand Up @@ -8,7 +8,9 @@ function loadPlugin(aurelia, loader, info){

aurelia.currentPluginId = info.moduleId;

return loader.loadModule(info.moduleId, '').then(exportedValue => {
var baseUrl = info.moduleId.startsWith('./') ? undefined : "";

return loader.loadModule(info.moduleId, baseUrl).then(exportedValue => {
if('install' in exportedValue){
var result = exportedValue.install(aurelia, info.config || {});

Expand Down

0 comments on commit 7cbe4d2

Please sign in to comment.