Skip to content

docs: add enforce property to plugin API#5649

Merged
chenjiahan merged 2 commits intomainfrom
enforce_doc_0722
Jul 22, 2025
Merged

docs: add enforce property to plugin API#5649
chenjiahan merged 2 commits intomainfrom
enforce_doc_0722

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Jul 22, 2025

Summary

Explain the new enforce property for plugins, clarify the priority of execution properties (pre, post, and enforce), and standardize terminology for plugin properties.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings July 22, 2025 14:10
@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 22, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit e2ae980
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/687f9cf8f68b810008d32ea2
😎 Deploy Preview https://deploy-preview-5649--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: 58 (🔴 down 12 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 documentation for the new enforce property in the Rsbuild plugin API, which allows plugins to control their execution order. The changes update both English and Chinese documentation to explain this new feature and clarify the priority hierarchy of execution control properties.

  • Adds documentation for the enforce property with pre and post values
  • Clarifies the priority order: pre/post properties > enforce property > order property
  • Standardizes terminology from "field" to "property" throughout the documentation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
website/docs/zh/plugins/dev/core.mdx Adds Chinese documentation for enforce property and updates property terminology
website/docs/en/plugins/dev/core.mdx Adds English documentation for enforce property and updates property terminology

Comment thread website/docs/en/plugins/dev/core.mdx
@chenjiahan chenjiahan merged commit c152f62 into main Jul 22, 2025
11 checks passed
@chenjiahan chenjiahan deleted the enforce_doc_0722 branch July 22, 2025 14:19
@chenjiahan chenjiahan mentioned this pull request Jul 24, 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