Collect the following information step by step from $ARGUMENTS (defaults to the current working directory if empty), then output the aggregated MFContext.
Find config files in the following priority order (.ts / .mts take precedence over .js / .mjs / .cjs):
| 1 | module-federation.config.{ts,mts,js,mjs,cjs} | | 2 | rsbuild.config.{ts,mts,js,mjs,cjs} | | 3 | rspack.config.{ts,mts,js,mjs,cjs} | | 4 | modern.config.{ts,mts,js,mjs,cjs} | | 5 | next.config.{ts,mts,js,mjs,cjs} | | 6 | webpack.config.{ts,js} |
Собирает контекст объединения модулей текущего проекта (MFContext) и выводит структурированную сводку. Служит основой данных для всех диагностических навыков МФ; также можно назвать автономным, чтобы быстро понять конфигурацию MF проекта. Источник: module-federation/core.