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:
Rudy Mizrahi Celekli
2026-10-05 15:05:43 +08:00
committed by GitHub
co-authored by morluto
parent 4200a425d5
commit 2df6b51ebb
2 changed files with 106 additions and 4 deletions
+1 -1
View File
@@ -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}` },
);