As a frontend developer, with the usual caveats of anecdotal experience etc, I'm somewhat inclined to agree when talking about regular employment. Over the last decade or so I've worked in companies that range from a few employees in total to thousands of people, and most of the time I'm either the frontend guy or one of a very small handful. Most of the time the value you bring to the table from the technical side is unblocking other people, that is, making sure the design system is consistent, everything builds, nasty frontend-specific bugs are fixed, etc. Everything else can be delegated to generalists which gives the company a lot more flexibility around how to hire and arrange work.
The one place where this trend does not hold in my experience is contracting. I've done a fair bit of it throughout my career and being a frontend development contractor or similar is like selling hot cakes if you bring a lot of experience to the table. The main customers are generally companies who don't have that one guy who figures out frontend stuff and in the end they have a critical mass of mess that they hire someone from the outside to come in and fix pronto.
The one place where this trend does not hold in my experience is contracting. I've done a fair bit of it throughout my career and being a frontend development contractor or similar is like selling hot cakes if you bring a lot of experience to the table. The main customers are generally companies who don't have that one guy who figures out frontend stuff and in the end they have a critical mass of mess that they hire someone from the outside to come in and fix pronto.