@perfsee/esbuild
Repo | Docs
Perfsee esbuild plugin used to collect bundle information and analyze.
Usage
const { PerfseePlugin } = require('@perfsee/esbuild')
require('esbuild').build({
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)[]
}