A Vite plugin that reports build and dev server startup times. Version 2.3.2 supports Vite 2, 3, 4, 5, and 7 (via a forked package). Provides a simple, configurable time log for each Vite run, displaying formatted durations for key phases like resolving plugins, loading config, and building. Unlike manual console.time calls or full-featured profiling tools, this plugin is lightweight, zero-config, and integrates directly into the Vite plugin lifecycle. Published on npm with two packages: `vite-plugin-time-reporter` for Vite ≤5 and `vite-plugin-time-reporter-vite7` for Vite 7. Ships TypeScript declarations and is actively maintained (2025).
npm install vite-plugin-time-reporter-vite7Verified import paths — ran on the pinned version, not inferred.
Shows how to configure the plugin in vite.config.ts with a Vue project.
Install vite-plugin-time-reporter-vite7 instead of vite-plugin-time-reporter when using Vite 7.
Remove any arguments passed to timeReporter(). Previously configurable options are now automatically set.
Add timeReporter() last in the plugins array, or at least after plugins that transform code.
Monitor the GitHub repository for future consolidation.
Run `npm install --save-dev vite-plugin-time-reporter-vite7` for Vite 7, or the correct package for your Vite version.
Use `const timeReporter = require('vite-plugin-time-reporter').default` (or switch to ESM import).Ensure timeReporter() is called only once in the plugins array.