This commit is contained in:
Aevann1 2021-12-13 22:28:32 +00:00
parent 628618df89
commit e031240dff
3749 changed files with 1120848 additions and 1 deletions

View file

@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = usesCustomProperties;
var _postcssValueParser = _interopRequireDefault(require("postcss-value-parser"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function usesCustomProperties(value) {
let foundCustomProperty = false;
(0, _postcssValueParser.default)(value).walk(node => {
if (node.type === 'function' && node.value === 'var') {
foundCustomProperty = true;
}
return !foundCustomProperty;
});
return foundCustomProperty;
}