//a.js export const d = {}; export const y = {d}; export const x = {y}; //b.js import {d} from a; import {y} from a; import {x} from a; assert(x.y == y); assert(x.y.d == d);