diff --git a/src/content/concepts/module-federation.mdx b/src/content/concepts/module-federation.mdx index a46ace540fbe..82aa077ddcdf 100644 --- a/src/content/concepts/module-federation.mdx +++ b/src/content/concepts/module-federation.mdx @@ -12,6 +12,7 @@ contributors: - KyleBastien - Alevale - burhanuday + - RexSkz related: - title: 'Webpack 5 Module Federation: A game-changer in JavaScript architecture' url: https://medium.com/swlh/webpack-5-module-federation-a-game-changer-to-javascript-architecture-bcdd30e02669 @@ -187,9 +188,9 @@ module.exports = { // we can now resolve this Promise const proxy = { get: (request) => window.app1.get(request), - init: (arg) => { + init: (...arg) => { try { - return window.app1.init(arg) + return window.app1.init(...arg) } catch(e) { console.log('remote container already initialized') }