refactor(react): remove worklet runtime shell package#2440
refactor(react): remove worklet runtime shell package#2440Yradex merged 3 commits intolynx-family:mainfrom
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (2)
📝 WalkthroughWalkthroughThis PR consolidates the standalone Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~35 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/react/runtime/__test__/worklet-runtime/runtimeSourceLayout.test.js`:
- Line 63: The test only asserts that 'worklet-runtime' is removed from
reactPackageJson.files; add a positive assertion to ensure the new bundle
directory is published by asserting reactPackageJson.files contains
'runtime/worklet-runtime' (i.e., add an
expect(reactPackageJson.files).toContain('runtime/worklet-runtime') alongside
the existing not.toContain check in runtimeSourceLayout.test.js).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 1d8afea1-d8ef-44da-984c-397b9133418f
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (18)
.github/workflows/test.ymlpackages/react/package.jsonpackages/react/rslib.config.tspackages/react/runtime/.gitignorepackages/react/runtime/.npmignorepackages/react/runtime/__test__/worklet-runtime/runtimeSourceLayout.test.jspackages/react/runtime/package.jsonpackages/react/runtime/src/worklet-runtime/api/lepusQuerySelector.tspackages/react/runtime/tsconfig.jsonpackages/react/runtime/turbo.jsonpackages/react/tsconfig.jsonpackages/react/turbo.jsonpackages/react/worklet-runtime/.gitignorepackages/react/worklet-runtime/.npmignorepackages/react/worklet-runtime/package.jsonpackages/react/worklet-runtime/tsconfig.jsonpackages/react/worklet-runtime/vitest.config.tspnpm-workspace.yaml
💤 Files with no reviewable changes (8)
- packages/react/tsconfig.json
- pnpm-workspace.yaml
- packages/react/worklet-runtime/.npmignore
- .github/workflows/test.yml
- packages/react/worklet-runtime/.gitignore
- packages/react/worklet-runtime/vitest.config.ts
- packages/react/worklet-runtime/package.json
- packages/react/worklet-runtime/tsconfig.json
packages/react/runtime/__test__/worklet-runtime/runtimeSourceLayout.test.js
Outdated
Show resolved
Hide resolved
Merging this PR will improve performance by 16.94%
Performance Changes
Comparing Footnotes
|
React External#283 Bundle Size — 590.57KiB (0%).04f043e(current) vs 59d11b2 main#264(baseline) Bundle metrics
|
| Current #283 |
Baseline #264 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
3 |
3 |
|
17 |
17 |
|
5 |
5 |
|
8.59% |
8.59% |
|
0 |
0 |
|
0 |
0 |
Bundle analysis report Branch Yradex:wt/move-mts-runtime-3-202... Project dashboard
Generated by RelativeCI Documentation Report issue
React MTF Example#298 Bundle Size — 206.09KiB (+0.02%).04f043e(current) vs 59d11b2 main#278(baseline) Bundle metrics
Bundle size by type
Bundle analysis report Branch Yradex:wt/move-mts-runtime-3-202... Project dashboard Generated by RelativeCI Documentation Report issue |
Web Explorer#8740 Bundle Size — 730.24KiB (0%).04f043e(current) vs 59d11b2 main#8720(baseline) Bundle metrics
|
| Current #8740 |
Baseline #8720 |
|
|---|---|---|
43.63KiB |
43.63KiB |
|
2.16KiB |
2.16KiB |
|
0% |
0% |
|
8 |
8 |
|
10 |
10 |
|
150 |
150 |
|
11 |
11 |
|
34.68% |
34.68% |
|
3 |
3 |
|
0 |
0 |
Bundle size by type no changes
| Current #8740 |
Baseline #8720 |
|
|---|---|---|
385.55KiB |
385.55KiB |
|
342.53KiB |
342.53KiB |
|
2.16KiB |
2.16KiB |
Bundle analysis report Branch Yradex:wt/move-mts-runtime-3-202... Project dashboard
Generated by RelativeCI Documentation Report issue
React Example#7165 Bundle Size — 236.79KiB (0%).04f043e(current) vs 59d11b2 main#7145(baseline) Bundle metrics
|
| Current #7165 |
Baseline #7145 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
4 |
4 |
|
179 |
179 |
|
70 |
70 |
|
46.11% |
46.11% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #7165 |
Baseline #7145 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
91.03KiB |
91.03KiB |
Bundle analysis report Branch Yradex:wt/move-mts-runtime-3-202... Project dashboard
Generated by RelativeCI Documentation Report issue
Summary by CodeRabbit
Bug Fixes
querySelectorandquerySelectorAll), ensuring graceful handling when the page element is unavailable by returningnullor an empty array respectively.Chores
Summary
packages/react/worklet-runtimeshell package and move its worklet bundle build underpackages/react@lynx-js/react/worklet-runtimeand@lynx-js/react/worklet-dev-runtimeexported from@lynx-js/reactwhile resolving bindings fromruntime/lib/worklet-runtime@lynx-js/react-runtime#buildinto the turbo graph and keep its incremental metadata underruntime/libso clean builds and published tarballs regenerate both runtime lib artifacts and worklet bundle outputsChecklist