I’m not sure if enableDangerousExperimentalLeanBuilds ever graduated from an experiment.
Using EAS Build should definitely work, though, and does not need the enableDangerousExperimentalLeanBuilds option. Currently EAS is only available if you pay for the priority plan, but they give you one month free and also they are going to make EAS available as part of the free tier in future.