<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Naveen kumar Gopi</title>
    <description>The latest articles on Forem by Naveen kumar Gopi (@naveenthamizh).</description>
    <link>https://forem.com/naveenthamizh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1103020%2F70238a4a-c57e-4146-b0bf-db7f4863d763.png</url>
      <title>Forem: Naveen kumar Gopi</title>
      <link>https://forem.com/naveenthamizh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/naveenthamizh"/>
    <language>en</language>
    <item>
      <title>Module Federation</title>
      <dc:creator>Naveen kumar Gopi</dc:creator>
      <pubDate>Sat, 17 Jun 2023 15:42:36 +0000</pubDate>
      <link>https://forem.com/naveenthamizh/module-federation-2jpn</link>
      <guid>https://forem.com/naveenthamizh/module-federation-2jpn</guid>
      <description>&lt;p&gt;The module federation plugin spits out this set of files that includes a set of directions on how other projects can get access to the source code - meaning Basically the module federation plugin comes into action when we are working in Micro-Frontend application.&lt;/p&gt;

&lt;p&gt;Here inside the plugin array, we need to declare the plugin with its name, filename(visible in network tab), exposes.&lt;br&gt;
The Plugin will create the global object with the name had been declared.&lt;br&gt;
Whereas exposes we need to tell webpack that i need to share the file remotely for that path of the file is mentioned.&lt;/p&gt;

&lt;p&gt;Usage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
 const devConfig = {
  mode: "development",
  devServer: {
    port: 8081,
    historyApiFallback: {
      index: "index.html",
    },
  },
  plugins: [
    new ModuleFederationPlugin({
      name: "marketing",
      filename: "remoteEntry.js",
      exposes: {
        "./App": "./src/index",
      },
      shared: packageJSON.dependencies,
    }),
  ],
};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webpack</category>
      <category>react</category>
      <category>programming</category>
      <category>frontend</category>
    </item>
    <item>
      <title>ShortNote On NextJs</title>
      <dc:creator>Naveen kumar Gopi</dc:creator>
      <pubDate>Sat, 17 Jun 2023 05:56:12 +0000</pubDate>
      <link>https://forem.com/naveenthamizh/shortnote-on-nextjs-5cfc</link>
      <guid>https://forem.com/naveenthamizh/shortnote-on-nextjs-5cfc</guid>
      <description>&lt;p&gt;In NextJs, &lt;br&gt;
SSR :&lt;br&gt;
&lt;strong&gt;Pre-generates page during build time&lt;/strong&gt; meaning all HTML code and contents are prepared in advance. &lt;br&gt;
&lt;strong&gt;Once the pages are deployed they can be cached by server&lt;/strong&gt; meaning pages can be prepared ahead of time and can be cached by server/CDN, which serves the app&lt;br&gt;
These stuffs are possible only with help of exporting &lt;code&gt;getStaticProps()&lt;/code&gt; which runs on server side.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>javascript</category>
      <category>react</category>
    </item>
  </channel>
</rss>
