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
fix(compile): disable source mapping of errors #8581
Conversation
This commit disables source mapping of errors for standalone binaries. Since applying source maps relies on using file fetcher infrastructure it's not feasible to use it for standalone binaries that are not supposed to use that infrastructure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should still change the specifier to not use file URL hosts. The error site shows that we have liberally used |
@nayeemrmn that was already suggested by Kitson in #8578 (comment); I think we should go with some "magic" protocol instead of appending to current exe path. WDYT? |
I suggested a file URL because it matches the virtual modules of other subcommands. But maybe it's unfortunate to use a file URL which isn't in the FS, if so we should change all of them. |
I guess |
We use |
I am of the opinion of I agree that The problem with the other subcommands, especially test, that I ran across is that the module expects to be relative... There is an argument though that test should have absolute specifiers it imports anyways. That would be better IMO, I have always hated that it was a "lie". |
Right, we should distinct user code.
👍 agreed
I think this stems from one of the first versions of |
Actually, the relatively located file URLs are essential for |
@nayeemrmn true... we should "fix" it for |
This commit disables source mapping of errors
for standalone binaries. Since applying source
maps relies on using file fetcher infrastructure
it's not feasible to use it for standalone binaries
that are not supposed to use that infrastructure.
Closes #8578