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

Use relative file location in source maps with relativeSourceLocation enabled #5464

Merged
merged 5 commits into from
Dec 22, 2023

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Dec 4, 2023

Summary

This option was added back when source maps were not included in #3141.

Source map addition for better LogBox experience was added in #3846 - but it didn't take into account relativeSourceLocation. This PR fixes this and there is no more absolute location in the source map while relativeSourceLocation is on.

I haven't found a way to generate the source map with relative location out-of-the-box.

Test plan

In WorkletExample see that LogBox is working as intended. Also plugin tests maybe.

@tjzel tjzel marked this pull request as ready for review December 22, 2023 15:33
Copy link
Contributor

@bartlomiejbloniarz bartlomiejbloniarz left a comment

Choose a reason for hiding this comment

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

🚀

@tjzel tjzel added this pull request to the merge queue Dec 22, 2023
Merged via the queue into main with commit f40ee24 Dec 22, 2023
7 checks passed
@tjzel tjzel deleted the @tjzel/enable-relative-location-in-sourcemap branch December 22, 2023 16:57
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.

2 participants