<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[siebert.dev]]></title><description><![CDATA[siebert.dev]]></description><link>https://siebert.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 07:52:37 GMT</lastBuildDate><atom:link href="https://siebert.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Module Federation using NX]]></title><description><![CDATA[What is 'Module Federation'?
Module federation is a feature available in Webpack that lets you more easily share code among your applications. Your host application will have multiple child applications which are loaded dynamically at run time.

This...]]></description><link>https://siebert.dev/module-federation-using-nx</link><guid isPermaLink="true">https://siebert.dev/module-federation-using-nx</guid><category><![CDATA[Nx]]></category><category><![CDATA[module federation]]></category><category><![CDATA[Angular]]></category><category><![CDATA[React]]></category><dc:creator><![CDATA[Ryan Siebert]]></dc:creator><pubDate>Tue, 19 Sep 2023 10:00:50 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/613mOVUv_lQ/upload/cd850848d15373c4ca1f09557e919159.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-what-is-module-federation">What is 'Module Federation'?</h2>
<p>Module federation is a feature available in Webpack that lets you more easily share code among your applications. Your host application will have multiple child applications which are loaded dynamically at run time.</p>
<ul>
<li><p>This means you can benefit from faster load times by only loading parts of the app you need</p>
</li>
<li><p>Your apps share dependencies so when you load a child app you only download the missing dependencies</p>
</li>
<li><p>Each child app (*ehem* micro-frontend) is independent so you can make changes and deploy them anytime you want without impacting the other child apps or root app</p>
</li>
</ul>
<p>Most likely you are using Webpack as your Javascript bundler to create your distributable javascript file for your favourite Javascript-flavoured framework so you should be able to start using this feature today.</p>
<p>This article will document a specific use case of how I ran a simple React App inside an Angular Root and vice versa using NX.</p>
<p>NX has some great plugins that make this process very easy - however, it is possible without NX</p>
<h2 id="heading-running-angular-code-in-react">Running Angular Code In React</h2>
<p><code>todo</code></p>
<h2 id="heading-running-react-code-in-angular">Running React Code in Angular</h2>
<p><code>todo</code></p>
<h2 id="heading-other-material">Other material</h2>
<ul>
<li><p><a target="_blank" href="https://nx.dev/recipes/angular/dynamic-module-federation-with-angular">https://nx.dev/recipes/angular/dynamic-module-federation-with-angular</a></p>
</li>
<li><p><a target="_blank" href="https://webpack.js.org/concepts/module-federation/">https://webpack.js.org/concepts/module-federation/</a></p>
</li>
</ul>
]]></content:encoded></item></channel></rss>