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 API That Enables Micro-Frontends
NewsWeb Development

Webpack 5 Has a Free Module Federation API That Enables Micro-Frontends

via Dev.to WebdevAlex Spinov2h ago

Webpack 5 introduced Module Federation — a game-changing API that lets separate applications share code at runtime. This is the foundation of micro-frontend architecture. Module Federation: Share Code at Runtime // webpack.config.js — Host Application const { ModuleFederationPlugin } = require ( " webpack " ). container ; module . exports = { plugins : [ new ModuleFederationPlugin ({ name : " host " , remotes : { dashboard : " dashboard@https://dashboard.example.com/remoteEntry.js " , analytics : " analytics@https://analytics.example.com/remoteEntry.js " , }, shared : [ " react " , " react-dom " ], }), ], }; // Load remote component dynamically const Dashboard = React . lazy (() => import ( " dashboard/Widget " )); const Analytics = React . lazy (() => import ( " analytics/Chart " )); // webpack.config.js — Remote Application new ModuleFederationPlugin ({ name : " dashboard " , filename : " remoteEntry.js " , exposes : { " ./Widget " : " ./src/components/DashboardWidget " , " ./utils "

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
0 views

Related Articles

Demonetization Simulation
News

Demonetization Simulation

Dev.to • 33m ago

OneLuaPro v5.5.0.1 released
News

OneLuaPro v5.5.0.1 released

Lobsters • 37m ago

Is 1234567 Divisible by 7?
News

Is 1234567 Divisible by 7?

Medium Programming • 45m ago

News

Fresh Graduate, Zero Experience, One App on the Play Store

Medium Programming • 1h ago

Google Chrome Full Power Unlock | ২১ Super Useful Hidden Features | “Why didn’t I know these…
News

Google Chrome Full Power Unlock | ২১ Super Useful Hidden Features | “Why didn’t I know these…

Medium Programming • 1h ago

Discover More Articles