storing the exports only if the module has the `es` flag, and something to store, otherwise skip.