Convert how Material UI is imported

Proprietary

Rewrites 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-imports

Required

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-material

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