Skip to content

Commit 0718859

Browse files
karanpvyasKaran VyasScriptedAlchemyzhoushaw
authored
[Chore]: Use manifest passed in options (#4332)
Co-authored-by: Karan Vyas <karan.vyas@sprinklr.com> Co-authored-by: ScriptedAlchemy <zackaryjackson@bytedance.com> Co-authored-by: 晓 <zhouxiao.shaw@bytedance.com>
1 parent 83ae9bc commit 0718859

File tree

1 file changed

+5
-3
lines changed
  • packages/nextjs-mf/src/plugins/NextFederationPlugin

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,10 @@ export class NextFederationPlugin {
251251
...defaultShared,
252252
...this._options.shared,
253253
},
254-
...(isServer
255-
? { manifest: { filePath: '' } }
256-
: { manifest: { filePath: '/static/chunks' } }),
254+
manifest: {
255+
...(this._options.manifest ?? {}),
256+
filePath: isServer ? '' : '/static/chunks',
257+
},
257258
// nextjs project needs to add config.watchOptions = ['**/node_modules/**', '**/@mf-types/**'] to prevent loop types update
258259
dts: this._options.dts ?? false,
259260
shareStrategy: this._options.shareStrategy ?? 'loaded-first',
@@ -269,3 +270,4 @@ export class NextFederationPlugin {
269270
}
270271

271272
export default NextFederationPlugin;
273+

0 commit comments

Comments
 (0)