Skip to content

Commit

Permalink
jspm normalize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 21, 2016
1 parent 2a97882 commit 416820a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ exports.normalize = function(moduleName, parentName, canonicalize, env) {
loader.set('@system-env', loader.newModule(envModule));

// ensure the parent package is loaded first
return loader.normalize(parentName)
return (parentName && loader.normalize(parentName) || Promise.resolve())
.then(function() {
return loader.normalize(moduleName, parentName && loader.normalizeSync(parentName));
})
Expand Down

0 comments on commit 416820a

Please sign in to comment.