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

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Provide a description in this issue that describes the bug.
  • Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

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