Skip to content

chore: modernize Rsbuild minimal example - #1950

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/refactor-rsbuild-minimal-example
Aug 28, 2026
Merged

chore: modernize Rsbuild minimal example#1950
chenjiahan merged 1 commit into
mainfrom
chenjiahan/refactor-rsbuild-minimal-example

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This PR modernizes the minimal Rsbuild example to match the current Rsbuild CLI and Rspack configuration APIs.
It marks the package as ESM, removes redundant metadata and source inclusion, and registers Rsdoctor through tools.rspack.plugins.

Related Links

None

Copilot AI lite review requested due to automatic review settings August 28, 2026 09:03
@pkg-pr-new

pkg-pr-new Bot commented Aug 28, 2026

Copy link
Copy Markdown
@rsdoctor/agent-cli

npm i https://pkg.pr.new/@rsdoctor/agent-cli@1950

@rsdoctor/cli

npm i https://pkg.pr.new/@rsdoctor/cli@1950

@rsdoctor/client

npm i https://pkg.pr.new/@rsdoctor/client@1950

@rsdoctor/core

npm i https://pkg.pr.new/@rsdoctor/core@1950

@rsdoctor/shared

npm i https://pkg.pr.new/@rsdoctor/shared@1950

commit: b400fd4

@chenjiahan chenjiahan changed the title refactor: modernize Rsbuild minimal example chore: modernize Rsbuild minimal example Aug 28, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rsdoctor-v1 with  Cloudflare Pages  Cloudflare Pages

Latest commit: b400fd4
Status: ✅  Deploy successful!
Preview URL: https://b181b4d0.rsdoctor-v1.pages.dev
Branch Preview URL: https://chenjiahan-refactor-rsbuild.rsdoctor-v1.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Modernizes the examples/rsbuild-minimal project to align with current Rsbuild configuration patterns by simplifying source configuration, switching Rsdoctor registration to Rspack plugin injection via tools.rspack, and updating the example package metadata/scripts to ESM + current CLI usage.

Changes:

  • Update rsbuild.config.ts to register RsdoctorRspackPlugin via tools.rspack.plugins and remove the explicit source.include.
  • Mark the example package as ESM ("type": "module") and simplify package metadata.
  • Update example scripts to use the modern Rsbuild CLI invocation style.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
examples/rsbuild-minimal/rsbuild.config.ts Switches Rsdoctor integration to tools.rspack.plugins and streamlines source settings.
examples/rsbuild-minimal/package.json Marks the example as ESM and updates scripts/metadata to match the modernized setup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chenjiahan
chenjiahan merged commit 6f6a55b into main Aug 28, 2026
10 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/refactor-rsbuild-minimal-example branch August 28, 2026 09:17
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.

2 participants