Commit 952216d
Bump Rspack dependencies to v2 (^2.0.0-0) (#3084)
## Summary
- Updates generator and `bin/switch-bundler` Rspack dependencies from v1
to v2
- `@rspack/core@^2.0.0-0` and `@rspack/cli@^2.0.0-0` — the `-0`
prerelease suffix ensures RC builds (currently `2.0.0-rc.1`) are
included until stable 2.0.0 lands
- `@rspack/plugin-react-refresh@^2.0.0` — already stable at 2.0.0
- `rspack-manifest-plugin@^5.0.0` — unchanged, already compatible with
Rspack v2
Closes #3082
## Test plan
- [x] `js_dependency_manager_spec.rb` passes
- [x] RuboCop passes on all changed files
- [x] CI passes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Changed**
* Upgraded Rspack bundler support from version 1 to version 2. Updated
dependency configurations in the installation generator and bundler
switching utility to use Rspack v2 packages, enabling support for
prerelease and release candidate builds.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: ihabadham <ihabadham4p@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5c56db0 commit 952216d
5 files changed
Lines changed: 17 additions & 8 deletions
File tree
- react_on_rails
- lib/generators/react_on_rails
- templates/base/base/bin
- spec/react_on_rails/generators
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | | - | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| 103 | + | |
101 | 104 | | |
102 | | - | |
103 | | - | |
| 105 | + | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
679 | 681 | | |
680 | 682 | | |
681 | 683 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
0 commit comments