isMixin.js 390 B

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