Skip to content
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

Unique Debug IDs (Build IDs) for Source Maps #19

Open
mitsuhiko opened this issue Dec 3, 2022 · 0 comments
Open

Unique Debug IDs (Build IDs) for Source Maps #19

mitsuhiko opened this issue Dec 3, 2022 · 0 comments

Comments

@mitsuhiko
Copy link
Contributor

mitsuhiko commented Dec 3, 2022

One of the most annoying issues with source maps today is that they are referenced by names. This makes working with them in production very challenging. Sentry for instance needs to download all referenced source minified files, to then try to use those minified files to locate the source map and then hope that it's there. If it's not there, we hope that the users actually managed to upload the source maps with the information of that URL to our own system (eg: they need to achieve an exact match of where the source map is supposed to be but instead of uploading them to the public place, they upload them to us with the URL as name).

This is very brittle and usually means that many people have challenges getting source maps to work reliably for their own applications.

We have much better success with debug information files from C/C++ and other languages where we get a unique build ID which can then be fetched by that ID from a symbol server.

I'm curious if there is some appetite with embedding a unique build ID into the source map and to include that ID in the error.stack for reference by other tools.

I made a similar proposal for WASM (which however uses DWARF) and there is some movement into that direction: WebAssembly/tool-conventions#133

@mitsuhiko mitsuhiko changed the title Unique BuildIDs for Source Maps Unique Debug IDs (Build IDs) for Source Maps Apr 2, 2023
nicolo-ribaudo pushed a commit to nicolo-ribaudo/source-map that referenced this issue Mar 13, 2024
Deprecate x_google_ignoreList in favor of ignoreList, remove Known Extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants