Currently we have to decide between custom reporting via onAnalysis and rollup-plugin-analyzer's own (elaborate and useful) default reporting: Supplying the former disables the latter.
It would be helpful if the two weren't mutually exclusive so we could emit a summary while optionally also emitting the full report.
I imagine it might look something like this:
import { plugin as analyze, report } from 'rollup-plugin-analyzer'
…
plugins: [analyze({onAnalysis})]
…
function onAnalysis(params) {
console.error(`${params.bundleOrigSize} → ${params.bundleSize}`)
if (FULL_REPORT) {
console.error(report(params))
}
}
Currently we have to decide between custom reporting via
onAnalysisand rollup-plugin-analyzer's own (elaborate and useful) default reporting: Supplying the former disables the latter.It would be helpful if the two weren't mutually exclusive so we could emit a summary while optionally also emitting the full report.
I imagine it might look something like this: