Skip to content

Commit d0fa27b

Browse files
committed
Fixed infinite loop when theming variable is missing
1 parent b3079d5 commit d0fa27b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/postcss-plugins.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ module.exports.replaceThemeVars = postcss.plugin('postcss-replace-theme-vars', (
9292
decl.value = decl.value.replace(varRegex, varValue);
9393
} else {
9494
console.error(`Missing theming variable '${varName}'`);
95+
break;
9596
}
9697
}
9798
});

0 commit comments

Comments
 (0)