getAtRuleParams.js 230 B

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