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

Remove location property in worklets for production builds #4695

Merged
merged 3 commits into from
Jul 11, 2023

Conversation

tjzel
Copy link
Contributor

@tjzel tjzel commented Jul 10, 2023

Summary

Currently we inject location property in worklets - which is there for debugging purposes - even in production build. This PR corrects this.

Fixes: #4689

Test plan

Added a new test suite in plugin. Also ran production android Example just to be sure.

@tjzel tjzel requested a review from tomekzaw July 10, 2023 12:57
__tests__/plugin.test.ts Outdated Show resolved Hide resolved
__tests__/__snapshots__/plugin.test.ts.snap Show resolved Hide resolved
plugin/jestUtils.ts Outdated Show resolved Hide resolved
Copy link
Member

@tomekzaw tomekzaw left a comment

Choose a reason for hiding this comment

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

Thanks for optimizing this! 👍

@tjzel tjzel added this pull request to the merge queue Jul 11, 2023
Merged via the queue into main with commit 3898414 Jul 11, 2023
1 check passed
@tjzel tjzel deleted the @tjzel/plugin/location branch July 11, 2023 11:51
Latropos pushed a commit that referenced this pull request Jul 11, 2023
## Summary

Currently we inject `location` property in worklets - which is there for
debugging purposes - even in production build. This PR corrects this.

Fixes: #4689

## Test plan

Added a new test suite in plugin. Also ran production android Example
just to be sure.
Latropos pushed a commit that referenced this pull request Jul 13, 2023
## Summary

Currently we inject `location` property in worklets - which is there for
debugging purposes - even in production build. This PR corrects this.

Fixes: #4689

## Test plan

Added a new test suite in plugin. Also ran production android Example
just to be sure.
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.

Output of react-native bundle containes source code loation when using with babel plugin
3 participants