Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

This pull request updates the documentation for the source.exclude configuration in both English and Chinese to provide more clarity and additional guidance. The changes include a detailed explanation of how excluded files are handled and alternative methods for excluding files from the output.

Documentation updates:

  • website/docs/en/config/rsbuild/source.mdx: Enhanced the description of source.exclude to clarify that excluded files are not translated by SWC but are still bundled into the output. Added a note with methods to prevent files from being bundled, including using Rspack's IgnorePlugin in bundle mode or configuring source.entry in bundleless mode.
  • website/docs/zh/config/rsbuild/source.mdx: Updated the Chinese documentation for source.exclude with the same enhancements, including the explanation of SWC behavior and alternative methods for excluding files.

Related Links

Checklist

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

@netlify
Copy link

netlify bot commented May 21, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit f34529e
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/682d77ed5d98db00081b4c3f
😎 Deploy Preview https://deploy-preview-1009--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 enabled auto-merge (squash) May 21, 2025 06:40
@Timeless0911 Timeless0911 merged commit effa6b0 into main May 21, 2025
14 checks passed
@Timeless0911 Timeless0911 deleted the docs/source-exclude branch May 21, 2025 06:58
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