Rollup plugin enabling Module Federation for Rollup, allowing micro-frontend architectures with shared dependencies and remote entry points. Current stable version 1.11.8, released about 2 months ago, with moderate release cadence. Differentiator: brings Webpack Module Federation concepts to Rollup, targeting Node >= 18, with no known alternatives for Rollup. Provides exposure of `exposes` and `remotes` in Rollup configuration.
npm install rollup-plugin-module-federationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal Rollup configuration with moduleFederationPlugin to expose Button and consume remote from another app, with shared React dependencies.
Upgrade Node.js to version 18 or above.
Use import syntax or dynamic import. If using CommonJS, use dynamic import: const plugin = await import('rollup-plugin-module-federation');Always use named import: import { moduleFederationPlugin } from 'rollup-plugin-module-federation';Review the plugin's documentation for supported options; test remote loading behavior.
Use import() or switch to Node >= 18 with package.json type: module or use dynamic import.
Ensure your bundler (e.g., Rollup, webpack) supports the 'exports' field in package.json.
Ensure options includes 'name' and at least one of 'exposes' or 'remotes'.
No dependency data recorded yet.