Skip to content

Commit

Permalink
docs: add note for virtual modules in Vite
Browse files Browse the repository at this point in the history
Co-authored-by: Toby Scott <[email protected]>
  • Loading branch information
2 people authored and ruleeeer committed Jan 12, 2025
1 parent 5335e7a commit c7b655d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ shared: {
## Runtime add remotes with `virtual:__federation__`
It is not always possible to define the list of remote applications in advance in `vite.config`. Some applications may load the list of these remotes asynchronously when the user visits the website. In such cases, you can use the `virtual:__federation__` API.

> Note: This is a virtual module, for a deeper understanding of virtual modules in Vite, see: https://vite.dev/guide/api-plugin#virtual-modules-convention
### API `virtual:__federation__`

Using methods from the `virtual:__federation__` module, you can implement dynamic loading of a remote application.
Expand Down

0 comments on commit c7b655d

Please sign in to comment.