Skip to content

Controlling sources URL in inlined source maps (sourceRoot) #5613

@mprobst

Description

@mprobst

When inlining/embedding a source map into files, TypeScript compiler seems to always generate local file names, instead of paths e.g. matching what would end up in --outDir. tsc does not accept a sourceRoot, and does not use rootDir for the denormalization.

Ideally, I would like to pass in a sourceRoot of '' (empty string), so that all files end up with the complete path showing properly.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions