Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

This pull request introduces several documentation updates and a minor configuration enhancement. The documentation changes improve clarity and add new examples for preserving module variables during builds, while the configuration update adds a new transformer for handling notation diffs in markdown processing.

Documentation Updates:

  • Updated the description of source.define in both English (website/docs/en/config/rsbuild/source.mdx) and Chinese (website/docs/zh/config/rsbuild/source.mdx) to highlight its use for injecting environment variables during build time. [1] [2]
  • Added a new FAQ section in both English (website/docs/en/guide/faq/features.mdx) and Chinese (website/docs/zh/guide/faq/features.mdx) explaining how to preserve module variables like __webpack_hash__ in build outputs using source.define. [1] [2]
  • Fixed minor grammatical issues in the FAQ sections for preserving comments in both English and Chinese documentation. [1] [2]

Configuration Enhancement:

  • Added the transformerNotationDiff transformer to the markdown configuration in website/rspress.config.ts to support notation diffs alongside notation highlights. [1] [2]

Related Links

#1000

Checklist

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

@Timeless0911 Timeless0911 requested a review from fi3ework May 21, 2025 09:44
@Timeless0911 Timeless0911 enabled auto-merge (squash) May 21, 2025 09:45
@netlify
Copy link

netlify bot commented May 21, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit a144de8
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/682db59045548a00089e5dea
😎 Deploy Preview https://deploy-preview-1010--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@Timeless0911 Timeless0911 merged commit cadbb64 into main May 21, 2025
14 checks passed
@Timeless0911 Timeless0911 deleted the docs/preserve-module-vars branch May 21, 2025 11:20
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.

3 participants