Use Import Breakdown for performance diagnostics
mainIf you are using Vitest 4.1 or higher, the extension provides performance diagnostics during continuous runs. It displays the time taken to load and transform modules directly on the line where the import is defined.
- How to view: Look for the duration number next to your
importstatements during a watch session. - Details: Hover over the duration to see detailed diagnostics including transform and evaluation time.
- Disable: Turn off this feature by setting
vitest.showImportsDurationtofalsein your settings.