What problem does it solve?
This Skill helps identify and resolve issues related to Module Federation shared dependencies, such as conflicts between shared and external configurations, problems with UI library sharing due to import transformations, and the detection of multiple versions of the same package in build artifacts.
Core Features & Use Cases
- Conflict Detection: Identifies when a library is incorrectly configured in both
shared and externals.
- Transform Import Blocking: Detects when UI libraries like Ant Design or Arco are shared but
transformImport is active, preventing sharing.
- Version Mismatches: Flags instances where multiple versions of a shared package exist in build outputs, indicating failed version negotiation.
- Use Case: Use this Skill when your host and remote applications are loading duplicate instances of a library, or when shared dependencies are failing to be shared correctly.
Quick Start
Run the mf-shared-deps skill with the project root as an argument.