Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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