← All recipes
Moderne licensed

Remove zone.js polyfill from angular.json

Recipe IDorg.openrewrite.angular.migration.remove-zone-js-polyfillArtifact@openrewrite/recipes-angular

Removes zone.js entries from the polyfills array in angular.json. Angular 20 supports zoneless change detection via provideZonelessChangeDetection(), making the zone.js polyfill unnecessary.

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.migration.remove-zone-js-polyfill

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

mod config recipes npm install @openrewrite/recipes-angular