-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
fix: use relative source path in sourcemapIgnoreList #12281
Conversation
Run & review this pull request in StackBlitz Codeflow. |
If this is meant to align with rollup, I'm not sure this is the same thing rollup is doing with regard to the relative paths. Personally, I think absolute |
This is the same run with rollup:
IIUC, I'm ok if we decide to use absolute paths here, I agree that for the dev server, it is a lot more ergonomic. |
I also think that having absolute paths here is the right thing to do here. If we learn in the future that it'd be beneficial to have (project) relative paths, and there are concrete use cases that don't work with absolute paths, we can always go back and re-investigate. |
@bluwy if you are ok too with keeping absolute paths, I'll close this PR. |
If we have 2 votes going with absolute paths, then I guess we could leave it then 😄 It might be good to note in the docs of the difference with rollup too, and/or note that they are absolute paths by default. |
+1 to updating the docs |
Ok, I'll send later a PR to clarify that. And we could force absolute path too. Right now, the paths for client.ts and overlay.ts are relative. |
Description
Context #12251 (comment)
Calls to
sourcemapIgnoreList
forvite dev
on a create-vite vue ts app after this changecc @bmeurer @danielroe @bluwy
What is the purpose of this pull request?