Skip to content

Commit

Permalink
Use fake result in support prefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Feb 23, 2018
1 parent 76553dc commit 2e9c500
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/supports.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ class Supports {
return rule.nodes;
}

const result = { warn: () => null };

const prefixer = this.prefixer().add[rule.first.prop];
prefixer && prefixer.process && prefixer.process(rule.first);
prefixer && prefixer.process && prefixer.process(rule.first, result);

for (let decl of rule.nodes) {
for (let value of this.prefixer().values('add', rule.first.prop)) {
Expand Down

0 comments on commit 2e9c500

Please sign in to comment.