Migrate Vite 7 removed config options
ProprietaryVite 7 removed Sass legacy API support, so the api: 'modern' and api: 'modern-compiler' options of css.preprocessorOptions.sass and .scss are dropped ("Migration from v6", Removed Sass legacy API support); api: 'legacy' is left for FindVite7Changes. Vite 7 also removed the hook-level enforce and transform of transformIndexHtml (Removed deprecated features), which become order and handler. The Sass option is read in vite.config.* and vitest.config.* files; transformIndexHtml is a plugin hook, so it is read in any file that imports vite.
org. openrewrite. nodejs. migrate. vite. MigrateVite7Configmod run . --recipe= org. openrewrite. nodejs. migrate. vite. MigrateVite7ConfigInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.