Skip to content

Commit

Permalink
feat: expose _options ModuleFederationPluginV2.ts (#797)
Browse files Browse the repository at this point in the history
* feat: expose _options ModuleFederationPluginV2.ts

* chore: add changeset

---------

Co-authored-by: Jakub Romańczyk <[email protected]>
  • Loading branch information
valorkin and jbroma authored Nov 19, 2024
1 parent b7ceca4 commit 0aee0a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-readers-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@callstack/repack": patch
---

fix: expose MF2 plugin configuration for external tooling
2 changes: 2 additions & 0 deletions packages/repack/src/plugins/ModuleFederationPluginV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ export interface ModuleFederationPluginV2Config
export class ModuleFederationPluginV2 implements RspackPluginInstance {
private config: MF.ModuleFederationPluginOptions;
private deepImports: boolean;
public _options!: ModuleFederationPluginV2Config;

constructor(pluginConfig: ModuleFederationPluginV2Config) {
this._options = pluginConfig;
const { reactNativeDeepImports, ...config } = pluginConfig;
this.config = config;
this.deepImports = reactNativeDeepImports ?? true;
Expand Down

0 comments on commit 0aee0a9

Please sign in to comment.