Webpack Module Federation into Production Environment
I want to deploy a microfrontend made with React and Webpack 5 Module Federation. When I start the app locally and enter to http://localhost:5100/remoteEntry.js
loads the js file with the right content. The problem is when I deploy the app (I’ve deployed on Vercel & Render), when I access to https://smart-form-jet.vercel.app/remoteEntry.js
, it loads the js file but not with the exposed component I’ve indicated in the Webpack config, and not with the same content as locally.