FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Webpack 5 Has a Free Module Federation Feature — Share Code Between Apps at Runtime
How-ToWeb Development

Webpack 5 Has a Free Module Federation Feature — Share Code Between Apps at Runtime

via Dev.to WebdevAlex Spinov3h ago

Webpack 5's Module Federation lets separate applications share code at runtime. No rebuilding. No npm publishing. Just live code sharing between independent apps. What Is Module Federation? Traditional approach: App A and App B share a component library. You publish to npm, both apps install it, rebuild, redeploy. Module Federation: App A exposes components. App B imports them at runtime. Update App A → App B automatically gets the update. No rebuild. What You Get for Free Host app (consumes remote modules): // webpack.config.js const { ModuleFederationPlugin } = require ( ' webpack ' ). container ; module . exports = { plugins : [ new ModuleFederationPlugin ({ name : ' host ' , remotes : { remoteApp : ' remoteApp@http://localhost:3001/remoteEntry.js ' , }, shared : [ ' react ' , ' react-dom ' ], }), ], }; // Use remote component like a local import const RemoteButton = React . lazy (() => import ( ' remoteApp/Button ' )); function App () { return ( < Suspense fallback = " Loading... "

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
0 views

Related Articles

Bipolar and Sleep Deprivation: What Actually Happens
How-To

Bipolar and Sleep Deprivation: What Actually Happens

Dev.to • 9m ago

Learn how to develop like a pro for free
How-To

Learn how to develop like a pro for free

Medium Programming • 40m ago

I didn't have to drill these renter-friendly smart lights into my wall - and I love them for it
How-To

I didn't have to drill these renter-friendly smart lights into my wall - and I love them for it

ZDNet • 2h ago

How to Create and Use Checkboxes in Figma
How-To

How to Create and Use Checkboxes in Figma

FreeCodeCamp • 2h ago

The DSA Illusion: Why Most Data Structures Don’t Actually Exist
How-To

The DSA Illusion: Why Most Data Structures Don’t Actually Exist

Medium Programming • 3h ago

Discover More Articles