If `-s MODULAR` was not used during linking, then we should export a top-level module object directly. Currently, we export a top-level promise to the object, which only works when `-s MODULAR` is set