Skip to content

fix: defer loading virtualExposes until get() is called#472

Open
gioboa wants to merge 2 commits intomainfrom
fix/468
Open

fix: defer loading virtualExposes until get() is called#472
gioboa wants to merge 2 commits intomainfrom
fix/468

Conversation

@gioboa
Copy link
Collaborator

@gioboa gioboa commented Mar 11, 2026

Close #468

remoteEntry lazily loads the exposes map via loadExposesMap() and does not eagerly import it.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@module-federation/vite@472

commit: 91a53a9

Copy link
Collaborator Author

@gioboa gioboa left a comment

Choose a reason for hiding this comment

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

@francesc79 Thanks for the useful example. Can you test this pre-release please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: remoteEntry can be merged into an expose/shared chunk in production build, causing init/loadShare ordering issues

1 participant