Skip to content

Conversation

chenjiahan
Copy link
Member

Summary

  • Added new documentation pages for the output.module configuration option
  • Changed the Node example's package.json to use "type": "module" and updated the start script to run the correct entry point, enabling ES module support.

Related Links

Checklist

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

@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 06:09
Copy link

netlify bot commented Aug 22, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit a20ac05
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68a809820f52da0008a18c78
😎 Deploy Preview https://deploy-preview-5923--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: 70 (🔴 down 23 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
Contributor

@Copilot 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 output.module configuration option and updates the Node.js example to demonstrate ES module usage. The documentation introduces support for outputting ES modules format when building Node.js applications.

  • Added comprehensive documentation for output.module config in both English and Chinese
  • Enhanced existing output.polyfill documentation with additional context and code block titles
  • Updated the Node.js example to use ES modules with proper package.json configuration

Reviewed Changes

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

Show a summary per file
File Description
website/docs/en/config/output/module.mdx New documentation page explaining the output.module configuration option in English
website/docs/zh/config/output/module.mdx New documentation page explaining the output.module configuration option in Chinese
website/docs/en/config/output/polyfill.mdx Enhanced existing documentation with additional context and code block titles
website/docs/zh/config/output/polyfill.mdx Enhanced existing documentation with additional context and code block titles
examples/node/rsbuild.config.ts Updated configuration to enable ES module output and disable minification
examples/node/package.json Changed to ES module type and updated start script path

@chenjiahan chenjiahan merged commit e3d6f8c into main Aug 22, 2025
12 checks passed
@chenjiahan chenjiahan deleted the output_module_doc_0822 branch August 22, 2025 06:19
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.

1 participant