You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix React Refresh to only enable with webpack-dev-server
- Change refresh condition from NODE_ENV === 'development' to WEBPACK_SERVE
- This ensures Fast Refresh only activates when using webpack-dev-server (bin/dev)
- Avoids unnecessary Fast Refresh transformation for static builds (bin/shakapacker)
- Matches the behavior of ReactRefreshWebpackPlugin in development.js
The WEBPACK_SERVE environment variable is set by webpack-dev-server and is the
correct indicator for when HMR and Fast Refresh should be active.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments