pluginFactory = function pluginFactory() {
  var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  var extend = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  return plugins_objectSpread({}, extend, {
    install: plugins_installFactory(opts)
  });
}
Plugin object factory function.
@param {object} { components, directives, plugins }
@returns {object} plugin install object