Opal-Estate-Pro/node_modules/postcss-merge-longhand/dist/lib/insertCloned.js
2019-09-13 11:27:52 +07:00

21 lines
582 B
JavaScript
Executable File

'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'];