A Vite plugin that reports build and dev server startup times. Current version 2.3.0 supports Vite 2,3,4,5 and is ESM+CJS dual-package (ESM-only since v2.2.0). Ships TypeScript types, requires Node >=18. Reports elapsed time for each plugin and total build time in a clean console output. Minimal configuration, no external dependencies beyond Vite as a peer dependency.
npm install vite-plugin-time-reporterVerified import paths — ran on the pinned version, not inferred.
Adds the time reporter plugin to a Vite config, showing build and dev server time in console.
Use ESM imports (import) or dynamic import if in a CJS context.
Ensure your bundler supports the package.json `exports` field, or upgrade to v2.2.0+ (ESM-only).
Check Vite's `--logLevel` option; the plugin respects Vite's logger verbosity.
Use `npm install --save-dev` (or equivalent).
Change to `import timeReporter from 'vite-plugin-time-reporter'` or use dynamic import.
Install as dev dependency: `npm install --save-dev vite-plugin-time-reporter`. For older bundlers, upgrade to v2.2.0+.
Use default import: `import timeReporter from 'vite-plugin-time-reporter'`. Or upgrade to v2.0.0+.