docs(source-map): improve extraction option#7346
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on enhancing the clarity and completeness of the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
Deploying rsbuild with
|
| Latest commit: |
3fb1119
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1f4b009a.rsbuild-v2.pages.dev |
| Branch Preview URL: | https://extract-doc-0319.rsbuild-v2.pages.dev |
There was a problem hiding this comment.
Code Review
This pull request improves the documentation for the sourceMap.extract configuration option across TypeScript type definitions and markdown documentation files in both English and Chinese. The changes enhance clarity by providing more detailed explanations, usage examples, and context about the feature's implementation. My feedback includes a suggestion to add a link to the Rspack documentation in the JSDoc comment for consistency and better developer experience.
There was a problem hiding this comment.
Pull request overview
Updates the docs and config type comments to better explain the output.sourceMap.extract option, including when it’s useful and how it maps to Rspack’s underlying capability.
Changes:
- Clarify that
sourceMap.extracttargets extracting existing source maps (e.g., from third-party packages shipping.js+.js.map). - Add a tip noting it’s backed by Rspack
module.rules[].extractSourceMapand can replacesource-map-loader. - Add a small version history entry for the option in both EN/ZH docs, and expand related TypeScript doc comments.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| website/docs/zh/config/output/source-map.mdx | Improves Chinese docs for sourceMap.extract, adds tip + version history, and clarifies include/exclude performance note. |
| website/docs/en/config/output/source-map.mdx | Mirrors the same documentation improvements in English. |
| packages/core/src/types/config.ts | Refines TSDoc for SourceMapExtract* types to match the updated docs and clarify behavior/scope. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Improves the documentation and type definitions for the
sourceMap.extractconfiguration option.Checklist