A Vite plugin that measures the transform speed of other Vite plugins, currently at version 2.0.1. It wraps plugins and records execution time for hooks like transform, resolveId, and load. Compatible with Vite >= 3.0.0. Differentiators: simple API, supports both build and dev mode (with gap detection), and allows custom hook selection and sort order. Ships TypeScript types. Low bundle size.
npm install speed-measure-vite-pluginVerified import paths — ran on the pinned version, not inferred.
Measures plugin transform speed in a Vite build with Vue.
Replace maxTransformTimeOnce with maxGapTimeOnce in the options object.
Use smvp([plugin1, plugin2]) instead of smvp(plugin1, plugin2).
Use import smvp from 'speed-measure-vite-plugin' instead of import { smvp } from 'speed-measure-vite-plugin'.Use import() syntax or ensure your project is configured for ESM.
Change to import smvp from 'speed-measure-vite-plugin'.
Wrap your plugins array with smvp: smvp([vue(), ...])