feat(compartment-mapper): Bundles evaluate to entrypoint namespace
MODIFY
packages/compartment-mapper/NEWS.md
packages/compartment-mapper/NEWS.md
@@ -2,6 +2,7 @@ User-visible changes to the compartment mapper:
# Next release
+- Bundles now evaluate to their entrypoint module's namespace object.
- Removes support for `globalLexicals`.
# 0.7.7 (2022-06-28)

MODIFY
packages/compartment-mapper/src/bundle.js
packages/compartment-mapper/src/bundle.js
@@ -337,6 +337,8 @@ ${importsCellSetter(__fixedExportMap__, index)}\
`,
),
)}\
+
+ return cells[cells.length - 1]['*'].get();
})();
`;

feat(compartment-mapper): Bundles evaluate to entrypoint namespace