Skip to content

docs: clarify usage of worker-rspack-loader#5350

Merged
chenjiahan merged 2 commits intomainfrom
worker_loader_example_0603
Jun 3, 2025
Merged

docs: clarify usage of worker-rspack-loader#5350
chenjiahan merged 2 commits intomainfrom
worker_loader_example_0603

Conversation

@chenjiahan
Copy link
Member

Summary

Updates the documentation for using Web Workers to includes examples and clarifications.

Checklist

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

Copilot AI review requested due to automatic review settings June 3, 2025 11:36
@netlify
Copy link

netlify bot commented Jun 3, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 4f77262
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/683ee70c62b91100080b315e
😎 Deploy Preview https://deploy-preview-5350--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 14 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 documentation for using Web Workers by clarifying how to use the worker-rspack-loader as an alternative to the deprecated worker-loader.

  • Updated guidance and examples for configuring worker-rspack-loader in rsbuild.config.ts.
  • Added code examples demonstrating how to import and instantiate a Web Worker using worker-rspack-loader.

Reviewed Changes

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

File Description
website/docs/zh/guide/basic/web-workers.mdx Updated Chinese docs to provide clearer instructions and examples for transitioning from worker-loader.
website/docs/en/guide/basic/web-workers.mdx Updated English docs to clarify usage of worker-rspack-loader and include example configuration and usage code.

@chenjiahan chenjiahan merged commit 5c33793 into main Jun 3, 2025
11 checks passed
@chenjiahan chenjiahan deleted the worker_loader_example_0603 branch June 3, 2025 12:15
@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