dist/tulipan.cjs.js
/**
 * Make sure component options get converted to actual
 * constructors.
 *
 * @param {Object} options
 */
Make sure component options get converted to actual
constructors.

@param {Object} options
Make sure component options get converted to actual constructors . @param { Object } options
function guardComponents(options) {
  if (options.components) {
    var components = options.components = guardArrayAssets(options.components);
    var ids = Object.keys(components);
    var def;
    if ('development' !== 'production') {
      var map = options._componentNameMap = {};
    }
    for (var i = 0, l = ids.length; i < l; i++) {
      var key = ids[i];
      if (commonTagRE.test(key) || reservedTagRE.test(key)) {
        'development' !== 'production' && warn('Do not use built-in or reserved HTML elements as component ' + 'id: ' + key);
        continue;
      }
      if ('development' !== 'production') {
        map[key.replace(/-/g, '').toLowerCase()] = hyphenate(key);
      }
      def = components[key];
      if (isPlainObject(def)) {
        components[key] = TurpialCore.extend(def);
      }
    }
  }
}
function guardComponents ( options ) { if ( options . components ) { var components = options . components = guardArrayAssets ( options . components ) ; var ids = Object . keys ( components ) ; var def ; if ( 'development' !== 'production' ) { var map = options . _componentNameMap = { } ; } for ( var i = 0 , l = ids . length ; i < l ; i ++ ) { var key = ids [ i ] ; if ( commonTagRE . test ( key ) || reservedTagRE . test ( key ) ) { 'development' !== 'production' && warn ( 'Do not use built-in or reserved HTML elements as component ' + 'id: ' + key ) ; continue ; } if ( 'development' !== 'production' ) { map [ key . replace ( / - / g , '' ) . toLowerCase ( ) ] = hyphenate ( key ) ; } def = components [ key ] ; if ( isPlainObject ( def ) ) { components [ key ] = TurpialCore . extend ( def ) ; } } } }
Make sure component options get converted to actual
 constructors.
Make sure component options get converted to actual constructors .
// record a all lowercase <-> kebab-case mapping for // possible custom element case error warning