Replace initializer tokens with provider functions
ProprietaryReplaces APP_INITIALIZER, ENVIRONMENT_INITIALIZER, and PLATFORM_INITIALIZER multi providers with provideAppInitializer, provideEnvironmentInitializer, and providePlatformInitializer. The provider functions were introduced in Angular 19 and the tokens are deprecated.
org. openrewrite. angular. migration. replace-initializer-providersmod run . --recipe= org. openrewrite. angular. migration. replace-initializer-providersInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.