Title: Unused imports diagnostics for compound arrays without NgModules · Issue #59754 · angular/angular · GitHub
Open Graph Title: Unused imports diagnostics for compound arrays without NgModules · Issue #59754 · angular/angular
X Title: Unused imports diagnostics for compound arrays without NgModules · Issue #59754 · angular/angular
Description: Command build Description Recently the new flag "unusedStandaloneImports" was added that detects unused standalone imports in the given standalone components. It works just fine, however there're quite a lot of use cases where modules ar...
Open Graph Description: Command build Description Recently the new flag "unusedStandaloneImports" was added that detects unused standalone imports in the given standalone components. It works just fine, however there're q...
X Description: Command build Description Recently the new flag "unusedStandaloneImports" was added that detects unused standalone imports in the given standalone components. It works just fine, however ...
Opengraph URL: https://github.com/angular/angular/issues/59754
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unused imports diagnostics for compound arrays without NgModules","articleBody":"### Command\n\nbuild\n\n### Description\n\nRecently the new flag \"unusedStandaloneImports\" was added that detects unused standalone imports in the given standalone components. \n\nIt works just fine, however there're quite a lot of use cases where modules are applicable even along with standalone components, e.g. complex UI packages like `@angular/material/tabs`, thus having the diagnostics to check whether such modules are used is also highly valuable.\n\nI understand that resolving all dependencies of a module is much more computationally heavy operation in comparison with standalone components, but I can still see it being useful as an optional flag that can be enabled only on CI or to cleanup such imports manually from time to time.\n\n### Describe the solution you'd like\n\n_No response_\n\n### Describe alternatives you've considered\n\n_No response_","author":{"url":"https://github.com/dmitry-stepanenko","@type":"Person","name":"dmitry-stepanenko"},"datePublished":"2025-01-28T13:47:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/59754/angular/issues/59754"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:049a68ac-7369-8f55-0baa-8f5436f908cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C68:2F9E:209A56A:2A12987:6974ABD2 |
| html-safe-nonce | 746c342421779ed1fd28b1377b1597afdbcbf2ba9002f76c20bd5fb45e70d6a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzY4OjJGOUU6MjA5QTU2QToyQTEyOTg3OjY5NzRBQkQyIiwidmlzaXRvcl9pZCI6IjkwMjcyMTE3NzY4ODUwNDIxMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bf4073628057c8cd6aa20cba4546f0743b838aa87c03e617b2c4edf150e36bdc |
| hovercard-subject-tag | issue:2815851964 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/59754/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a515f0a4c2c5b4e3cf7240d03305804dcd328c1a07e230fe0b6662779df8610b/angular/angular/issues/59754 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a515f0a4c2c5b4e3cf7240d03305804dcd328c1a07e230fe0b6662779df8610b/angular/angular/issues/59754 |
| og:image:alt | Command build Description Recently the new flag "unusedStandaloneImports" was added that detects unused standalone imports in the given standalone components. It works just fine, however there're q... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dmitry-stepanenko |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width