Migrate the Vite 5 worker.plugins option

Proprietary

Vite 5 needs worker.plugins to be a function that returns the array of plugins, so parallel worker builds run consistently ("Migration from v4", worker.plugins is now a function). Wraps an array literal in () => [...] in vite.config.* and vitest.config.* files.

org.openrewrite.nodejs.migrate.vite.MigrateVite5Config
mod run . --recipe=org.openrewrite.nodejs.migrate.vite.MigrateVite5Config

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.