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

fix: Allow TypeScript in worklet classes #6667

Merged
merged 7 commits into from
Nov 19, 2024

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Nov 5, 2024

Summary

Turns out @babel/preset-typescript always has to be included when calling transformSync from babel (it cannot be included in a later call). Due to that I made all transformSync calls into a wrapper call that uses a required set of plugins and presets.

Fixes

Test plan

  • Plugin unit tests pass
  • Runtime tests pass

@tjzel tjzel requested a review from tomekzaw November 5, 2024 12:30
@tjzel tjzel added this pull request to the merge queue Nov 19, 2024
Merged via the queue into main with commit 7927605 Nov 19, 2024
10 checks passed
@tjzel tjzel deleted the @tjzel/plugin/typescript-in-worklet-classes branch November 19, 2024 10:40
tjzel added a commit that referenced this pull request Nov 20, 2024
Turns out `@babel/preset-typescript` always has to be included when
calling `transformSync` from `babel` (it cannot be included in a later
call). Due to that I made all `transformSync` calls into a wrapper call
that uses a required set of plugins and presets.

Fixes
- #6642

- [x] Plugin unit tests pass
- [x] Runtime tests pass
@tjzel tjzel mentioned this pull request Nov 20, 2024
tjzel added a commit that referenced this pull request Nov 20, 2024
## Summary

Cherry-picking:

- #6715
- #6705
- #6706
- #6725
- #6667

## Test plan

---------

Co-authored-by: Wojciech Lewicki <[email protected]>
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.

4 participants