Skip to content

Commit 845bc52

Browse files
fix(nextjs-mf): change runtimePlugin definition order (#2052)
Co-authored-by: Zack Jackson <[email protected]>
1 parent da3442f commit 845bc52

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/weak-baboons-think.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+
fix(nextjs-mf): errorLoadRemote hook not to be overridden

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ export class NextFederationPlugin {
134134
remoteType: 'script',
135135
// @ts-ignore
136136
runtimePlugins: [
137+
require.resolve(path.join(__dirname, '../container/runtimePlugin')),
137138
//@ts-ignore
138139
...(this._options.runtimePlugins || []),
139-
require.resolve(path.join(__dirname, '../container/runtimePlugin')),
140140
],
141141
exposes: {
142142
'./noop': noop,

0 commit comments

Comments
 (0)