Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Jan 23, 2026

Summary

Update externals function callback documentation about boolean type.

Changes

  • Added documentation for true: Externalizes the dependency using the original request path as the external module name
  • Added documentation for false: Tells Rspack to skip the remaining external configuration and bundle the dependency instead
  • Restructured the result parameter documentation with nested bullet points for better readability

Copilot AI review requested due to automatic review settings January 23, 2026 08:03
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Jan 23, 2026
@cloudflare-workers-and-pages
Copy link

Deploying rspack with  Cloudflare Pages  Cloudflare Pages

Latest commit: f66a7e5
Status: ✅  Deploy successful!
Preview URL: https://b3e95980.rspack-v2.pages.dev
Branch Preview URL: https://external-false.rspack-v2.pages.dev

View logs

@github-actions github-actions bot added the release: document release: document related release(mr only) label Jan 23, 2026
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 enhances the documentation for the externals function callback by adding comprehensive documentation for the boolean type support in the result parameter.

Changes:

  • Added documentation for boolean type in the callback's result parameter for both English and Chinese versions
  • Restructured the result parameter documentation with nested bullet points for improved readability
  • Clarified that true externalizes using the original request path, while false skips externalization and bundles the dependency

Reviewed changes

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

File Description
website/docs/en/config/externals.mdx Added boolean type documentation to externals function callback result parameter in English
website/docs/zh/config/externals.mdx Added boolean type documentation to externals function callback result parameter in Chinese

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

@9aoy 9aoy changed the title docs: document boolean type for externals function callback result parameter docs: update externals function callback about boolean type Jan 23, 2026
@9aoy 9aoy requested a review from chenjiahan January 23, 2026 08:17
@chenjiahan chenjiahan merged commit 615f9a1 into main Jan 23, 2026
37 checks passed
@chenjiahan chenjiahan deleted the external-false branch January 23, 2026 09:11
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