function getComponent (getter, name) {
  if (!name) return
  if (getter(name)) return getter(name)

  const isKebabCase = name.includes('-')
  if (isKebabCase) return getter(capitalize(camelize(name)))

  return getter(capitalize(name)) || getter(hyphenate(name))
}
This method was for securely getting Vue component when components
are named in different style.

e.g. a component named `a-b` can be also getted by `AB`, It's the
same the other way round

@param {function} getter a function of getting component by name
@param {string} name component's name
@returns {Component|AsyncComponent}