1 | // tooling
|
2 | import getReplacedString from './get-replaced-string';
|
3 |
|
4 | // transform rule nodes
|
5 | export 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 | }
|