Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
fix mapping conditional bug
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 16, 2017
1 parent 51b9e45 commit 058aa55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ Trace.prototype.getLoadRecord = function(canonical, traceOpts, parentStack) {
return loader.normalize(conditionObj.module, normalizedPkgName)
.then(function(conditionModule) {
conditionObj.module = getCanonicalName(loader, conditionModule);
pkg = loader.packages[normalizedPkgName];
return toPackagePath(mapping, false);
})
.then(function(normalizedMapping) {
Expand Down

0 comments on commit 058aa55

Please sign in to comment.