import { OutputOptions , RollupBuild , RollupOutput } from 'rollup' ; param output param bundle export const outputBundle = async ( output ? , bundle ? ) => { if ( ! output || ! bundle ) { return false ; } if ( Array . isArray ( output ) ) { const list = [ ] ; for ( const item of output ) { list . push ( bundle . write ( item ) ) ; } return Promise . all ( list ) ; } return bundle . write ( output ) ; } ;