Skip to content

Show how long it took to load the module #688

@sheremet-va

Description

@sheremet-va

Clear and concise description of the problem

There is no timer displayed at the end of the import statement:

import Component from './components/Component' // 2ms

Suggested solution

Vitest collects information about import durations: https://vitest.dev/api/advanced/test-module.html#diagnostic

We can map the duration to location of static and known dynamic imports (with a static string inside)

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2-nice-to-haveNot breaking anything but nice to have (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions