Skip to content

Commit

Permalink
fix(wrapWithVariants): forgiving for applying variants
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 26, 2021
1 parent 23b1fa9 commit 33a7434
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ export class Processor {
if (style instanceof Keyframes) return style;
const atrules:string[] = [];
let wrapped = variants
.filter(i => this._variants?.[i])
.map(i => this._variants[i]())
.reduce((previousValue: Style, currentValue: Style) => {
const output = previousValue.extend(currentValue);
Expand Down

0 comments on commit 33a7434

Please sign in to comment.