Skip to content

feat: use own ReactRefreshLoader in all environments#967

Merged
jbroma merged 6 commits intomainfrom
fix/refresh-workaround
Feb 10, 2025
Merged

feat: use own ReactRefreshLoader in all environments#967
jbroma merged 6 commits intomainfrom
fix/refresh-workaround

Conversation

@jbroma
Copy link
Copy Markdown
Contributor

@jbroma jbroma commented Feb 10, 2025

Summary

This PR standardises the React Refresh loader implementation by using our custom loader in both Webpack and Rspack configurations, improving compatibility and reliability of Hot Module Replacement (HMR).

  • - Added new export path for React Refresh loader in package.json
  • - Added setImmediate availability check in React Refresh runtime code
  • - Removed Webpack-specific fallback loader configuration
  • - Updated documentation to reflect the unified loader approach
  • - Removed now redundant setImmediate shim injection

Test plan

  • - testers work

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 10, 2025

🦋 Changeset detected

Latest commit: e259468

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@callstack/repack Major
@callstack/repack-plugin-expo-modules Major
@callstack/repack-plugin-nativewind Major
@callstack/repack-plugin-reanimated Major
@callstack/repack-dev-server Major
@callstack/repack-init Major

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
repack-website ⬜️ Ignored (Inspect) Visit Preview Feb 10, 2025 3:49pm

@jbroma jbroma requested a review from szymonrybczak February 10, 2025 15:54
@jbroma jbroma merged commit 3f22966 into main Feb 10, 2025
@jbroma jbroma deleted the fix/refresh-workaround branch February 10, 2025 16:03
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.

2 participants