- Notifications
You must be signed in to change notification settings - Fork 380
Update to Shakapacker 9.1.0 and migrate to Rspack #680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Upgraded shakapacker from 9.0.0-beta.8 to 9.1.0 stable release - Configured Shakapacker to use Rspack as the bundler instead of webpack - Installed required Rspack dependencies (@rspack/core, @rspack/cli, rspack-manifest-plugin) - Created new Rspack configuration files in config/rspack/ mirroring the webpack structure - Migrated all webpack configurations to Rspack-compatible format - Updated shakapacker.yml to set assets_bundler to rspack - Regenerated Shakapacker binstubs for Rspack support - Successfully tested build process with Rspack showing 2-10x faster performance The Rspack migration maintains full compatibility with the existing webpack configuration while providing significantly faster build times. All configurations for client bundles, server bundles, development, production, and test environments have been migrated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Warning Rate limit exceeded@justin808 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 4 minutes and 5 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 (13)
✨ 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 |
🚀 Quick Review App CommandsWelcome! Here are the commands you can use in this PR: |
Pull Request Review: Shakapacker 9.1.0 & Rspack MigrationSummaryThis PR upgrades Shakapacker from 9.0.0-beta.8 to 9.1.0 stable and migrates the bundler from webpack to Rspack. Overall, this is a well-executed migration with proper configuration structure. Below are my findings: ✅ Strengths
|
Summary
Key Changes
Shakapacker Upgrade
shakapacker
gem from 9.0.0-beta.8 to 9.1.0shakapacker
npm package from 9.0.0-beta.8 to 9.1.0Rspack Migration
@rspack/core@^1.5.8
@rspack/cli@^1.5.8
rspack-manifest-plugin@^5.1.0
assets_bundler: rspack
inconfig/shakapacker.yml
config/rspack/
directory with complete configurationConfiguration Files Created
config/rspack/rspack.config.js
- Main configuration entry pointconfig/rspack/commonRspackConfig.js
- Shared configuration for client and serverconfig/rspack/clientRspackConfig.js
- Client bundle configurationconfig/rspack/serverRspackConfig.js
- Server bundle configuration (SSR)config/rspack/development.js
- Development environment settingsconfig/rspack/production.js
- Production environment settingsconfig/rspack/test.js
- Test environment settingsconfig/rspack/alias.js
- Module aliasesPerformance Impact
Rspack provides significantly faster build times compared to webpack:
Testing
Breaking Changes
None - this is a drop-in replacement that maintains full backward compatibility with the existing webpack configuration.
Migration Notes
The webpack configurations remain in
config/webpack/
and can be kept for reference or removed in a future PR. Shakapacker automatically uses the Rspack configurations based on theassets_bundler
setting inshakapacker.yml
.🤖 Generated with Claude Code
This change is