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.

12 lines
315 B

3 months ago
  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;