New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module graph reports multiple times same modules imports #1374
Comments
It seems that there should actually be two modules |
@nieyuyao Correct, i believe that for the testing library it does make sense but |
Setup file is part of the suite, tho. Module Graph shows you every module that was invoked durung the run. |
The following code truncates the dependency name. So how to deal with dependencies with the same package name? vitest/packages/ui/client/composables/module-graph.ts Lines 12 to 16 in c3621c9
|
Describe the bug
I have been playing around with the module graph and I was curious if the reported modules are actually duplicated or if it's just an analysis of the file imports because it looks like lodash is represented more than once and some other packages (mostly @mui related but even testing library appears multiple times).
Reproduction
https://github.com/underfisk/vitest-module-graph
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: