code: function loadDescriptor(descriptor, skipOptions) {
    if (typeof descriptor.value !== "function") {
      return { value: descriptor.value, descriptor: descriptor };
    }
  
    var value = descriptor.value,
        options = descriptor.options;
  
    var item = void 0;
    try {
      if (skipOptions) {
        item = value(context);
      } else {
        item = value(context, options, { dirname: descriptor.dirname });
      }
    } catch (e) {
      if (descriptor.alias) {
        e.message += " (While processing: " + (0, _stringify2.default)(descriptor.alias) + ")";
      }
      throw e;
    }
  
    if (!item || (typeof item === "undefined" ? "undefined" : (0, _typeof3.default)(item)) !== "object") {
      throw new Error("Plugin/Preset did not return an object.");
    }
  
    return { value: item, descriptor: descriptor };
  }
docs: Load a generic plugin/preset from the given descriptor loaded from the config object.