Skip to content

Commit 450c224

Browse files
fix(node): missing variable in runtime plugin error call (#2516)
Co-authored-by: ScriptedAlchemy <[email protected]>
1 parent 76bb7d9 commit 450c224

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/funny-parents-sneeze.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/node': patch
3+
---
4+
5+
missing variable in runtime plugin error call

packages/node/src/runtimePlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default function () {
183183
)(chunk, __non_webpack_require__, urlDirname, chunkName);
184184
callback(null, chunk);
185185
} catch (e) {
186-
callback(err, null);
186+
callback(e, null);
187187
}
188188
});
189189
res.on('error', function (err) {

0 commit comments

Comments
 (0)