packages/veui-loader/src/index.js
function patchContent (content, parts) {
  return Object.keys(parts).reduce((content, type) => {
    let paths = parts[type].filter(({ valid }) => valid).map(({ path }) => path)
    return patchType(content, type, paths)
  }, content)
}
function patchContent (content, parts) {
  return Object.keys(parts).reduce((content, type) => {
    let paths = parts[type].filter(({ valid }) => valid).map(({ path }) => path)
    return patchType(content, type, paths)
  }, content)
}
function patchContent ( content , parts ) { return Object . keys ( parts ) . reduce ( ( content , type ) => { let paths = parts [ type ] . filter ( ( { valid } ) => valid ) . map ( ( { path } ) => path ) return patchType ( content , type , paths ) } , content ) }
Patch content with extracted parts metadata

@param {string} content Module content
@param {Object} parts Extracted parts metadata
Patch content with extracted parts metadata