Skip to content

Conversation

@CaptainWang98
Copy link
Contributor

Related to: #354 #282
In vite, resolve.alias has higher priority than MF.
Accidently, user may point shared dependency to somewhere else:
https://github.com/neversleeppy/mf-vite-slot/blob/main/host/vite.config.ts
This may cause unexpected runtime behavior.
This PR will detect conflict between resolve.alias and MF.shared, and then show warn in build-time.

Copy link
Collaborator

@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.

Thanks @CaptainWang98 for your help 💪

@gioboa gioboa changed the title feat: warn if shared dependency is resolved to somewhere (#354) chore: warn if shared dependency is resolved to somewhere (#354) Nov 19, 2025
Copy link
Collaborator

@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.

Thanks @CaptainWang98
LGTM 👏

@gioboa gioboa merged commit 222b1b8 into module-federation:main Nov 19, 2025
4 checks passed
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.

2 participants