demo/bundle.js
/**
             * Resolve an asset.
             * This function is used because child instances need access
             * to assets defined in its ancestor chain.
             */
Resolve an asset.
This function is used because child instances need access
to assets defined in its ancestor chain.
Resolve an asset . This function is used because child instances need access to assets defined in its ancestor chain .
function resolveAsset (
              options,
              type,
              id,
              warnMissing
            ) {
              if (typeof id !== 'string') {
                return
              }
              var assets = options[type];
              if (hasOwn(assets, id)) { return assets[id] }
              var camelizedId = camelize(id);
              if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
              var PascalCaseId = capitalize(camelizedId);
              if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
              var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
              if (process.env.NODE_ENV !== 'production' && warnMissing && !res) {
                warn(
                  'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
                  options
                );
              }
              return res
            }
function resolveAsset ( options , type , id , warnMissing ) { if ( typeof id !== 'string' ) { return } var assets = options [ type ] ; if ( hasOwn ( assets , id ) ) { return assets [ id ] } var camelizedId = camelize ( id ) ; if ( hasOwn ( assets , camelizedId ) ) { return assets [ camelizedId ] } var PascalCaseId = capitalize ( camelizedId ) ; if ( hasOwn ( assets , PascalCaseId ) ) { return assets [ PascalCaseId ] } var res = assets [ id ] || assets [ camelizedId ] || assets [ PascalCaseId ] ; if ( process . env . NODE_ENV !== 'production' && warnMissing && ! res ) { warn ( 'Failed to resolve ' + type . slice ( 0 , - 1 ) + ': ' + id , options ) ; } return res }
Resolve an asset.
Resolve an asset .
/* istanbul ignore if */ // check local registration variations first // fallback to prototype chain