Flip shakapacker back to rspack once react_on_rails_rsc#29 ships rspack RSC support

Open
#731 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, react, webpack

Research direction

After react_on_rails_rsc#29 ships, run the specified git grep command at merge commit 2f7d3330 across config/, Procfile.dev, and README.md. Verify each replacement against the upstream published API, then redeploy the review app and manually check /server-components: all four sections render, RSC payloads stream, and the Refresh, Simulate Error, and Retry flow has no page-shift artifacts.

Written by the indexing model from the issue text.

Description

enhancement

#727 (Pro RSC migration) tactically reversed this repo's bundler from rspack to webpack because react-on-rails-rsc/WebpackPlugin (used by the RSC bundle build) requires webpack APIs that rspack 2.0.0-beta.7's compatibility layer doesn't cover. The reversal is tracked by a TODO in config/shakapacker.yml.

Once shakacode/react_on_rails_rsc#29 ships its RSCRspackPlugin (rspack-native parallel to RSCWebpackPlugin), this repo should flip back: webpack → rspack throughout. The exact import paths, export names, and any companion loader APIs should be taken from upstream's published surface at the time of the flip, not from this issue.

Starting point for the agent picking this up: git grep -nE "webpack|WebpackPlugin|WebpackLoader|@rspack|rspack" config/ Procfile.dev README.md against the merge commit of #727 (2f7d3330) — that surfaces every place affected by the temporary state. Verify each replacement against the published upstream API at flip time.

Verification after flipping: redeploy review-app + manual QA on /server-components (all four sections render, RSC payloads stream, Refresh / Simulate Error / Retry flow works without page-shift artifacts).

Dominant language
JavaScript
Stars
1.7k
Forks
370
Avg merge
2d 15h
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from shakacode/react-webpack-rails-tutorial

All issues in shakacode/react-webpack-rails-tutorial

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.