restore-with-components.js 315 B

123456789101112
  1. var configuration = require('../configuration');
  2. function restoreWithComponents(property) {
  3. var descriptor = configuration[property.name];
  4. if (descriptor && descriptor.shorthand) {
  5. return descriptor.restore(property, configuration);
  6. }
  7. return property.value;
  8. }
  9. module.exports = restoreWithComponents;