fix(replay): preserve CommonJS object as ESM default export (#519)
Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
co-authored by
morluto
parent
4200a425d5
commit
2df6b51ebb
@@ -226,7 +226,7 @@ const loadEntry = async (
|
||||
function () {
|
||||
this.setExport("default", exports);
|
||||
for (const name of Object.keys(exports))
|
||||
this.setExport(name, exports[name]);
|
||||
if (name !== "default") this.setExport(name, exports[name]);
|
||||
},
|
||||
{ context, identifier: `rea:${alias}` },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user