UNPKG

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