Skip to content

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

@justin808

Description

@justin808

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions