Skip to content

Commit 0aee0a9

Browse files
valorkinjbroma
andauthored
feat: expose _options ModuleFederationPluginV2.ts (#797)
* feat: expose _options ModuleFederationPluginV2.ts * chore: add changeset --------- Co-authored-by: Jakub Romańczyk <jakub.romanczyk@callstack.com>
1 parent b7ceca4 commit 0aee0a9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/brave-readers-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@callstack/repack": patch
3+
---
4+
5+
fix: expose MF2 plugin configuration for external tooling

packages/repack/src/plugins/ModuleFederationPluginV2.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ export interface ModuleFederationPluginV2Config
8383
export class ModuleFederationPluginV2 implements RspackPluginInstance {
8484
private config: MF.ModuleFederationPluginOptions;
8585
private deepImports: boolean;
86+
public _options!: ModuleFederationPluginV2Config;
8687

8788
constructor(pluginConfig: ModuleFederationPluginV2Config) {
89+
this._options = pluginConfig;
8890
const { reactNativeDeepImports, ...config } = pluginConfig;
8991
this.config = config;
9092
this.deepImports = reactNativeDeepImports ?? true;

0 commit comments

Comments
 (0)