docs: enhance output.asyncChunks documentation and examples#12500
docs: enhance output.asyncChunks documentation and examples#12500chenjiahan merged 2 commits intomainfrom
output.asyncChunks documentation and examples#12500Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR enhances the documentation for the output.asyncChunks configuration option by adding detailed explanations of how it controls async chunk generation for dynamically imported modules, along with a practical configuration example.
- Expanded the
output.asyncChunksdocumentation with detailed behavior descriptions for bothtrueandfalsevalues - Added a configuration example showing how to disable async chunks
- Added cross-references in the code-splitting guide to help users discover this option
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/en/config/output.mdx | Enhanced output.asyncChunks documentation with detailed explanations and code example |
| website/docs/zh/config/output.mdx | Chinese translation of the enhanced output.asyncChunks documentation |
| website/docs/en/guide/optimization/code-splitting.mdx | Added reference to output.asyncChunks option in the dynamic import section |
| website/docs/zh/guide/optimization/code-splitting.mdx | Chinese translation of the added reference to output.asyncChunks option |
| packages/rspack/src/config/types.ts | Updated JSDoc comment for asyncChunks property with detailed behavior descriptions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff Analysis
Found 5 project(s) in monorepo. 📊 Quick Summary (Click to expand)
📋 Detailed Reports (Click to expand)📁 react-10kPath:
📦 Download Diff Report: react-10k Bundle Diff 📁 react-1kPath:
📦 Download Diff Report: react-1k Bundle Diff 📁 react-5kPath:
📦 Download Diff Report: react-5k Bundle Diff 📁 romePath:
📦 Download Diff Report: rome Bundle Diff 📁 ui-componentsPath:
📦 Download Diff Report: ui-components Bundle Diff Generated by Rsdoctor GitHub Action |
📦 Binary Size-limit
🙈 Size remains the same at 48.27MB |
CodSpeed Performance ReportMerging #12500 will not alter performanceComparing Summary
Footnotes |
Summary
Expanded the explanation for the
output.asyncChunksoption, detailing how it controls whether dynamically imported modules are emitted as separate async chunks, and added example.Checklist