Do NOT ignore this template or your issue will have a very high chance to be closed without comment.
When dev server rewriting relative import inside un-optimized node_modules, the rewrited path is wrong and cause 404 when request the child modules.
This is the same issue with https://github.com/vitejs/vite/issues/204 but I didn't provide reproduction. So I open this issue.
Here is a minimal reproduce:
https://github.com/csr632/test-vite/tree/wrong-resolve
vite version: 0.16.6I am working on this
Most helpful comment
I am working on this