mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
In v19 we added a warning about unused standalone imports, however we didn't do anything about existing code which means that users have to clean it up manually. These changes add the `ng g @angular/core:cleanup-unused-imports` schematic which will remove the unused dependencies automatically. There isn't any new detection code since all the manipulations are based on the produced diagnostics, but there's a bit of code to remove the import declarations from the file as well. Fixes #58849. PR Close #59353 |
||
|---|---|---|
| .. | ||
| google3 | ||
| all-migrations.spec.ts | ||
| BUILD.bazel | ||
| cleanup_unused_imports_migration_spec.ts | ||
| control_flow_migration_spec.ts | ||
| explicit_standalone_flag_spec.ts | ||
| helpers.ts | ||
| inject_migration_spec.ts | ||
| output_migration_spec.ts | ||
| pending_tasks_spec.ts | ||
| project_tsconfig_paths_spec.ts | ||
| provide_initializer_spec.ts | ||
| queries_migration_spec.ts | ||
| signals_migration_spec.ts | ||
| standalone_migration_spec.ts | ||
| standalone_routes_spec.ts | ||