Skip to content

Stop prepending file:// to sourcemap paths #16183

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

Merged
merged 1 commit into from
Jun 2, 2017

Conversation

amcasey
Copy link
Member

@amcasey amcasey commented May 31, 2017

Submitting on behalf of @mhegazy.

Submitting on behalf of mhegazy
@amcasey amcasey requested a review from mhegazy May 31, 2017 23:40
@msftclas
Copy link

@amcasey,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@amcasey
Copy link
Member Author

amcasey commented Jun 2, 2017

@sandersn was going to confirm that this didn't break some other debugger scenarios.

@@ -321,9 +321,6 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, opts
}
else {
options += " -sourcemap";
if (!opts.noMapRoot) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can now remove all references to noMapRoot in this file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, missed this one. I'll create a separate PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandersn
Copy link
Member

sandersn commented Jun 2, 2017

I'm about to try it with the Chrome/Ubuntu/jake combination to make sure that it works. (I believe this combination was broken before and that only gulp worked.)

I'll sign off when I confirm that it works.

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, but it works differently than gulp. With jake, the source maps show up under built/local/src/compiler/checker.ts (for example). With gulp source maps show up udner src/compiler/checker.ts (for example).

This is a big improvement on not working at all!

@amcasey
Copy link
Member Author

amcasey commented Jun 2, 2017

@sandersn I believe the gulp/jake difference is captured by #11105.

@amcasey amcasey merged commit 20c11b4 into microsoft:master Jun 2, 2017
@amcasey amcasey deleted the SourceMapProtocol branch June 2, 2017 20:36
amcasey added a commit to amcasey/TypeScript that referenced this pull request Jun 2, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants