Skip to content

Commit da8729f

Browse files
ScriptedAlchemyranshamayRan Shamay
authored
fix(nextjs-mf): skip sharing next internals (#2259)
Co-authored-by: Ran Shamay <[email protected]> Co-authored-by: Ran Shamay <[email protected]> Co-authored-by: ScriptedAlchemy <[email protected]>
1 parent 6dbc8c3 commit da8729f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/quiet-ties-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/nextjs-mf': patch
3+
---
4+
5+
implement skipSharingNextInternals option again

packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export class NextFederationPlugin {
140140
compiler: Compiler,
141141
isServer: boolean,
142142
): ModuleFederationPluginOptions {
143-
const defaultShared = retrieveDefaultShared(isServer);
143+
const defaultShared = this._extraOptions.skipSharingNextInternals
144+
? {}
145+
: retrieveDefaultShared(isServer);
144146
const noop = this.getNoopPath();
145147
return {
146148
...this._options,

0 commit comments

Comments
 (0)