support/rollup/factory.js
function factory(pkg, location) {
  const isProd = process.env.NODE_ENV === "production";
  return [
    configure(pkg, location, "development", "module"),
    isProd && configure(pkg, location, "development", "umd"),
    isProd && configure(pkg, location, "production", "umd")
  ].filter(Boolean);
}
function factory(pkg, location) {
  const isProd = process.env.NODE_ENV === "production";
  return [
    configure(pkg, location, "development", "module"),
    isProd && configure(pkg, location, "development", "umd"),
    isProd && configure(pkg, location, "production", "umd")
  ].filter(Boolean);
}
function factory ( pkg , location ) { const isProd = process . env . NODE_ENV === "production" ; return [ configure ( pkg , location , "development" , "module" ) , isProd && configure ( pkg , location , "development" , "umd" ) , isProd && configure ( pkg , location , "production" , "umd" ) ] . filter ( Boolean ) ; }
Return a Rollup configuration for a `pkg`.

@return {Array}
Return a Rollup configuration for a pkg .