mf-shared-deps

Installation
SKILL.md

Step 1: Call the mf-context Skill (pass $ARGUMENTS) to collect MFContext.

Step 2: Serialize MFContext to JSON and pass it to the check script via the --context argument:

node scripts/shared-config-check.js --context '<MFContext-JSON>'

Process each item in the output results array:

SHARED-EXTERNALS-CONFLICT · warning — same library in both shared and externals

  • shared and externals are not mutually exclusive in config, but the same library must not appear in both — it causes the module to be excluded from the bundle while also being declared as shared, leading to runtime failures
  • Show the conflicting library name and guide the user to remove it from one of the two configs
Related skills

More from module-federation/core

Installs
61
GitHub Stars
2.5K
First Seen
Mar 6, 2026