Registry / devops / vite-plugin-time-reporter-vite7

vite-plugin-time-reporter-vite7

JSON →
library2.3.2jsnpmunverified

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-vite7
INSTALL
IMPORT
SIG · VITE-PLUGIN-TIME-R
V
vite-plugin-time-reporter-vite7
devopsjavascriptv2.3.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

timeReporter
import timeReporter from 'vite-plugin-time-reporter'
Default export; for Vite 7, use 'vite-plugin-time-reporter-vite7'
TimeReporterOptions
import type { TimeReporterOptions } from 'vite-plugin-time-reporter'
Type-only import for type definitions; not available in CJS
timeReporter
const timeReporter = require('vite-plugin-time-reporter').default
const timeReporter = require('vite-plugin-time-reporter')
CommonJS require must access .default because the package is ESM-first

Shows how to configure the plugin in vite.config.ts with a Vue project.

import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import timeReporter from 'vite-plugin-time-reporter'; export default defineConfig({ plugins: [vue(), timeReporter()], });
Debug
Known issues
breakingPackage split into two npm packages for Vite 7 compatibility. vite-plugin-time-reporter (v2.x) does not work with Vite 7; use vite-plugin-time-reporter-vite7 for Vite 7.
fix
Install vite-plugin-time-reporter-vite7 instead of vite-plugin-time-reporter when using Vite 7.
affects: >=7.0.0 of Vite
breakingRemoved options argument; timeReporter() now accepts no parameters.
fix
Remove any arguments passed to timeReporter(). Previously configurable options are now automatically set.
affects: >=2.0.0
gotchaPlugin must be placed after other transform plugins (e.g., vue) in the plugins array to capture accurate timing.
fix
Add timeReporter() last in the plugins array, or at least after plugins that transform code.
affects: all
deprecatedThe package name 'vite-plugin-time-reporter-vite7' is considered a fork and may not receive updates alongside the main package.
fix
Monitor the GitHub repository for future consolidation.
affects: >=2.3.0
Errors
Common errors & fixes
Cannot find module 'vite-plugin-time-reporter' or its corresponding type declarations.
Missing devDependency or using wrong package name for Vite 7.
fix
Run `npm install --save-dev vite-plugin-time-reporter-vite7` for Vite 7, or the correct package for your Vite version.
TypeError: timeReporter is not a function
CommonJS require without .default.
fix
Use `const timeReporter = require('vite-plugin-time-reporter').default` (or switch to ESM import).
The plugin 'vite:time-reporter' collides with another plugin with the same name.
Multiple instances of timeReporter added to plugins array.
fix
Ensure timeReporter() is called only once in the plugins array.
Upgrade
Version history
2.3.2latest on npm
Audit
Dependencies
viterequiredpeer dependency; plugin hooks into Vite's build and dev server lifecycle
Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
vite-plugin-time-reporter-vite7 — npm install vite-plugin-time-reporter-vite7 · libregistry