import buildLibrary from '../../bundler/rollup' ; import { InputOptions , OutputOptions } from '@balm-core/index' ; class RollupTask extends BalmJS . BalmTask { constructor ( ) { super ( 'rollup' ) ; } recipe ( input , output ) { const balmBundler = async ( callback ) : Promise < void > => { await buildLibrary ( input , output ) ; callback ( ) ; } ; return balmBundler ; } fn ( callback ) { callback ( ) ; } } export default RollupTask ;