Skip to content

docs: update migration guides for plugins#5598

Merged
chenjiahan merged 1 commit intomainfrom
vite_plugin_migrate_0715
Jul 15, 2025
Merged

docs: update migration guides for plugins#5598
chenjiahan merged 1 commit intomainfrom
vite_plugin_migrate_0715

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

This pull request introduces a new section on migrating Vite plugins to Rsbuild plugins.

Checklist

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

Copilot AI review requested due to automatic review settings July 15, 2025 04:23
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 15, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 9747769
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6875d7cbd8d0200008e4795a
😎 Deploy Preview https://deploy-preview-5598--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 76 (🟢 up 1 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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

This PR adds a standalone migration guide for converting Vite plugins into Rsbuild plugins and updates existing documentation to reference it.

  • Introduced a new vite-plugin.mdx guide with a complete mapping of Vite/Rollup hooks to Rsbuild plugin APIs.
  • Updated both Chinese and English plugin dev index pages to link to the new migration guide.
  • Removed inline hook tables from the original vite.mdx guides in favor of the new dedicated guide.
  • Updated _meta.json in both locales to include vite-plugin so the new guide appears in the migration sidebar.

Reviewed Changes

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

Show a summary per file
File Description
website/docs/zh/plugins/dev/index.mdx Added “迁移 Vite 插件” section linking to the new migration guide.
website/docs/zh/guide/migration/vite.mdx Replaced inline hook table with a reference link to the new guide.
website/docs/zh/guide/migration/vite-plugin.mdx Added new Chinese migration guide for Vite plugins.
website/docs/zh/guide/migration/_meta.json Added “vite-plugin” to the migration metadata array.
website/docs/en/plugins/dev/index.mdx Added “Migrate Vite plugin” section linking to the new migration guide.
website/docs/en/guide/migration/vite.mdx Replaced inline hook table with a reference link to the new guide.
website/docs/en/guide/migration/vite-plugin.mdx Added new English migration guide for Vite plugins.
website/docs/en/guide/migration/_meta.json Added “vite-plugin” to the migration metadata array.
Comments suppressed due to low confidence (4)

website/docs/zh/guide/migration/vite-plugin.mdx:1

  • [nitpick] The heading '# Vite 插件' does not clearly indicate migration context; consider renaming it to '迁移 Vite 插件' to align with link text in the index page and improve clarity.
# Vite 插件

website/docs/zh/guide/migration/vite.mdx:265

  • [nitpick] Link text 'Vite 插件' is less specific than '迁移 Vite 插件'; consider updating the link text to '迁移 Vite 插件' for consistency with the section title.
参考 [Vite 插件](/guide/migration/vite-plugin) 了解如何迁移 Vite 插件。

website/docs/en/guide/migration/vite-plugin.mdx:1

  • [nitpick] The heading '# Vite plugin' does not explicitly reflect that this is a migration guide; consider renaming it to 'Migrating Vite plugin' or 'Migrate Vite plugin' to match the navigation and improve clarity.
# Vite plugin

website/docs/en/guide/migration/vite.mdx:265

  • [nitpick] The link text 'Vite plugin' is inconsistent with 'Migrate Vite plugin' used elsewhere; consider renaming the link to 'Migrate Vite plugin' for consistency.
See [Vite plugin](/guide/migration/vite-plugin) to learn how to migrate Vite plugins.

@chenjiahan chenjiahan merged commit ffa319b into main Jul 15, 2025
13 checks passed
@chenjiahan chenjiahan deleted the vite_plugin_migrate_0715 branch July 15, 2025 04:46
@chenjiahan chenjiahan mentioned this pull request Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants