I recently made a federated module host that is federating the Header and the Footer of a site. Everything works as expected, but I am trying to build in some fallbacks if the request to the federated host fails.
new ModuleFederationPlugin({
name: 'app',
remotes: {
app2: 'app2@https:/example.com/remoteEntry.js',
},
shared: { react: { singleton: true, eager: true }, 'react-dom': { singleton: true, eager: true } },
}),
If I block the request to https:/example.com/remoteEntry.js I get a the webpack error below. Ideally I would like to load a basic fallback header or just no header than the page completely dying
(error: https://example.com/remoteEntry.js1)
while loading "./Footer" from webpack/container/reference/app2