Bundle analyzer by perfsee
npm install @perfsee/bundle-analyzer@perfsee/bundle-analyzer``ts
import { StatsParser } from '@perfsee/bundle-analyzer'
// or const parser = StatsParser.FromStatsFile(webpackStatsFile)
const parser = StatsParser.FromStats(webpackStats, outputPath)
const { result, content } = await parser.parse()
// reference
console.log(result)
// module references tree
console.log(content)
``
The module tree part is forked from webpack-bundle-analyzer