UNPKG

295 BJavaScriptView Raw
1// tooling
2import getReplacedString from './get-replaced-string';
3
4// transform rule nodes
5export default function transformRule(rule, opts) {
6 // update the rule selector with its variables replaced by their corresponding values
7 rule.selector = getReplacedString(rule.selector, rule, opts);
8}