npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@module-federation/metro-plugin-rnef

v2.3.1

Published

Metro Module Federation plugin for React Native Enterprise Framework (RNEF)

Readme

@module-federation/metro-plugin-rnef

Module Federation for React Native Enterprise Framework (RNEF) using Metro bundler. This plugin integrates the @module-federation/metro package with RNEF, providing commands to bundle Module Federation host and remotes.

Installation

  1. First, ensure you have RNEF set up in your project.

  2. Install the plugin:

npm install --save-dev @module-federation/metro-plugin-rnef
  1. Add the plugin to your RNEF configuration (typically in rnef.config.mjs):
import { pluginMetro } from '@rnef/plugin-metro';
import moduleFederation from '@module-federation/metro-plugin-rnef';

/** @type {import('@rnef/config').Config} */
export default {
  bundler: pluginMetro(),
  plugins: [moduleFederation()],
};

Usage

Bundle a Module Federation Host

# Bundle for iOS
rnef bundle-mf-host --entry-file index.js --platform ios

# Bundle for Android
rnef bundle-mf-host --entry-file index.js --platform android

Bundle a Module Federation Remote

# Bundle for iOS
rnef bundle-mf-remote --platform ios

# Bundle for Android
rnef bundle-mf-remote --platform android

Available Options

bundle-mf-host

  • --entry-file <path>: Path to the root JavaScript entry file
  • --platform <string>: Target platform (default: "ios") - Either "ios" or "android"
  • --transformer <string>: Specify a custom transformer
  • --dev [boolean]: If false, warnings are disabled and the bundle is minified (default: true)
  • --minify [boolean]: Allows overriding whether bundle is minified. This defaults to false if dev is true, and true if dev is false. Disabling minification can be useful for speeding up production builds for testing purposes.
  • --bundle-output <string>: File path where to store the resulting bundle
  • --bundle-encoding <string>: Encoding the bundle should be written in (default: "utf8")
  • --resolver-option <string...>: Custom resolver options (key=value format, URL-encoded, can be specified multiple times)
  • --sourcemap-output <string>: File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map
  • --sourcemap-sources-root <string>: Path to make sourcemap's sources entries relative to, ex. /root/dir
  • --sourcemap-use-absolute-path: Report SourceMapURL using its full path (default: false)
  • --max-workers <number>: Specifies the maximum number of workers the worker-pool will spawn for transforming files. This defaults to the number of the cores available on your machine.
  • --assets-dest <string>: Directory name where to store assets referenced in the bundle
  • --reset-cache: Removes cached files (default: false)
  • --read-global-cache: Try to fetch transformed JS code from the global cache, if configured (default: false)
  • --config <string>: Path to the CLI configuration file

bundle-mf-remote

  • --platform <string>: Target platform (default: "ios") - Either "ios" or "android"
  • --dev [boolean]: If false, warnings are disabled and the bundle is minified (default: true)
  • --minify [boolean]: Allows overriding whether bundle is minified. This defaults to false if dev is true, and true if dev is false. Disabling minification can be useful for speeding up production builds for testing purposes.
  • --bundle-encoding <string>: Encoding the bundle should be written in (default: "utf8")
  • --max-workers <number>: Specifies the maximum number of workers the worker-pool will spawn for transforming files. This defaults to the number of the cores available on your machine.
  • --bundle-output <string>: File path where to store the resulting bundle
  • --sourcemap-output <string>: File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map
  • --sourcemap-sources-root <string>: Path to make sourcemap's sources entries relative to, ex. /root/dir
  • --sourcemap-use-absolute-path: Report SourceMapURL using its full path (default: false)
  • --assets-dest <string>: Directory name where to store assets referenced in the bundle
  • --asset-catalog-dest [string]: Path where to create an iOS Asset Catalog for images
  • --reset-cache: Removes cached files (default: false)
  • --config <string>: Path to the CLI configuration file