Migrate CRA SVG component imports to Vite SVGR
ProprietaryChanges 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-importsmod run . --recipe= org. openrewrite. react. cra-to-vite. migrate-svg-importsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.