Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
6 tasks done
AlttiRi opened this issue Apr 13, 2021 · 2 comments · Fixed by #12079
Closed
6 tasks done

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

AlttiRi opened this issue Apr 13, 2021 · 2 comments · Fixed by #12079

Comments

@AlttiRi
Copy link

AlttiRi commented Apr 13, 2021

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

@AlttiRi
Copy link
Author

AlttiRi commented Apr 13, 2021

By the way, as noted here: #2623 such source maps also exposes user's OS login.

It's why I placed project into a custom folder C:/Admin/ (not in ~/Projects) to make screenshots for this issue and other my issues posted here about source maps ([1], [2]).

@alexkuc
Copy link

alexkuc commented Nov 2, 2022

I am experiencing this issue. Although, #2623 is closed? Is the issue considered fixed?

I am on Linux (Ubuntu) and I am seeing full (absolute) path when using custom mode.

If this is different, than the issue discussed, I'll submit a new issue.

@sapphi-red sapphi-red linked a pull request Feb 17, 2023 that will close this issue
4 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants