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
Refactor bundler detection and improve documentation
Code quality improvements:
1. **Extract bundler detection to shared utility**
- Created config/webpack/bundlerUtils.js with getBundler(), isRspack(), getCssExtractPlugin()
- Eliminates duplication across clientWebpackConfig.js and serverWebpackConfig.js
- Provides single source of truth for bundler selection
2. **Improve error messages**
- serverWebpackConfig.js now provides actionable error message with specific
file paths and configuration to check when server-bundle entry is missing
3. **Enhance documentation**
- Added "Verifying Patches" section to patches/README.md with concrete steps
- Improved Sass modern API comments explaining why it's needed
- Added common troubleshooting scenarios for patch application
All changes tested with both Webpack and Rspack bundlers.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments