Update Readme instructions for ReactRefreshWebpackPlugin #578
Update Readme instructions for ReactRefreshWebpackPlugin #578tomdracz merged 1 commit intoshakacode:mainfrom
Conversation
By v0.6.0 react refresh plugin has removed the overlay sockPort option.
WalkthroughThe documentation for configuring ReactRefreshWebpackPlugin in a webpack setup was updated. The explicit overlay configuration, which set the Changes
Poem
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
♻️ Duplicate comments (1)
docs/react.md (1)
198-201: Same clarification applies here – see previous comment.
🧹 Nitpick comments (1)
docs/react.md (1)
63-65: Mention minimum plugin version to prevent copy-paste breakage
new ReactRefreshWebpackPlugin()is valid only from@pmmmwh/[email protected]onwards.
Readers on an older codebase who blindly follow the docs will get a runtime error about the unknownoverlayoption being missing.Consider adding an inline note right below this snippet – e.g.
> Requires @pmmmwh/react-refresh-webpack-plugin ≥ 0.6.0or pinning the install command to
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.0".
Summary
Current Readme suggests react-refresh-webpack-plugin usage like this:
In v0.6.0 react refresh plugin has removed the overlay sockPort option.
It was released on 28 Apr 2025. From release notes:
New configuration should be:
Pull Request checklist
Other Information
Summary by CodeRabbit