Skip to content

refactor(Worklets): add worklet directives before react compiler#9206

Open
tjzel wants to merge 1 commit intomainfrom
@tjzel/worklets/compiler
Open

refactor(Worklets): add worklet directives before react compiler#9206
tjzel wants to merge 1 commit intomainfrom
@tjzel/worklets/compiler

Conversation

@tjzel
Copy link
Copy Markdown
Collaborator

@tjzel tjzel commented Apr 1, 2026

Summary

Partially fixes

Now in the pre step for the Worklets Babel Plugin we all add the 'worklet' directives so it happens before React Compiler kicks in and prevents some breaking transformations.

Later on the worklets are transformed as usual.

Test plan

I added a test suite which should be failing for the moment - a change in the React Compiler from this PR is still required:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant