Skip to content

Commit

Permalink
ensure separate browser file duplicates browser paths (systemjs/syste…
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 15, 2016
1 parent 93d68a7 commit af2cf93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/config/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,9 @@ JspmSystemConfig.prototype.syncFile = function() {
}


if (typeof nodePath == 'string' && typeof browserPath == 'string' && isPlain(browserPath) && browserPath == nodePath) {
// path collapse when browser = node path
if (!self.browserFile && typeof nodePath == 'string' && typeof browserPath == 'string' &&
isPlain(browserPath) && browserPath == nodePath) {
// path collapse when browser = node path and we're not using a separate browser config file
self.file.remove(['browserConfig', 'paths', name], true);
self.file.remove(['nodeConfig', 'paths', name], true);
self.file.setValue(['paths', name], browserPath);
Expand Down

0 comments on commit af2cf93

Please sign in to comment.