Rename JavaScript files containing JSX to .jsx
ProprietaryRenames .js client files containing JSX in Create React App packages to .jsx and updates explicit relative .js imports, re-exports and dynamic imports within the same package. Extensionless imports and JSX-free files stay unchanged. Destination path collisions are recorded for manual resolution.
org. openrewrite. react. cra-to-vite. rename-jsx-filesmod run . --recipe= org. openrewrite. react. cra-to-vite. rename-jsx-filesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.