# mf-plugins

> ``` bash npm install mf-plugins ```

Latest version **1.0.1** (published 2020-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install mf-plugins
pnpm add mf-plugins
yarn add mf-plugins
bun add mf-plugins
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-09-01 |
| First published | 2020-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jdherrington |

## Links

- npm: https://www.npmjs.com/package/mf-plugins
- npm.io page: https://npm.io/package/mf-plugins

## Recent versions

- 1.0.1 (latest) — 2020-09-01
- 1.0.0 — 2020-09-01

## README

Module Federation Plugin Helper
===============================

This is a helper for loading plugins that have been packaged as federated modules using Webpack 5's `ModuleFederationPlugin`. There is an [example plugin template](https://github.com/jherr/mf-plugin-template) you can use to create your first plugin.

# Installation

``` bash
npm install mf-plugins
```

Or

``` bash
yarn add mf-plugins
```

# Usage

``` javascript
import loadPlugins from "mf-plugins";

const plugins = await loadPlugins("../plugins");
```

There are three argments, the only one that is required is the first which is the relative path to your plugins folder where all of the *built* plugins reside. Not the plugin code, but the results of the Webpack'ing of the plugin code.

The two additional arguments are the exposed name, which is by default `./plugin` and the name of the remoteEntry file which is by default `remoteEntry.js`.

---
_Source: https://npm.io/package/mf-plugins · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
