Skip to content

TypeScript sourcemap doesn't have a "file" field #10311

@piggov

Description

@piggov

Description

Hi all,

I'm using Vite with jsx + ts. Jsx files work great in DevTools and I can even change it directly in DevTools, save and the file will be saved in the filesystem. That's awesome!

This is not the case however for TypeScript files. Changing the file in DevTools does nothing in the filesystem. I investigated the Source map and saw that the jsx one has the field "file" equal to the path of the file, while the ts one doesn't have it.

Suggested solution

Add the "file" field/property to the TypeScript sourcemap so that it can be bound automatically in DevTools.

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions