code: async function patchComponent (content, component, options, resolve) {
    let parts = getParts(component, options)
  
    await Promise.all(
      [...parts.script, ...parts.style].map(async module => {
        module.valid = await assurePath(module.path, resolve)
      })
    )
  
    return patchContent(content, parts)
  }
docs: Patch the original .vue file with additional peer modules.
  @param {string} content .vue file content
  @param {string} component Component name
  @param {Object} options veui-loader options
  @param {function} resolve webpack resolve function to see if target peer exists
  @returns {Promise<string>} A promise that resolved with the patched content