Skip to content

Commit

Permalink
docs(concepts): fix code (#7358)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan authored Aug 15, 2024
1 parent c0bac6f commit 54d196e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/content/concepts/module-federation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
}
Expand Down

0 comments on commit 54d196e

Please sign in to comment.