Skip to content

refactor(config): merge app config layers with Rsbuild - #506

Open
chenjiahan wants to merge 1 commit into
mainfrom
chenjiahan/app-config-merge
Open

chenjiahan wants to merge 1 commit into
mainfrom
chenjiahan/app-config-merge

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Motivation

Implement the App configuration merge step of the unified configuration RFC. App layers need to follow Rsbuild's native merge rules before shared configurations can be wired into the loader.

Changes

Resolve ordered App layers with native factory parameters, then combine them using mergeRsbuildConfig. The existing loader passes its project configuration as one layer and retains configuration file metadata and the empty-config default.

Add two focused tests for overrides, nested objects, plugin and Rspack callback ordering, unchanged inputs, and lazy resolution. Public define.extends() registration and shared-layer loading remain separate steps.

Validation: builds, lint, type and format checks passed. All five focused tests passed, including existing App builds and reloads after changes to the config file or an imported dependency.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-21T08:53:12.315131Z 098c0da PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 098c0da
Status: ✅  Deploy successful!
Preview URL: https://74ec7f69.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-app-config-merge.rstack-cli.pages.dev

View logs

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