@perfsee/rollup
Repo | Docs
Perfsee rollup plugin used to collect bundle information and analyze.
Usage
const { PerfseePlugin } = require('@perfsee/rollup')
module.exports = {
plugins: [PerfseePlugin(options)],
}
options
interface Options {
project?: string
artifactName?: string
enableAudit?: boolean
shouldPassAudit?: (score: number, result: BundleResult) => Promise<boolean> | boolean
failIfNotPass?: boolean
token?: string
reportOptions?: {
openBrowser?: boolean
fileName?: string
}
processStats?: (stats: PerfseeReportStats) => undefined | PerfseeReportStats
rules?: (string | Audit)[]
}