Fix webpack-cli compatibility with webpack-dev-server v5#2291
Fix webpack-cli compatibility with webpack-dev-server v5#2291AbanoubGhadban merged 2 commits intomasterfrom
Conversation
- Update webpack-cli from v4 to v6.0.1 in all dummy apps - Remove deprecated @webpack-cli/serve dependency (now bundled) - Remove deprecated https: false from shakapacker.yml dev_server configs Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Warning Rate limit exceeded@AbanoubGhadban has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 10 minutes and 25 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (7)
✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
Code Review SummaryThis PR upgrades webpack-cli from v4 to v6.0.1 to maintain compatibility with webpack-dev-server v5. Overall, the changes are well-executed and focused, addressing the core compatibility issue. Here's my detailed feedback: ✅ Strengths
|
Greptile OverviewGreptile SummaryThis PR upgrades webpack-cli from v4 to v6.0.1 to resolve compatibility issues with webpack-dev-server v5. The changes are applied consistently across three dummy applications used for testing. Changes Made
Architecture ContextThe upgrade path is straightforward:
VerificationAll changes are consistent across the three dummy applications:
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Rails as Rails App
participant Shakapacker as Shakapacker
participant WebpackCLI as webpack-cli v6
participant WebpackDevServer as webpack-dev-server v5
Note over Dev,WebpackDevServer: Before: webpack-cli v4 + webpack-dev-server v5 (incompatible)
Dev->>Rails: bin/shakapacker-dev-server
Rails->>Shakapacker: DevServerRunner.run()
Shakapacker->>WebpackCLI: Execute webpack-cli v4
WebpackCLI--xWebpackDevServer: ❌ Version mismatch
Note over Dev,WebpackDevServer: After: webpack-cli v6 + webpack-dev-server v5 (compatible)
Dev->>Rails: bin/shakapacker-dev-server
Rails->>Shakapacker: DevServerRunner.run()
Note over Shakapacker: Reads shakapacker.yml<br/>(https: false removed)
Shakapacker->>WebpackCLI: Execute webpack-cli v6
Note over WebpackCLI: @webpack-cli/serve v3<br/>bundled internally
WebpackCLI->>WebpackDevServer: ✅ Start dev server
WebpackDevServer-->>Dev: Hot Module Replacement ready
|
Shakapacker 9.5.0 gem was released but has a version detection issue where the npm package version doesn't match. Pin to 9.4.0 until this is resolved upstream. Co-Authored-By: Claude Opus 4.5 <[email protected]>
PR Review: Fix webpack-cli compatibility with webpack-dev-server v5SummaryThis PR upgrades webpack-cli from v4 to v6.0.1 to ensure compatibility with webpack-dev-server v5. The changes include:
Code Quality & Best Practices ✅Positive aspects:
Potential Issues & Recommendations
|
Added new v16.2.0.rc.1 version section with two bug fixes: - Fixed JSON parse race condition in immediate_hydration (PR #2290) - Fixed webpack-cli compatibility with webpack-dev-server v5 (PR #2291) Updated version links to reflect new rc.1 release. Co-Authored-By: Claude Haiku 4.5 <[email protected]>
### Summary Updated CHANGELOG.md to document v16.2.0.rc.1 release with two bug fixes that address streaming and build compatibility issues since rc.0. ### Pull Request checklist - [x] Update CHANGELOG file ### Changes - **JSON Parse Race Condition Fix** (PR #2290): Fixed race condition in `immediate_hydration` that could cause JSON parse errors when HTML streams on slow networks. - **webpack-cli Compatibility Fix** (PR #2291): Fixed compatibility issue with webpack-dev-server v5 by upgrading webpack-cli and removing deprecated configurations. Co-authored-by: Claude Haiku 4.5 <[email protected]>
Summary
https: falsefrom shakapacker.yml configsTest plan
pnpm installsucceeds in all dummy apps🤖 Generated with Claude Code