← All recipes
Moderne licensed

Find CommonModule usage

Recipe IDorg.openrewrite.angular.search.find-common-module-usageArtifact@openrewrite/recipes-angular

Finds imports of CommonModule from @angular/common. Since Angular 19, standalone components are the default and CommonModule is no longer needed in component imports arrays. Built-in directives and pipes are available automatically.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.angular.search.find-common-module-usage

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular