Vite: Bug when rewriting relative import in un-optimized node_modules

Created on 22 May 2020  路  1Comment  路  Source: vitejs/vite

Do NOT ignore this template or your issue will have a very high chance to be closed without comment.

Describe the bug

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.

Reproduction

Here is a minimal reproduce:
https://github.com/csr632/test-vite/tree/wrong-resolve

System Info

  • required vite version: 0.16.6
pending triage

Most helpful comment

I am working on this

>All comments

I am working on this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefnotch picture stefnotch  路  3Comments

ciaoben picture ciaoben  路  4Comments

Hoverhuang-er picture Hoverhuang-er  路  3Comments

wobsoriano picture wobsoriano  路  4Comments

pd4d10 picture pd4d10  路  3Comments