Skip to content

expose default reporting #2

@FND

Description

@FND

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))
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions