At least, switch to pnpm minimize the bloat
I also like Yarn pnp’s model of leaving node_modules as zip files. CPUs are way faster than storage, they can decompress on the fly. Less disk space at rest, less disk slack, less filesystem bookkeeping.
Every single filesystem is way faster at dealing with one file than dozens/hundreds. Now multiply that by the the hundreds if does, it add up.
with prod env: 700MB
without prod env: 900MB
sadly the bloat cannot be avoided that well :/