Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Report unused standalone importsΒ #46766

Closed
@Lonli-Lokli

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

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 worldfeatureIssue that requests a new featurefeature: 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