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

ref: Use better artifacts url resolution for sourcemaps explain #1329

Merged
merged 1 commit into from Sep 15, 2022

Conversation

kamilogorek
Copy link
Contributor

@kamilogorek kamilogorek commented Sep 15, 2022

This better mimics the behavior of https://github.com/getsentry/sentry/blob/72e351082168f68cbaa5700a51e8ed577222e887/src/sentry/lang/javascript/processor.py#L984 and our internal release fetching mechanism.

Based on https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.lmz475t4mvbx the sourcemap url should be relative to the path the JS file was loaded from.
Thos http://whatever.com/static/js/bundle.js with sourceMappingURL=foo.js should point to http://whatever.com/static/js/foo.js and not just http://whatever.com/foo.js.

Also fixes #1313 along the way.

@kamilogorek kamilogorek requested a review from a team September 15, 2022 10:41
@kamilogorek kamilogorek merged commit 57da755 into master Sep 15, 2022
@kamilogorek kamilogorek deleted the join-sourcemappingurl branch September 15, 2022 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explain source map crash line 433
2 participants