scripts/build.js
function getBuildingConfigs (target) {
  return target.map(({ dirname, name, version, entry, outDir, styleFilename }) => {
    return formats.map(format => {
      return {
        inputOptions: getInputOptions({ entry, outDir, styleFilename }),
        outputOptions: getOutputOptions({ outDir, name, version, format })
      }
    })
  }).reduce((prev, next) => prev.concat(next))
}
function getBuildingConfigs (target) {
  return target.map(({ dirname, name, version, entry, outDir, styleFilename }) => {
    return formats.map(format => {
      return {
        inputOptions: getInputOptions({ entry, outDir, styleFilename }),
        outputOptions: getOutputOptions({ outDir, name, version, format })
      }
    })
  }).reduce((prev, next) => prev.concat(next))
}
function getBuildingConfigs ( target ) { return target . map ( ( { dirname , name , version , entry , outDir , styleFilename } ) => { return formats . map ( format => { return { inputOptions : getInputOptions ( { entry , outDir , styleFilename } ) , outputOptions : getOutputOptions ( { outDir , name , version , format } ) } } ) } ) . reduce ( ( prev , next ) => prev . concat ( next ) ) }
Get rollup building configurations
@param target
Get rollup building configurations