mf-docs

Answer Module Federation questions on configuration, runtime API, and build plugins.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/brGuirra/funkonation --skill mf-docs-brguirra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mf-docs
Source: https://github.com/brGuirra/funkonation/tree/main/.agents/skills/mf-docs
Command: npx skills add https://github.com/brGuirra/funkonation --skill mf-docs-brguirra

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users understand and implement Module Federation (MF) by providing precise documentation on its configuration, runtime, build plugins, and framework integrations.

Core Features & Use Cases

  • Configuration Guidance: Get details on exposes, remotes, shared dependencies, and more.
  • Runtime API Explanations: Understand how to use loadRemote and MF instance features.
  • Build Tool Integration: Learn setup for Webpack, Rspack, Rsbuild, and Vite.
  • Framework Support: Find information on integrating MF with React, Vue, Next.js, and Angular.
  • Use Case: A developer is struggling to configure shared dependencies between two micro-frontends. They can use this skill to find the exact configuration parameters and examples for the shared option.

Quick Start

Use the mf-docs skill to find information on configuring shared dependencies in Module Federation.

Frequently Asked Questions about mf-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure shared dependencies in Module Federation?

Module Federation lets you configure shared dependencies using the `shared` option in your build configuration, enabling multiple micro-frontends to load a single instance of a library like React at runtime. This skill provides exact configuration parameters and examples fetched from module-federation.io.

How does the Module Federation runtime API load remote components?

The Module Federation runtime API uses functions like `loadRemote` to dynamically fetch and integrate remote components into your host application at runtime. This allows you to execute micro-frontend integrations without needing to rebuild the host.

Can I use Module Federation with Rspack, Rsbuild, and Vite?

Yes, Module Federation supports integration with multiple build tools including Webpack, Rspack, Rsbuild, and Vite. This skill provides specific setup guidance and documentation for configuring micro-frontend builds across these different environments.

How do I expose and consume modules across different micro-frontends?

You expose modules using the `exposes` configuration option in the provider application, and consume them in the host application using the `remotes` configuration option. This establishes a clear contract for loading specific components across independent deployments.

What frameworks are supported for Module Federation integration?

Module Federation supports integration with major JavaScript frameworks including React, Vue, Next.js, and Angular. This skill fetches framework-specific documentation to help you set up micro-frontend architectures across these platforms.

Why is my Module Federation setup not working and how can I debug it?

Debugging Module Federation involves checking your `exposes`, `remotes`, and `shared` configurations for mismatched versions or incorrect paths. This skill provides documentation on common configuration pitfalls and runtime API debugging techniques to resolve integration issues.