GoScrobble/web/node_modules/clean-css/lib/optimizer/level-2/restore-with-components.js

14 lines
319 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
var compactable = require('./compactable');
function restoreWithComponents(property) {
var descriptor = compactable[property.name];
if (descriptor && descriptor.shorthand) {
return descriptor.restore(property, compactable);
} else {
return property.value;
}
}
module.exports = restoreWithComponents;