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.

16 lines
390 B

4 years ago
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = isMixin;
  6. function isMixin(node) {
  7. const { selector } = node;
  8. // If the selector ends with a ':' it is likely a part of a custom mixin.
  9. if (!selector || selector[selector.length - 1] === ':') {
  10. return true;
  11. }
  12. return false;
  13. }
  14. module.exports = exports['default'];