It actually did come up in the discussion to create an equivalent of require.context for javascript/esm. As commented here, they took the opportunity to improve the API by having it take an object instead of many arguments.
require.context
javascript/esm