Skip to content

chore: update @rspack/dev-server to v2.0.0#13757

Open
chenjiahan wants to merge 1 commit intomainfrom
chenjiahan/chore-rspack-dev-server-2.0.0
Open

chore: update @rspack/dev-server to v2.0.0#13757
chenjiahan wants to merge 1 commit intomainfrom
chenjiahan/chore-rspack-dev-server-2.0.0

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Apr 19, 2026

Summary

  • Update all @rspack/dev-server references from the 2.0.0-rc builds to ^2.0.0 across examples, create-rspack templates, the CLI package, and e2e fixtures.
  • Refresh the v1-to-v2 migration docs so the stable dev-server version is shown in the upgrade examples.

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Apr 19, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying rspack with  Cloudflare Pages  Cloudflare Pages

Latest commit: c8a72f7
Status: ✅  Deploy successful!
Preview URL: https://3f8ab169.rspack-v2.pages.dev
Branch Preview URL: https://chenjiahan-chore-rspack-dev.rspack-v2.pages.dev

View logs

@chenjiahan chenjiahan marked this pull request as ready for review April 19, 2026 09:11
@chenjiahan chenjiahan requested a review from hardfist as a code owner April 19, 2026 09:11
Copilot AI review requested due to automatic review settings April 19, 2026 09:11
@github-actions
Copy link
Copy Markdown
Contributor

📦 Binary Size-limit

Comparing c8a72f7 to chore(deps): update github-actions (major) (#13756) by renovate[bot]

❌ Size increased by 14.01MB from 48.76MB to 62.77MB (⬆️28.73%)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the repo to use the stable @rspack/dev-server@2.0.0 instead of 2.0.0-rc.* across templates, examples, CLI tooling, e2e fixtures, and migration documentation.

Changes:

  • Bump @rspack/dev-server dependency specifiers from 2.0.0-rc.* to ^2.0.0 in examples, create-rspack templates, CLI, and e2e fixtures.
  • Refresh migration docs (EN/ZH) to show the stable dev-server version in the upgrade snippet.
  • Update pnpm-lock.yaml to resolve @rspack/dev-server@2.0.0.

Reviewed changes

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

Show a summary per file
File Description
website/docs/zh/guide/migration/rspack_1.x.mdx Updates migration snippet to stable @rspack/dev-server version.
website/docs/en/guide/migration/rspack_1.x.mdx Updates migration snippet to stable @rspack/dev-server version.
tests/e2e/package.json Uses stable @rspack/dev-server for e2e fixture dependencies.
pnpm-lock.yaml Locks @rspack/dev-server to 2.0.0 and updates importer specifiers.
packages/rspack-cli/package.json Updates CLI devDependency to stable @rspack/dev-server.
packages/create-rspack/template-vue-ts/package.json Updates template dev-server dependency to stable ^2.0.0.
packages/create-rspack/template-vue-js/package.json Updates template dev-server dependency to stable ^2.0.0.
packages/create-rspack/template-vanilla-ts/package.json Updates template dev-server dependency to stable ^2.0.0.
packages/create-rspack/template-vanilla-js/package.json Updates template dev-server dependency to stable ^2.0.0.
packages/create-rspack/template-react-ts/package.json Updates template dev-server dependency to stable ^2.0.0.
packages/create-rspack/template-react-js/package.json Updates template dev-server dependency to stable ^2.0.0.
examples/vanilla/package.json Updates example dev-server dependency to stable ^2.0.0.
examples/react/package.json Updates example dev-server dependency to stable ^2.0.0.
examples/basic/package.json Updates example dev-server dependency to stable ^2.0.0.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 32 to 35
"@rspack/core": "^2.0.0-rc.0",
"@rspack/cli": "^2.0.0-rc.0",
"@rspack/dev-server": "^2.0.0-rc.0",
"@rspack/dev-server": "^2.0.0",
"@rspack/plugin-react-refresh": "^2.0.0"
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

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

The text above this snippet says the packages should “stay in sync” with @rspack/core, but the example now mixes @rspack/core/@rspack/cli RC versions with a stable @rspack/dev-server version. Consider clarifying the wording to “latest compatible versions” (or explicitly note that @rspack/dev-server@^2.0.0 is compatible with @rspack/core@^2.0.0-rc.0) so readers don’t interpret this as a mismatch/error.

Copilot uses AI. Check for mistakes.
Comment on lines 32 to 35
"@rspack/core": "^2.0.0-rc.0",
"@rspack/cli": "^2.0.0-rc.0",
"@rspack/dev-server": "^2.0.0-rc.0",
"@rspack/dev-server": "^2.0.0",
"@rspack/plugin-react-refresh": "^2.0.0"
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

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

该示例现在混用了 @rspack/core/@rspack/cli 的 RC 版本与稳定版 @rspack/dev-server(^2.0.0)。但上文提到要与 @rspack/core “保持同步”,这可能让读者误以为示例版本不一致有问题。建议把表述改为“升级到最新兼容版本”,或明确说明稳定版 dev-server 与 @rspack/core@^2.0.0-rc.0 是兼容的。

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

Found 6 projects in monorepo, 0 projects with changes.

📊 Quick Summary
Project Total Size Change
popular-libs 1.7 MB 0
react-10k 5.7 MB 0
react-5k 2.7 MB 0
rome 1.6 MB 0
ui-components 4.8 MB 0
react-1k 826.1 KB 0

Generated by Rsdoctor GitHub Action

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 19, 2026

Merging this PR will not alter performance

✅ 34 untouched benchmarks


Comparing chenjiahan/chore-rspack-dev-server-2.0.0 (c8a72f7) with main (c1d589d)

Open in CodSpeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants