Skip to content

Inconsistent source maps #12885

@sheremet-va

Description

@sheremet-va

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

https://stackblitz.com/edit/node-tb5tp5?file=folder%2Ftest.js,index.js

Steps to reproduce

Run node index.js

System Info

Stackblitz

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat: ssrp3-minor-bugAn edge case that only affects very specific usage (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions