Migrate CRA SVG component imports to Vite SVGR

Proprietary

Changes import {ReactComponent as Logo} from './logo.svg' to import Logo from './logo.svg?react' in CRA client source. A combined URL/component import becomes two imports so both uses retain their meaning. Requires vite-plugin-svgr in the Vite configuration.

org.openrewrite.react.cra-to-vite.migrate-svg-imports
mod run . --recipe=org.openrewrite.react.cra-to-vite.migrate-svg-imports

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