Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: order shared dependency preload#807

Merged
gioboa merged 1 commit into
mainfrom
fix/805
Jun 11, 2026
Merged

fix: order shared dependency preload#807
gioboa merged 1 commit into
mainfrom
fix/805

Conversation

@gioboa

@gioboa gioboa commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Close #805

Fixes build-mode shared singleton initialization when one shared workspace package depends on another. Shared preload order now respects package dependencies, preventing consumers from evaluating before their shared dependencies are cached, without eager local fallback imports that double-initialize singletons.

@pkg-pr-new

pkg-pr-new Bot commented Jun 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: c5af0ce

@gioboa gioboa left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Tests With Different Frameworks

Screenshot 2026-06-11 at 15 31 44

@gioboa gioboa changed the title fix: fix workspace singleton sync exports fix: order shared dependency preload Jun 11, 2026
@gioboa gioboa merged commit 34aaea5 into main Jun 11, 2026
22 checks passed
@gioboa gioboa deleted the fix/805 branch June 11, 2026 13:36
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]: Workspace package shared as singleton: named exports are undefined in production builds (regression in 1.16.6) — "X is not a function"

1 participant