Skip to content

Commit

Permalink
Merge 512d3f1 into c3d7881
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz authored Jun 27, 2023
2 parents c3d7881 + 512d3f1 commit 83792e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function instantiateModule(id: ModuleId, source: SourceInfo): Module {
}

module.loaded = true;
if (module.namespaceObject) {
if (module.namespaceObject && module.exports !== module.namespaceObject) {
// in case of a circular dependency: cjs1 -> esm2 -> cjs1
interopEsm(module.exports, module.namespaceObject);
}
Expand Down

0 comments on commit 83792e7

Please sign in to comment.