I have 500mb RAM limitation on render.com free plan, my webpack prod build takes up to 2gb RAM, so I'm unable to get successfull build there, as it goes above 500mb render.com kills the process and starts it over again.
I was able to reduce webpack build RAM usage to 560mb by disabling minification completely, sourcemaps generation.
What else can be done to reduce memory usage?