-
Notifications
You must be signed in to change notification settings - Fork 29k
Report unused standalone imports #46766
Copy link
Copy link
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimearea: language-serviceIssues related to Angular's VS Code language serviceIssues related to Angular's VS Code language servicecore: directive matchingcross-cutting: standaloneIssues related to the NgModule-less worldIssues related to the NgModule-less worldfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimearea: language-serviceIssues related to Angular's VS Code language serviceIssues related to Angular's VS Code language servicecore: directive matchingcross-cutting: standaloneIssues related to the NgModule-less worldIssues related to the NgModule-less worldfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
Which @angular/* package(s) are relevant/related to the feature request?
common
Description
With the popularity of standalone components (pipes/directives), powered by Angular as well, there is a possibility that some components will be unused in templates while still imported by parent component, and so will increase bundle
Proposed solution
Report during the build that some.pipe/directive is imported but not used.
It can be controlled via angulqrCompilerOptions of tsconfig
Alternatives considered
Nothing