Skip to content

Commit

Permalink
fix(cli-bundler): avoid unwanted match on prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Jun 11, 2020
1 parent 9bae069 commit 9054f9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/build/find-deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ const auConfigureDepFinder = function(contents) {
// track aurelia dependency based on user configuration.
match.forEach(m => {
let methodName = m.match.method.name;
let _deps = auConfigModuleNames[methodName];
if (_deps) _deps.forEach(d => add(d));
if (auConfigModuleNames.hasOwnProperty(methodName)) {
auConfigModuleNames[methodName].forEach(d => add(d));
}
});
}

Expand Down
1 change: 1 addition & 0 deletions spec/lib/build/find-deps.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ describe('find-deps', () => {
return c.foo = 1;
});
}
something.toString();
aurelia.start().then(function () {
return aurelia.setRoot();
});
Expand Down

0 comments on commit 9054f9c

Please sign in to comment.