Skip to content

Preserve env references inside worklets#575

Open
leo1987820 wants to merge 1 commit into
goatandsheep:mainfrom
leo1987820:codex/fix-worklet-compat-565
Open

Preserve env references inside worklets#575
leo1987820 wants to merge 1 commit into
goatandsheep:mainfrom
leo1987820:codex/fix-worklet-compat-565

Conversation

@leo1987820

Copy link
Copy Markdown

Summary

  • preserve imported env bindings when they are referenced inside "worklet" functions
  • keep normal @env imports inlined for non-worklet usage
  • add a regression test for Reanimated/worklet-style functions

Verification

  • npm.cmd test -- --runInBand
  • npm.cmd run lint
  • git diff --check

Fixes #565.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (24b7af1) to head (a95bcf0).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #575   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           84        92    +8     
=========================================
+ Hits            84        92    +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Babel plugin breaks react-native-worklets/reanimated 4.x workletization (addListener crash)

1 participant