Skip to content

Bug when rewriting relative import in un-optimized node_modules #228

@csr632

Description

@csr632

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 #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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions