A Rollup plugin that tracks and logs build times to a JSON file, enabling teams to monitor build performance over time. Version 0.0.19 is the latest release (April 2021), part of a monorepo that also includes a webpack variant and a core package. It provides project-level configuration, daily summaries, and a web-based log analyzer. Unlike general logging plugins, it focuses specifically on build duration to help justify infrastructure improvements and detect configuration or hardware issues. The plugin is TypeScript-friendly with included type definitions.
npm install rollup-plugin-build-statisticsVerified import paths — ran on the pinned version, not inferred.
Example Rollup config integrating the build statistics plugin with all configuration options.
Add 'stats' to your .gitignore file.
Periodically delete old log files or implement a rotation strategy.
Use a unique name when importing if collisions occur: import customName from 'rollup-plugin-build-statistics'.
Run 'npm install --save-dev rollup-plugin-build-statistics'.
Use 'import buildStatistics from 'rollup-plugin-build-statistics' (no curly braces).
Add projectName to the plugin options object.
No dependency data recorded yet.