Skip to content

Commit 54d196e

Browse files
authored
docs(concepts): fix code (#7358)
1 parent c0bac6f commit 54d196e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/content/concepts/module-federation.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ contributors:
1212
- KyleBastien
1313
- Alevale
1414
- burhanuday
15+
- RexSkz
1516
related:
1617
- title: 'Webpack 5 Module Federation: A game-changer in JavaScript architecture'
1718
url: https://medium.com/swlh/webpack-5-module-federation-a-game-changer-to-javascript-architecture-bcdd30e02669
@@ -187,9 +188,9 @@ module.exports = {
187188
// we can now resolve this Promise
188189
const proxy = {
189190
get: (request) => window.app1.get(request),
190-
init: (arg) => {
191+
init: (...arg) => {
191192
try {
192-
return window.app1.init(arg)
193+
return window.app1.init(...arg)
193194
} catch(e) {
194195
console.log('remote container already initialized')
195196
}

0 commit comments

Comments
 (0)