You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
sources field is not consistent with other source maps. It should always be relative to the source map. Currently, it just puts whatever you pass down to transformRequest.
Describe the bug
When passing down SSR flag to
transformRequest
, it returns incorrect mapsources
(should be relative, like when you don't passssr
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
https://stackblitz.com/edit/node-tb5tp5?file=folder%2Ftest.js,index.js
Steps to reproduce
Run
node index.js
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: