Warning
This repository is a legacy codebase and has been archived.
Active Metro Module Federation development has moved to module-federation/core.
This monorepo is a historical reference for the original Metro Module Federation implementation. It is no longer the primary development repository.
Metro Module Federation was moved into module-federation/core.
- New features and fixes: https://github.com/module-federation/core
- New issues and support requests: https://github.com/module-federation/core/issues
@module-federation/metro- Core integration with Metro to enable Module Federation@module-federation/metro-plugin-rnc-cli- React Native CLI integration@module-federation/metro-plugin-rnef- React Native Enterprise Framework integration
Note: Module Federation support for Metro bundler is still experimental and may lack some functionality or certain integrations.
For detailed setup instructions and configuration options, see the Metro Module Federation Core Package README.
The configuration follows the standard Module Federation configuration format. For detailed information about Module Federation concepts, configuration options, and usage patterns, please refer to the official Module Federation documentation.
This repository includes several example applications to help you get started:
- example-host - Basic host application that consumes remote modules
- example-mini - Basic mini application that exposes modules
- example-nested-mini - Mini application with nested module dependencies
- showcase-host - Showcase host application
- showcase-mini - Showcase mini application
For instructions on how to run these examples, see Running Examples in our Contributing Guide.
For detailed information about available CLI commands see the React Native CLI Plugin README.
For detailed information about RNEF integration and configuration, see the RNEF Plugin README.
We welcome contributions! Please see our Contributing Guide for details on how to set up the development environment and run examples.
This project is licensed under the MIT License - see the LICENSE file for details.
- 💬 Discord Community
- 🐛 For active Metro Module Federation support, use module-federation/core issues
Built with ❤️ by Callstack and Zephyr Cloud.