Add initial Rspack config structure and dependencies (Rspack split 2/4)

What

Lays out the Rspack config skeleton — config/rspack.config.mjs plus the non-plugin building blocks (settings, entries, define, cache groups, loader rules, Monaco worker rule, worker loader) — and adds the @rspack/* toolchain dependencies.

Vue handling and plugins (including the Vue 2/3 infection) are intentionally absent and land in part 3, so this does not yet produce a complete bundle.

Why this is safe while incomplete

Nothing builds with Rspack unless ENABLE_RSPACK is set, so the skeleton is dead code in the default pipeline — it only needs to parse. Full build correctness arrives in part 3.

Depends on

Part 1 (shared helpers).


Part 2 of 4 of splitting the opt-in Rspack build (!242376 (closed)).

Epic: &22569 · Proposal: #604382 (closed) · Original spike: !242376 (closed)

Stacked series — review/merge in order

  1. Extract shared bundler config helpers — !243055 (merged)
  2. Initial Rspack config structure + deps — !243056 (merged) ← this MR
  3. Rspack plugins + Vue 2/3 infection — !243057 (merged)
  4. Build/dev-server wiring, asset namespacing & CI — !243058 (merged)
Edited by Stanislav Lashmanov

Merge request reports

Loading
Loading