Skip to content

docs: add rspack 2 dual-version support design doc#1395

Open
dannyhw wants to merge 1 commit into
mainfrom
docs/rspack-2-adoption-plan
Open

docs: add rspack 2 dual-version support design doc#1395
dannyhw wants to merge 1 commit into
mainfrom
docs/rspack-2-adoption-plan

Conversation

@dannyhw

@dannyhw dannyhw commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

First PR of the Rspack 2 support stack split out of #1393 — documentation only, no code changes.

Introduces agent_context/ — technical design documentation for substantial efforts, one folder per effort (pointer in AGENTS.md, index in agent_context/README.md) — with the design of dual Rspack 1.x/2.x support: a single release that compiles against Rspack 2 types and runs against both majors, branching at runtime on the installed major, with zero behavior change for Rspack 1 / webpack users.

The design doc covers: version detection, Node compatibility handling, per-major config generation, persistent cache handling, React Refresh wiring, tracing, Module Federation v1, type accommodations, and the testing strategy (dual-major unit lane, built-dist smoke suite, per-major tester apps, CI lanes).

The implementation lands in the follow-up stack: #1394 (version detection utilities), then the Node guard, the Rspack 2 types + dual-major test infrastructure, four parallel behavior PRs (config routing, cache warning, MFv1 pre-check, React Refresh), a dual-major smoke suite closer, and per-major tester apps. feat/rspack-2-support remains the reference implementation until the stack lands.

@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
repack-website Ready Ready Preview, Comment Jul 3, 2026 11:44pm

Request Review

@changeset-bot

changeset-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f45ce26

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Introduce agent_context/ - technical design documentation for substantial
efforts, one folder per effort - with the design of dual Rspack 1.x/2.x
support: version detection, Node compatibility handling, per-major config
generation, persistent cache handling, React Refresh wiring, tracing,
Module Federation v1, type accommodations, and the testing strategy.
@dannyhw dannyhw force-pushed the docs/rspack-2-adoption-plan branch from 7faf96c to f45ce26 Compare July 3, 2026 23:44
@dannyhw dannyhw changed the title docs: rspack 2 adoption plan docs: add rspack 2 dual-version support design doc Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant