Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Update the documentation to reflect the support for importing the raw content of JS, TS, JSX, and TSX files using the ?raw query parameter.

Related Links

#5353

Checklist

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

Copilot AI review requested due to automatic review settings June 4, 2025 03:30
@netlify
Copy link

netlify bot commented Jun 4, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit ccabae7
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/683fbdd586535600081fd81e
😎 Deploy Preview https://deploy-preview-5355--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: 66 (🟢 up 12 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (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 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 updates the static assets guide in both Chinese and English versions to document the new support for importing raw JavaScript, TypeScript, JSX, and TSX files using the ?raw query parameter.

  • Added examples for importing raw JS/TS/JSX/TSX files
  • Updated the tip to include version details regarding ?raw support for JS and TS files

Reviewed Changes

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

File Description
website/docs/zh/guide/basic/static-assets.mdx Updated raw file import examples and tip version details in Chinese
website/docs/en/guide/basic/static-assets.mdx Updated raw file import examples and tip version details in English
Comments suppressed due to low confidence (2)

website/docs/zh/guide/basic/static-assets.mdx:183

  • [nitpick] The tip block repeats version details in two different formats. Consider merging or clarifying the version information to reduce redundancy and improve clarity.
Rsbuild >= 1.3.0 支持 `?raw` 查询参数,>= 1.4.0 支持引用 JS 和 TS 文件的原始内容.

website/docs/en/guide/basic/static-assets.mdx:183

  • [nitpick] The tip block contains duplicate version information. Consider consolidating the version details into a single clear statement to reduce repetition.
Rsbuild >= 1.3.0 supports the `?raw` query parameter, and >= 1.4.0 supports importing the raw content of JS and TS files.

@chenjiahan chenjiahan merged commit bcc903a into main Jun 4, 2025
12 checks passed
@chenjiahan chenjiahan deleted the raw_js_doc_0604 branch June 4, 2025 03:32
@chenjiahan chenjiahan mentioned this pull request Jun 4, 2025
@chenjiahan chenjiahan mentioned this pull request Jun 26, 2025
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