It depends what you're building.
I'm building my entire business on a base model MacBook Air M1 with 8GB of RAM - it handles running GitKraken, VS Code, Spotify, Chrome, iTerm, and several dev servers without perceptible lag.
My top of the line i7 16" MacBook Pro from work feels slow in comparison.