first commit
This commit is contained in:
18
node_modules/stylelint/lib/utils/rawNodeString.mjs
generated
vendored
Normal file
18
node_modules/stylelint/lib/utils/rawNodeString.mjs
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Stringify PostCSS node including its raw "before" string.
|
||||
*
|
||||
* @param {import('postcss').Node} node
|
||||
*
|
||||
* @returns {string}
|
||||
*/
|
||||
export default function rawNodeString(node) {
|
||||
let result = '';
|
||||
|
||||
if (node.raws.before) {
|
||||
result += node.raws.before;
|
||||
}
|
||||
|
||||
result += node.toString();
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user