setAtRuleParams.cjs 540 B

123456789101112131415161718192021222324
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. /** @typedef {import('postcss').AtRule} AtRule */
  5. /**
  6. * @param {AtRule} atRule
  7. * @param {string} params
  8. * @returns {AtRule} The atRulearation that was passed in.
  9. */
  10. function setAtRuleParams(atRule, params) {
  11. const raws = atRule.raws;
  12. if (raws.params) {
  13. raws.params.raw = params;
  14. } else {
  15. atRule.params = params;
  16. }
  17. return atRule;
  18. }
  19. module.exports = setAtRuleParams;