Skip to content

Commit

Permalink
Keep existing API of exporting Components
Browse files Browse the repository at this point in the history
  • Loading branch information
jseminck committed Nov 14, 2017
1 parent 04a42a9 commit cf2d6f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/Components.js
Expand Up @@ -658,8 +658,8 @@ function componentRule(rule, context) {
return updatedRuleInstructions;
}

module.exports = {
module.exports = Object.assign(Components, {
detect(rule) {
return componentRule.bind(this, rule);
}
};
});

0 comments on commit cf2d6f6

Please sign in to comment.