Find deprecated string-based loadChildren usage

Proprietary

Finds usages of the deprecated string-based loadChildren syntax (e.g. loadChildren: './path/to/module#ModuleName'). String-based lazy loading was deprecated in Angular 8 and removed in Angular 11. Use dynamic imports instead: loadChildren: () => import('./path/to/module').then(m => m.ModuleName).

org.openrewrite.angular.search.find-load-children-string-usage
mod run . --recipe=org.openrewrite.angular.search.find-load-children-string-usage

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