mf-integrate

Configure Module Federation for Rsbuild, Rspack, Webpack, Modern.js, Vite, and Next.js projects.

2.6k|423|Updated Oct 24, 2020
One-click install
npx skills add https://github.com/module-federation/core --skill mf-integrate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mf-integrate
Source: https://github.com/module-federation/core/tree/main/skills/mf-integrate
Command: npx skills add https://github.com/module-federation/core --skill mf-integrate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of integrating Module Federation into existing web projects, enabling code sharing and micro-frontend architectures.

Core Features & Use Cases

  • Automated Configuration: Detects project bundlers (Rsbuild, Rspack, Webpack, Modern.js, Vite, Next.js) and applies the correct Module Federation configuration.
  • Role Assignment: Supports configuring the app as a consumer, provider, or both.
  • Demo Integration: Allows immediate testing by connecting to a public demo provider.
  • Use Case: You have an existing React application built with Vite and want to start consuming components exposed by another micro-frontend. This Skill will automatically add the necessary Module Federation configuration to your Vite project.

Quick Start

Use the mf-integrate skill to add Module Federation to your project root.

Frequently Asked Questions about mf-integrate

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

FAQPage Schema
How do I integrate Module Federation into an existing Vite or Webpack project?

To integrate Module Federation into an existing project, this Skill detects your bundler—like Vite or Webpack—and automatically applies the correct configuration to set up remote consumers, expose modules, and manage shared dependencies.

Does Module Federation work with Rsbuild, Rspack, and Modern.js?

Yes, Module Federation works with Rsbuild, Rspack, and Modern.js. This Skill detects your specific bundler and applies the appropriate micro-frontend configuration to facilitate code sharing across these platforms.

How do I configure my app as a Module Federation provider or consumer?

Configuring your app as a Module Federation provider or consumer is handled by assigning roles during setup. This Skill configures your project to expose modules as a provider, consume remote components, or both, based on your project context.

What is the best way to set up shared dependencies for micro-frontends?

The best way to set up shared dependencies for micro-frontends is to automate the configuration process. This Skill manages shared dependencies automatically based on your project context, preventing version conflicts across different micro-frontend modules.

Can I test Module Federation immediately after integrating it into my web project?

Yes, you can test Module Federation immediately after integration. This Skill allows instant testing by connecting your configured application to a public demo provider to verify remote consumers and exposed modules.

Why use Module Federation for my frontend JavaScript architecture?

You use Module Federation for frontend JavaScript architecture to enable code sharing and adopt a micro-frontend structure. This Skill simplifies adoption by automating the complex bundler configurations required to share components across separate applications.