Skip to content

docs: improve docs for worker custom syntax#13552

Merged
ahabhgk merged 4 commits intomainfrom
worker-custom-syntax-doc
Mar 31, 2026
Merged

docs: improve docs for worker custom syntax#13552
ahabhgk merged 4 commits intomainfrom
worker-custom-syntax-doc

Conversation

@ahabhgk
Copy link
Copy Markdown
Contributor

@ahabhgk ahabhgk commented Mar 31, 2026

Summary

Improve docs based on feedback #13174

Related links

Checklist

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

@ahabhgk ahabhgk requested review from chenjiahan and Copilot and removed request for Copilot March 31, 2026 09:39
@ahabhgk
Copy link
Copy Markdown
Contributor Author

ahabhgk commented Mar 31, 2026

@codex review

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Mar 31, 2026

Deploying rspack with  Cloudflare Pages  Cloudflare Pages

Latest commit: 14354c3
Status: ✅  Deploy successful!
Preview URL: https://52b373d1.rspack-v2.pages.dev
Branch Preview URL: https://worker-custom-syntax-doc.rspack-v2.pages.dev

View logs

Comment thread website/docs/en/guide/features/web-workers.mdx Outdated
@github-actions github-actions Bot added the team The issue/pr is created by the member of Rspack. label Mar 31, 2026
Comment thread website/docs/zh/guide/features/web-workers.mdx Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b5a99a51da

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread website/docs/en/guide/features/web-workers.mdx Outdated
@github-actions github-actions Bot added the release: document release: document related release(mr only) label Mar 31, 2026
Copilot AI review requested due to automatic review settings March 31, 2026 09:58
@ahabhgk
Copy link
Copy Markdown
Contributor Author

ahabhgk commented Mar 31, 2026

@codex review

Copy link
Copy Markdown
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 Web Workers documentation to better explain Rspack’s worker-related syntax parsing, especially around custom worker-like syntax patterns.

Changes:

  • Added a warning callout describing static-analysis limitations and unsupported magic comments.
  • Reorganized the guide into “Built-in syntax” and “Custom syntax”, expanding explanations and examples (including Worklet cases like AudioWorklet).
  • Updated built-in examples (e.g., worker_threads import source and serviceWorker.register argument form).

Reviewed changes

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

File Description
website/docs/en/guide/features/web-workers.mdx Expands and restructures worker syntax docs, including detailed custom syntax rules and examples.
website/docs/zh/guide/features/web-workers.mdx Same as EN, with corresponding Chinese content updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/docs/en/guide/features/web-workers.mdx
Comment thread website/docs/en/guide/features/web-workers.mdx
Comment thread website/docs/zh/guide/features/web-workers.mdx
Comment thread website/docs/zh/guide/features/web-workers.mdx
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ahabhgk ahabhgk requested a review from chenjiahan March 31, 2026 10:20
@ahabhgk ahabhgk enabled auto-merge (squash) March 31, 2026 10:20
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ahabhgk ahabhgk merged commit b6817da into main Mar 31, 2026
22 checks passed
@ahabhgk ahabhgk deleted the worker-custom-syntax-doc branch March 31, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: document release: document related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants