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

Add opts for relative source location #3141

Merged
merged 1 commit into from Apr 12, 2022

Conversation

jiulongw
Copy link
Contributor

@jiulongw jiulongw commented Apr 6, 2022

Description

We use react-native-reanimated in a npm package which publishes babel build output. We want output to be deterministic regardless of builder configuration.

Changes

Add plugin option that uses relative path for source location.

Checklist

  • Included code example that can be used to test this change
  • [ ] Updated TS types
  • [ ] Added TS types tests
  • [ ] Added unit / integration tests
  • Updated documentation
  • Ensured that CI passes

@piaskowyk piaskowyk self-requested a review April 7, 2022 11:11
@piaskowyk piaskowyk self-assigned this Apr 7, 2022
Copy link
Member

@piaskowyk piaskowyk left a comment

Choose a reason for hiding this comment

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

Well done! 👏 I tested it and everything works great.

@piaskowyk piaskowyk merged commit e4bc507 into software-mansion:main Apr 12, 2022
github-merge-queue bot pushed a commit that referenced this pull request Dec 22, 2023
…n` enabled (#5464)

## 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.
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.

None yet

2 participants