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
feat(react): add fast refresh support for webpack 5 #6529
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/nrwl/nx-dev/6CSBWYDPfK4SaCpVeA7fwX4g4Uat [Deployment for 8b66c73 canceled] |
); | ||
const entryFiles: FileInfo[] = entrypoint | ||
?.getFiles() | ||
?.filter((f) => !f.endsWith('.hot-update.js')) |
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.
This is needed to avoid hot-update files from being included in generated HTML (which breaks).
63e0b98
to
a6ee594
Compare
Nx Cloud ReportCI ran the following commands for commit 8b66c73. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch Sent with 💌 from NxCloud. |
a6ee594
to
6d6b303
Compare
6d6b303
to
9bda250
Compare
9bda250
to
793c475
Compare
793c475
to
8b66c73
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This PR enables fast refresh for React and webpack 5.
Current Behavior
Upgrading to webpack 5 breaks fast refresh.
Expected Behavior
Upgrading to webpack 5 supports fast refresh
Related Issue(s)
Fixes #6506