import { Stats } from '../types' ; export function getStats ( stats ) { const duration = stats . endTime - stats . startTime ; return { duration , success : stats . compilation . errors . length === 0 , size : 0 , fullHash : stats . compilation . fullHash } ; }