Export "module.exports" as "exports", and only if loaded as a legacy module.