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.

20 lines
578 B

4 years ago
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = getParsed;
  6. var _postcssValueParser = require('postcss-value-parser');
  7. var _postcssValueParser2 = _interopRequireDefault(_postcssValueParser);
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. function getParsed(decl) {
  10. let { value, raws } = decl;
  11. if (raws && raws.value && raws.value.raw) {
  12. value = raws.value.raw;
  13. }
  14. return (0, _postcssValueParser2.default)(value);
  15. }
  16. module.exports = exports['default'];