Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mprobst opened this issue Nov 11, 2015 · 4 comments
Closed

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

mprobst opened this issue Nov 11, 2015 · 4 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mprobst
Copy link
Contributor

mprobst commented Nov 11, 2015

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.

@mprobst
Copy link
Contributor Author

mprobst commented Nov 11, 2015

In particular, this is the error message:

error TS5052: Option 'sourceRoot' cannot be specified without specifying option 'sourceMap'.
error TS5053: Option 'sourceRoot' cannot be specified with option 'inlineSourceMap'.

@mhegazy mhegazy added the Bug A bug in TypeScript label Nov 11, 2015
@mhegazy mhegazy added this to the TypeScript 1.8 milestone Nov 11, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Nov 11, 2015

@sheetalkamat ran into this yesterday. she should have a fix for it.

@mhegazy
Copy link
Contributor

mhegazy commented Nov 12, 2015

@mprobst can you give typescript@next a try.

@mprobst
Copy link
Contributor Author

mprobst commented Nov 13, 2015

@mhegazy: I'll be OOO next week, will look into this once I'm back.

Mohamed Hegazy [email protected] schrieb am Do., 12. Nov. 2015 um
13:31 Uhr:

@mprobst https://github.com/mprobst can you give typescript@next a try.


Reply to this email directly or view it on GitHub
#5613 (comment)
.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants