From 0fb307550f2ce09d117ba2927687d46e86f83be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Roma=C5=84czyk?= Date: Tue, 19 Nov 2024 11:38:45 -0500 Subject: [PATCH] Revert "feat: expose _options ModuleFederationPluginV2.ts" (#798) This reverts commit 0aee0a9962147725565679ea8b5d74f18417d179. --- .changeset/brave-readers-sleep.md | 5 ----- packages/repack/src/plugins/ModuleFederationPluginV2.ts | 2 -- 2 files changed, 7 deletions(-) delete mode 100644 .changeset/brave-readers-sleep.md diff --git a/.changeset/brave-readers-sleep.md b/.changeset/brave-readers-sleep.md deleted file mode 100644 index 2ddfddde5..000000000 --- a/.changeset/brave-readers-sleep.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@callstack/repack": patch ---- - -fix: expose MF2 plugin configuration for external tooling diff --git a/packages/repack/src/plugins/ModuleFederationPluginV2.ts b/packages/repack/src/plugins/ModuleFederationPluginV2.ts index 6b03bc6ba..da3aeb2f8 100644 --- a/packages/repack/src/plugins/ModuleFederationPluginV2.ts +++ b/packages/repack/src/plugins/ModuleFederationPluginV2.ts @@ -83,10 +83,8 @@ 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;