getRuleSelector.js 242 B

1234567891011
  1. 'use strict';
  2. /**
  3. * @param {import('postcss').Rule} ruleNode
  4. * @returns {string}
  5. */
  6. module.exports = function getRuleSelector(ruleNode) {
  7. const raws = ruleNode.raws;
  8. return (raws.selector && raws.selector.raw) || ruleNode.selector;
  9. };