Document or resolve SWC 'classic' runtime vs 'automatic' for React 19

Open
#682 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with config/swc.config.js:8-18 and the React version in package.json, then investigate React on Rails SSR compatibility for the classic and automatic runtimes. Add SSR integration coverage for both runtimes if feasible; done means either switching to automatic after successful validation or documenting the confirmed limitation with supporting links.

Written by the indexing model from the issue text.

Description

question

Context

In config/swc.config.js:8-18, we use 'classic' runtime with a TODO:

// TODO: Consider switching to 'automatic' runtime when fully on React 19+
runtime: 'classic',

Questions

Since the project is already on React 19 (package.json), what's blocking the move to automatic runtime?

  • Is this a React on Rails SSR compatibility issue?
  • Should there be integration tests to validate this works with SSR?

Suggested Actions

  1. If this is a known React on Rails limitation, link to an issue or docs
  2. Add integration tests for both runtimes with SSR if feasible
  3. Test automatic runtime and switch if compatible
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.