fix: nested dependencies from sub node_modules, fix #3254 #4091
It's still a "easy fix". I think it's not necessary to use another
As I didn't read through the whole code base of vite, there may still be unconsidered circumstances causing error.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following