Urara-Blog/node_modules/.pnpm-store/v3/files/f0/5b68fc1041a402328ec2b8ca1c936415af8ad894c9f4636a16a0a64f78fb2e5d402e26317903ce313d2bd244cd76edb136b9cd961708725fd91cba532c27b8
2022-08-14 01:14:53 +08:00

14 lines
387 B
Text

'use strict';
/**
* @param {import('postcss').Rule} rule
* @param {import('postcss').Declaration} decl
* @param {Partial<import('postcss').DeclarationProps>=} props
* @return {import('postcss').Declaration}
*/
module.exports = function insertCloned(rule, decl, props) {
const newNode = Object.assign(decl.clone(), props);
rule.insertAfter(decl, newNode);
return newNode;
};