Skip to content

Report unused standalone imports #46766

Description

@Lonli-Lokli

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: coreIssues related to the framework runtimearea: language-serviceIssues related to Angular's VS Code language servicecore: directive matchingcross-cutting: standaloneIssues related to the NgModule-less worldfeatureLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under consideration

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions