-
Notifications
You must be signed in to change notification settings - Fork 109
fix(rspeedy/react): only inject hot clients on needed #1885
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: d6cf5e4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughImplements conditional loading of dev hot clients based on environment.config.dev.hmr and liveReload. Updates plugin-react development entry logic accordingly, adds tests for both disabled and partial HMR scenarios, and includes a changeset to bump @lynx-js/react-rsbuild-plugin with a patch. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (1).changeset/*.md📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧬 Code graph analysis (2)packages/rspeedy/plugin-react/test/config.test.ts (1)
packages/rspeedy/plugin-react/src/entry.ts (2)
🔇 Additional comments (6)
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✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Web Explorer#5883 Bundle Size — 364.58KiB (0%).d6cf5e4(current) vs e42b906 main#5880(baseline) Bundle metrics
Bundle size by type
|
| Current #5883 |
Baseline #5880 |
|
|---|---|---|
238.67KiB |
238.67KiB |
|
93.8KiB |
93.8KiB |
|
32.11KiB |
32.11KiB |
Bundle analysis report Branch colinaaa:colin/1013/dev-entries Project dashboard
Generated by RelativeCI Documentation Report issue
React Example#5887 Bundle Size — 237.56KiB (0%).d6cf5e4(current) vs e42b906 main#5884(baseline) Bundle metrics
|
| Current #5887 |
Baseline #5884 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
4 |
4 |
|
166 |
166 |
|
68 |
68 |
|
46.82% |
46.82% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #5887 |
Baseline #5884 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
91.8KiB |
91.8KiB |
Bundle analysis report Branch colinaaa:colin/1013/dev-entries Project dashboard
Generated by RelativeCI Documentation Report issue
CodSpeed Performance ReportMerging #1885 will improve performances by 13.82%Comparing Summary
Benchmarks breakdown
Footnotes
|
| .prepend({ | ||
| layer: LAYERS.BACKGROUND, | ||
| import: '@lynx-js/react/refresh', | ||
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think@lynx-js/react/refresh is only needed on HMR, am I right?
Summary by CodeRabbit
Improvements
Tests
Chores
Checklist