https://github.com/module-federation/metro
Metro plugin for Module Federation
https://github.com/module-federation/metro
Last synced: 11 months ago
JSON representation
Metro plugin for Module Federation
- Host: GitHub
- URL: https://github.com/module-federation/metro
- Owner: module-federation
- License: mit
- Created: 2025-04-17T14:11:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-01T15:04:48.000Z (12 months ago)
- Last Synced: 2025-07-08T17:29:40.895Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 2.65 MB
- Stars: 25
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Metro Module Federation
## About
This monorepo contains all the tools you'll need to adapt your React Native apps and start using Module Federation with Metro bundler.
### Packages in this repo:
- `@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.
## Getting Started
For detailed setup instructions and configuration options, see the [Metro Module Federation Core Package README](./packages/core/README.md).
## Usage
The configuration follows the standard [Module Federation configuration format](https://module-federation.io/configure/). For detailed information about Module Federation concepts, configuration options, and usage patterns, please refer to the official [Module Federation documentation](https://module-federation.io/).
## Examples
This repository includes several example applications to help you get started:
- **[example-host](./apps/example-host)** - Basic host application that consumes remote modules
- **[example-mini](./apps/example-mini)** - Basic mini application that exposes modules
- **[example-nested-mini](./apps/example-nested-mini)** - Mini application with nested module dependencies
- **[showcase-host](./apps/showcase-host)** - Showcase host application
- **[showcase-mini](./apps/showcase-mini)** - Showcase mini application
For instructions on how to run these examples, see [Running Examples](./CONTRIBUTING.md#running-examples) in our Contributing Guide.
### CLI Commands
For detailed information about available CLI commands see the [React Native CLI Plugin README](./packages/plugin-rnc-cli/README.md).
### React Native Enterprise Framework (RNEF) Integration
For detailed information about RNEF integration and configuration, see the [RNEF Plugin README](./packages/plugin-rnef/README.md).
## Contributing
We welcome contributions! Please see our [Contributing Guide](./CONTRIBUTING.md) for details on how to set up the development environment and run examples.
## License
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.
## Support
- 💬 [Discord Community](https://discord.gg/n69NnT3ACV)
- 🐛 [GitHub Issues](https://github.com/module-federation/metro/issues)
---
Built with ❤️ by [Callstack](https://callstack.com) and [Zephyr Cloud](https://zephyr-cloud.io/).