Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: profile-sync-controller mobile compilation issues (#4721)
## Explanation Our package has exported async arrow functions, which cannot be compiled during the `detox build android` step on mobile. <details><summary>See error logs</summary> ![Screenshot 2024-09-20 at 21 16 55](https://github.com/user-attachments/assets/08c49d3e-b448-40cf-ad23-715dbd10d185) </details> It is most likely related to this hermes error: facebook/hermes#1395 This removes the exported async arrow functions in the bundle for normal async functions. Long term we should either: - Add ESLint rules to prevent other devs or teams being burnt by this - Or have a transpilation step to avoid async arrow functions. ## References <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? Are there client or consumer pull requests to adopt any breaking changes? For example: * Fixes #12345 * Related to #67890 --> https://consensyssoftware.atlassian.net/browse/NOTIFY-1144 ## Changelog ### `@metamask/profile-sync-controller` - **CHANGED**: updated exported async arrow functions to normal async functions. ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate - [x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
- Loading branch information