Convert how Material UI is imported
ProprietaryRewrites imports of a Material UI package between the package root and one module per component, or from private deep paths to public ones. Type-only imports and namespace imports are left alone.
org. openrewrite. react. mui. convert-mui-importsRequired
path for one module per component, top-level for the package root, optimal for public module paths.
The packages to rewrite, separated by commas.
mod run . --recipe= org. openrewrite. react. mui. convert-mui-imports \
-P mode= path \
-P packageNames= @mui/ material,@mui/ icons-materialInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.