-
-
Notifications
You must be signed in to change notification settings - Fork 738
docs: document global entry behavior in EntryPlugin #12105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
Add documentation for global entry behavior (when name is undefined): - Global entries are now injected into both regular and async entrypoints - Includes use cases for webpack-dev-server and ModuleFederationPlugin - Added examples showing how global entries work with Workers Related to PR #12096 Co-authored-by: chenjiahan <7237365+chenjiahan@users.noreply.github.com>
There was a problem hiding this 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 adds documentation for the "global entry" feature of the EntryPlugin, explaining how setting the name option to undefined allows entries to be automatically injected into all entry chunks and asynchronous entries. The documentation is added in both English and Chinese versions.
- Added new "Global entry" section explaining the behavior when
nameisundefined - Included code example demonstrating global entry usage
- Minor text refinement in English version ("Please refer to" → "Refer to")
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| website/docs/en/plugins/webpack/entry-plugin.mdx | Added "Global entry" section with description and code example; minor wording adjustment |
| website/docs/zh/plugins/webpack/entry-plugin.mdx | Added Chinese version of "全局入口" section with description and code example |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Documents the behavior change from #12096 where global entries (entries with
name: undefined) are now injected into async entrypoints (Web Workers) in addition to regular entrypoints.Changes
Added documentation to
website/docs/en/plugins/webpack/entry-plugin.mdxandwebsite/docs/zh/plugins/webpack/entry-plugin.mdx:name: undefinedcreates a global entry whose dependencies are injected into both regular and async entrypointsThis ensures users understand that global dependencies now work correctly in Web Worker contexts.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.