Skip to content

Commit b462a79

Browse files
fix(framework-configuration): bug in path joining for resources
Fixes #434
1 parent 7f45dcd commit b462a79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/framework-configuration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ export class FrameworkConfiguration {
233233
let grandParent = resourcesRelativeTo[1];
234234
let name = resource;
235235

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

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

0 commit comments

Comments
 (0)