Opal-Estate-Pro/node_modules/postcss-merge-longhand/dist/lib/insertCloned.js

21 lines
582 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
'use strict';
exports.__esModule = true;
exports.default = insertCloned;
var _objectAssign = require('object-assign');
var _objectAssign2 = _interopRequireDefault(_objectAssign);
var _clone = require('./clone');
var _clone2 = _interopRequireDefault(_clone);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function insertCloned(rule, decl, props) {
var newNode = (0, _objectAssign2.default)((0, _clone2.default)(decl), props);
rule.insertAfter(decl, newNode);
return newNode;
};
module.exports = exports['default'];