We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7dc44 commit 82a0436Copy full SHA for 82a0436
runtime-plugins/offline-remote/app1/rspack.config.js
@@ -1,7 +1,7 @@
1
const {
2
HtmlRspackPlugin,
3
- container: { ModuleFederationPlugin },
4
} = require('@rspack/core');
+const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack')
5
const path = require('path');
6
7
// adds all your dependencies as shared modules
@@ -77,6 +77,7 @@ module.exports = {
77
new ModuleFederationPlugin({
78
name: 'app1',
79
filename: 'remoteEntry.js',
80
+ shareStrategy:'loaded-first',
81
remotes: {
82
app2: 'app2@http://localhost:3002/remoteEntry.js',
83
},
0 commit comments