From 7d4ef20714ae6888bfa04dece8b634ee5710c779 Mon Sep 17 00:00:00 2001 From: chussum Date: Thu, 16 May 2024 21:05:31 +0900 Subject: [PATCH 1/2] fix(nextjs-mf): delete duplicate code lines in nextjs-mf --- packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts b/packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts index 79cef4df810..94af477ca66 100644 --- a/packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts +++ b/packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts @@ -164,7 +164,7 @@ export class NextFederationPlugin { ], //@ts-ignore exposes: { - ...(this._extraOptions.skipSharingNextInternals ? {} : defaultExpose), + ...defaultExpose, ...this._options.exposes, ...(this._extraOptions.exposePages ? exposeNextjsPages(compiler.options.context as string) From 88535f272088915aaad4a0266c2a5f40e2e59369 Mon Sep 17 00:00:00 2001 From: chussum Date: Thu, 16 May 2024 21:23:23 +0900 Subject: [PATCH 2/2] chore: run changeset --- .changeset/poor-dots-confess.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/poor-dots-confess.md diff --git a/.changeset/poor-dots-confess.md b/.changeset/poor-dots-confess.md new file mode 100644 index 00000000000..3a696bf9ace --- /dev/null +++ b/.changeset/poor-dots-confess.md @@ -0,0 +1,5 @@ +--- +'@module-federation/nextjs-mf': patch +--- + +fix(nextjs-mf): delete duplicate code lines