You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module map can only be populated from Compartment map
Any attempt to use the namespaces fails
Type check
typeof Compartment.map.mod
// symbol
import * as ns from "./mod";
typeof ns;
// object
Compartment.map in module map: works
// main.js
let { mod } = Compartment.map;
new Compartment("mod", {}, { mod });
// mod.js
trace("mod loaded");
export default function {
}
// mod loaded
import ns in module map: fails
// main.js
import * as ns from "./mod";
new Compartment("mod", {}, { mod: ns });
// mod.js
export default function {
}
// # Break: Compartment: module "mod" not found!