Skip to content

Commit

Permalink
fix(repack): fix webpack's ModuleFederationPlugin configuration (#444)
Browse files Browse the repository at this point in the history
* fix(repack): pass options to webpack ModuleFederationPlugin explictly

* chore: add changeset
  • Loading branch information
jbroma authored Oct 11, 2023
1 parent 304b8f4 commit 88dc11f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/honest-coins-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@callstack/repack": patch
---

Fix ValidationError in ModuleFederationPlugin caused by reactNativeDeepImports prop
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class ModuleFederationPlugin implements WebpackPlugin {
);

new container.ModuleFederationPlugin({
...this.config,
exposes: this.config.exposes,
filename:
this.config.filename ?? this.config.exposes
? `${this.config.name}.container.bundle`
Expand All @@ -256,8 +256,12 @@ export class ModuleFederationPlugin implements WebpackPlugin {
...this.config.library,
}
: undefined,
name: this.config.name,
shared: sharedDependencies,
shareScope: this.config.shareScope,
remotes,
remoteType: this.config.remoteType,
runtime: this.config.runtime,
}).apply(compiler);
}
}

0 comments on commit 88dc11f

Please sign in to comment.