blob: 96338779ac98d00e2edd3536b5fe0e175ec3577c [file]
/**
* @param {import('postcss').Rule} node
* @return {boolean}
*/
function isMixin(node) {
const { selector } = node;
// If the selector ends with a ':' it is likely a part of a custom mixin.
if (!selector || selector[selector.length - 1] === ':') {
return true;
}
return false;
}
export default isMixin;