Skip to content

Commit

Permalink
fix(framework-configuration): bug in path joining for resources
Browse files Browse the repository at this point in the history
Fixes #434
  • Loading branch information
EisenbergEffect committed Jul 8, 2016
1 parent 7f45dcd commit b462a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ export class FrameworkConfiguration {
let grandParent = resourcesRelativeTo[1];
let name = resource;

if (resource.startsWith('./') && parent !== '') {
name = parent + resource.substr(1);
if ((resource.startsWith('./') || resource.startsWith('../')) && parent !== '') {
name = join(parent, resource);
}

this.resourcesToLoad[name] = { moduleId: name, relativeTo: grandParent };
Expand Down

0 comments on commit b462a79

Please sign in to comment.