insertCloned.js 311 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = insertCloned;
  6. function insertCloned(rule, decl, props) {
  7. const newNode = Object.assign(decl.clone(), props);
  8. rule.insertAfter(decl, newNode);
  9. return newNode;
  10. };
  11. module.exports = exports["default"];