index.js
function registerComponents (newComponents) {
  var config = Vue$2.config;
  var newConfig = {};
  if (Array.isArray(newComponents)) {
    newComponents.forEach(function (component) {
      if (!component) {
        return
      }
      if (typeof component === 'string') {
        components[component] = true;
        newConfig[component] = true;
      } else if (typeof component === 'object' && typeof component.type === 'string') {
        components[component.type] = component;
        newConfig[component.type] = true;
      }
    });
    var oldIsReservedTag = config.isReservedTag;
    config.isReservedTag = function (name) {
      return newConfig[name] || oldIsReservedTag(name)
    };
  }
}
function registerComponents (newComponents) {
  var config = Vue$2.config;
  var newConfig = {};
  if (Array.isArray(newComponents)) {
    newComponents.forEach(function (component) {
      if (!component) {
        return
      }
      if (typeof component === 'string') {
        components[component] = true;
        newConfig[component] = true;
      } else if (typeof component === 'object' && typeof component.type === 'string') {
        components[component.type] = component;
        newConfig[component.type] = true;
      }
    });
    var oldIsReservedTag = config.isReservedTag;
    config.isReservedTag = function (name) {
      return newConfig[name] || oldIsReservedTag(name)
    };
  }
}
function registerComponents ( newComponents ) { var config = Vue$2 . config ; var newConfig = { } ; if ( Array . isArray ( newComponents ) ) { newComponents . forEach ( function ( component ) { if ( ! component ) { return } if ( typeof component === 'string' ) { components [ component ] = true ; newConfig [ component ] = true ; } else if ( typeof component === 'object' && typeof component . type === 'string' ) { components [ component . type ] = component ; newConfig [ component . type ] = true ; } } ) ; var oldIsReservedTag = config . isReservedTag ; config . isReservedTag = function ( name ) { return newConfig [ name ] || oldIsReservedTag ( name ) } ; } }
Register native components information.
@param {array} newComponents
Register native components information .