Skip to content

Commit 82a0436

Browse files
authored
fix: set sharedStragtety (#4279)
1 parent ef7dc44 commit 82a0436

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime-plugins/offline-remote/app1/rspack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const {
22
HtmlRspackPlugin,
3-
container: { ModuleFederationPlugin },
43
} = require('@rspack/core');
4+
const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack')
55
const path = require('path');
66

77
// adds all your dependencies as shared modules
@@ -77,6 +77,7 @@ module.exports = {
7777
new ModuleFederationPlugin({
7878
name: 'app1',
7979
filename: 'remoteEntry.js',
80+
shareStrategy:'loaded-first',
8081
remotes: {
8182
app2: 'app2@http://localhost:3002/remoteEntry.js',
8283
},

0 commit comments

Comments
 (0)