Skip to content

Remove absolute local path to a component from source maps #2967

@AlttiRi

Description

@AlttiRi

Describe the bug

One part of my suggestion (#2950 I hope you find it worthwhile) about source maps in Vite is fixing this thing about that I will talk in this issue.

It is showing an absolute local path to a component in source maps in dev mode.
It looks like a clear bug.

Look:

source maps of the start project

Both orange (created from source maps) directories are redundant. It looks not nice.

Reproduction

Run any project in dev mode and inspect it.

System Info

Node: 15.9.0
@vitejs/plugin-vue: 1.2.1
vite: 2.1.5

Before submitting the issue, please make sure you do the following

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions