code: function resolveComponents(router) {
    const path = getLocation(router.options.base, router.options.mode)
  
    return flatMapComponents(router.match(path), async (Component, _, match, key, index) => {
      // If component is not resolved yet, resolve it
      if (typeof Component === 'function' && !Component.options) {
        Component = await Component()
      }
      // Sanitize it and save it
      const _Component = applySSRData(sanitizeComponent(Component), NUXT.data ? NUXT.data[index] : null)
      match.components[key] = _Component
      return _Component
    })
  }
docs: Get matched components