Skip to content

fix(types): preserve config factory contextual typing - #456

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-define-lib-contextual-typing
Sep 2, 2026
Merged

fix(types): preserve config factory contextual typing#456
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-define-lib-contextual-typing

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Config factories passed to define.app and define.lib could lose upstream contextual typing, causing valid configurations with differently shaped entries to fail type checking.

This PR reuses the Rsbuild and Rslib defineConfig signatures while continuing to register and return the original definitions. It adds type coverage for both bundler and NodeNext module resolution.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 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-02T13:17:06.850027Z 9172d8b 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: 9172d8b
Status: ✅  Deploy successful!
Preview URL: https://c636a9a3.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-fix-define-lib-co.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 19f8c82 into main Sep 2, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-define-lib-contextual-typing branch September 2, 2026 13:22
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