-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Inconsistent source maps #12885
Copy link
Copy link
Closed
Labels
feat: ssrp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
When passing down SSR flag to transformRequest, it returns incorrect map sources (should be relative, like when you don't pass ssr flag) if the file has .js extension and didn't have a map before. I wasn't able to reproduce the issue any other way.
Reproduction
Steps to reproduce
Run node index.js
System Info
StackblitzUsed Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- 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.
- 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 vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat: ssrp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)