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.
 
 
 
 

18 lines
502 B

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = prefixValue;
  6. function prefixValue(plugins, property, value, style, metaData) {
  7. for (var i = 0, len = plugins.length; i < len; ++i) {
  8. var processedValue = plugins[i](property, value, style, metaData);
  9. // we can stop processing if a value is returned
  10. // as all plugin criteria are unique
  11. if (processedValue) {
  12. return processedValue;
  13. }
  14. }
  15. }
  16. module.exports = exports["default"];