Migrate the Vite 5 worker.plugins option
ProprietaryVite 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. MigrateVite5Configmod run . --recipe= org. openrewrite. nodejs. migrate. vite. MigrateVite5ConfigInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.