You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
398 B
20 lines
398 B
|
2 years ago
|
"use strict";
|
||
|
|
|
||
|
|
Object.defineProperty(exports, "__esModule", {
|
||
|
|
value: true
|
||
|
|
});
|
||
|
|
exports["default"] = _default;
|
||
|
|
/**
|
||
|
|
* Stringify PostCSS node including its raw "before" string.
|
||
|
|
*
|
||
|
|
* @param {Node} node - Any PostCSS node
|
||
|
|
* @return {string}
|
||
|
|
*/
|
||
|
|
function _default(node) {
|
||
|
|
var result = "";
|
||
|
|
if (node.raws.before) {
|
||
|
|
result += node.raws.before;
|
||
|
|
}
|
||
|
|
result += node.toString();
|
||
|
|
return result;
|
||
|
|
}
|